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
This commit is contained in:
Harry Wentland
2025-11-14 17:01:27 -07:00
committed by Simon Ser
parent 4fc183828b
commit 303e9bf147
4 changed files with 151 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
vkms-kunit-tests-y := \
vkms_config_test.o \
vkms_format_test.o
vkms_format_test.o \
vkms_color_test.o
obj-$(CONFIG_DRM_VKMS_KUNIT_TEST) += vkms-kunit-tests.o