sandbox: remove video test
The sandbox in U-Boot v2021.10 don't support the video test
introduced in commit 8657ad43f3 ("sandbox: video: Add BMP
tests for 32bpp and 8bpp modes"), merged in dm-pull-13jan22
v2022.04-rc1.
Revert the sandbox and test part of previous patch.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ia98e6d864635c901b8dda5f4d359a327082aec81
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/267408
Reviewed-by: CIBUILD <MDG-smet-aci-builds@list.st.com>
This commit is contained in:
@ -281,7 +281,6 @@ CONFIG_OSD=y
|
||||
CONFIG_SANDBOX_OSD=y
|
||||
CONFIG_SPLASH_SCREEN_ALIGN=y
|
||||
CONFIG_VIDEO_BMP_RLE8=y
|
||||
CONFIG_BMP_24BPP=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_W1_GPIO=y
|
||||
CONFIG_W1_EEPROM=y
|
||||
|
||||
@ -195,7 +195,6 @@ CONFIG_VIDEO_SANDBOX_SDL=y
|
||||
CONFIG_OSD=y
|
||||
CONFIG_SANDBOX_OSD=y
|
||||
CONFIG_VIDEO_BMP_RLE8=y
|
||||
CONFIG_BMP_24BPP=y
|
||||
CONFIG_CMD_DHRYSTONE=y
|
||||
CONFIG_RSA_VERIFY_WITH_PKEY=y
|
||||
CONFIG_TPM=y
|
||||
|
||||
@ -319,52 +319,6 @@ static int dm_test_video_bmp(struct unit_test_state *uts)
|
||||
}
|
||||
DM_TEST(dm_test_video_bmp, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
|
||||
|
||||
/* Test drawing a 24bpp bitmap file on a 16bpp display */
|
||||
static int dm_test_video_bmp24(struct unit_test_state *uts)
|
||||
{
|
||||
ulong src, src_len = ~0UL;
|
||||
uint dst_len = ~0U;
|
||||
struct udevice *dev;
|
||||
ulong dst = 0x10000;
|
||||
|
||||
ut_assertok(uclass_find_first_device(UCLASS_VIDEO, &dev));
|
||||
ut_assertnonnull(dev);
|
||||
ut_assertok(sandbox_sdl_set_bpp(dev, VIDEO_BPP16));
|
||||
|
||||
ut_assertok(read_file(uts, "tools/logos/denx-24bpp.bmp.gz", &src));
|
||||
ut_assertok(gunzip(map_sysmem(dst, 0), dst_len, map_sysmem(src, 0),
|
||||
&src_len));
|
||||
|
||||
ut_assertok(video_bmp_display(dev, dst, 0, 0, false));
|
||||
ut_asserteq(3656, compress_frame_buffer(uts, dev));
|
||||
|
||||
return 0;
|
||||
}
|
||||
DM_TEST(dm_test_video_bmp24, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
|
||||
|
||||
/* Test drawing a 24bpp bitmap file on a 32bpp display */
|
||||
static int dm_test_video_bmp24_32(struct unit_test_state *uts)
|
||||
{
|
||||
ulong src, src_len = ~0UL;
|
||||
uint dst_len = ~0U;
|
||||
struct udevice *dev;
|
||||
ulong dst = 0x10000;
|
||||
|
||||
ut_assertok(uclass_find_first_device(UCLASS_VIDEO, &dev));
|
||||
ut_assertnonnull(dev);
|
||||
ut_assertok(sandbox_sdl_set_bpp(dev, VIDEO_BPP32));
|
||||
|
||||
ut_assertok(read_file(uts, "tools/logos/denx-24bpp.bmp.gz", &src));
|
||||
ut_assertok(gunzip(map_sysmem(dst, 0), dst_len, map_sysmem(src, 0),
|
||||
&src_len));
|
||||
|
||||
ut_assertok(video_bmp_display(dev, dst, 0, 0, false));
|
||||
ut_asserteq(6827, compress_frame_buffer(uts, dev));
|
||||
|
||||
return 0;
|
||||
}
|
||||
DM_TEST(dm_test_video_bmp24_32, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
|
||||
|
||||
/* Test drawing a compressed bitmap file */
|
||||
static int dm_test_video_bmp_comp(struct unit_test_state *uts)
|
||||
{
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user