]> Gentwo Git Trees - linux/.git/commit
drm/vkms: Add kunit tests for VKMS LUT handling
authorHarry Wentland <harry.wentland@amd.com>
Sat, 15 Nov 2025 00:01:27 +0000 (17:01 -0700)
committerSimon Ser <contact@emersion.fr>
Wed, 26 Nov 2025 21:17:45 +0000 (22:17 +0100)
commit303e9bf147b3a1b48a6d7079f2924b7d43662805
tree3787252685d87463574c32fa8efa8d137a70f38d
parent4fc183828b050c1d7d94347c876c04a5b680b4fc
drm/vkms: Add kunit tests for VKMS LUT handling

Debugging LUT math is much easier when we can unit test
it. Add kunit functionality to VKMS and add tests for
 - get_lut_index
 - lerp_u16

Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Cc: Arthur Grillo <arthurgrillo@riseup.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-3-alex.hung@amd.com
drivers/gpu/drm/vkms/tests/Makefile
drivers/gpu/drm/vkms/tests/vkms_color_test.c [new file with mode: 0644]
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_composer.h [new file with mode: 0644]