diff options
author | 2025-06-30 11:00:54 +0200 | |
---|---|---|
committer | 2025-08-11 17:24:15 +0200 | |
commit | 05663d88fd0b8ee1c54ab2d5fb36f9b6a3ed37f7 (patch) | |
tree | 23a76fd0e1f25125eebdc070855d9d88d2e7bf41 | |
parent | drm/tests: Fix endian warning (diff) | |
download | wireguard-linux-05663d88fd0b8ee1c54ab2d5fb36f9b6a3ed37f7.tar.xz wireguard-linux-05663d88fd0b8ee1c54ab2d5fb36f9b6a3ed37f7.zip |
drm/tests: Fix drm_test_fb_xrgb8888_to_xrgb2101010() on big-endian
Fix failures on big-endian architectures on tests cases
single_pixel_source_buffer, single_pixel_clip_rectangle,
well_known_colors and destination_pitch.
Fixes: 15bda1f8de5d ("drm/tests: Add calls to drm_fb_blit() on supported format conversion tests")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250630090054.353246-2-jose.exposito89@gmail.com
-rw-r--r-- | drivers/gpu/drm/tests/drm_format_helper_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tests/drm_format_helper_test.c b/drivers/gpu/drm/tests/drm_format_helper_test.c index 86829e1cb7f0..981dada8f3a8 100644 --- a/drivers/gpu/drm/tests/drm_format_helper_test.c +++ b/drivers/gpu/drm/tests/drm_format_helper_test.c @@ -1040,6 +1040,7 @@ static void drm_test_fb_xrgb8888_to_xrgb2101010(struct kunit *test) memset(buf, 0, dst_size); drm_fb_xrgb8888_to_xrgb2101010(&dst, dst_pitch, &src, &fb, ¶ms->clip, &fmtcnv_state); + buf = le32buf_to_cpu(test, (__force const __le32 *)buf, dst_size / sizeof(u32)); KUNIT_EXPECT_MEMEQ(test, buf, result->expected, dst_size); } |