Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/format-helper: Update tests after BT.601 changes

Commit a979a54165c2 ("drm/format-helper: Normalize BT.601 factors
to 256") improved rounding precision of the BT.601 calculation, which
impacts the results of soem of the format-helper tests. Adapt the test
to the new results.

v2:
- fix spelling in commit description

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: a979a54165c2 ("drm/format-helper: Normalize BT.601 factors to 256")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250613111711.136993-1-tzimmermann@suse.de

+6 -6
+6 -6
drivers/gpu/drm/tests/drm_format_helper_test.c
··· 279 279 .dst_pitch = TEST_USE_DEFAULT_PITCH, 280 280 .expected = { 281 281 0xFF, 0x00, 282 - 0x4C, 0x99, 283 - 0x19, 0x66, 284 - 0xE5, 0xB2, 282 + 0x4C, 0x95, 283 + 0x1C, 0x69, 284 + 0xE2, 0xB2, 285 285 }, 286 286 }, 287 287 .rgb332_result = { ··· 430 430 .gray8_result = { 431 431 .dst_pitch = 5, 432 432 .expected = { 433 - 0x3C, 0x33, 0xC4, 0x00, 0x00, 434 - 0xBB, 0x3C, 0x33, 0x00, 0x00, 435 - 0x34, 0xBB, 0x3C, 0x00, 0x00, 433 + 0x3D, 0x32, 0xC1, 0x00, 0x00, 434 + 0xBA, 0x3D, 0x32, 0x00, 0x00, 435 + 0x34, 0xBA, 0x3D, 0x00, 0x00, 436 436 }, 437 437 }, 438 438 .rgb332_result = {