[PATCH v4 05/10] lib/igt_color_encoding: Add XRGB2101010 format support

Harry Wentland <[email protected]> Fri, 31 Jul 2026 14:01:55 -0400
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
Add XRGB2101010 (10-bit RGB) to the color encoding format list. This
enables proper color encoding handling for 10-bit RGB formats used in
CSC testing scenarios.

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Harry Wentland <[email protected]>
Reviewed-by: Alex Hung <[email protected]>
---
 lib/igt_color_encoding.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_color_encoding.c b/lib/igt_color_encoding.c
index da56b2b10593..1d01c7eb0583 100644
--- a/lib/igt_color_encoding.c
+++ b/lib/igt_color_encoding.c
@@ -135,6 +135,7 @@ static const struct color_encoding_format {
 	float ofs_y, max_y, ofs_cbcr, mid_cbcr, max_cbcr;
 } formats[] = {
 	{ DRM_FORMAT_XRGB8888, 255.f, },
+	{ DRM_FORMAT_XRGB2101010, 1023.f, },
 	{ IGT_FORMAT_FLOAT, 1.f, },
 	{ DRM_FORMAT_NV12, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f },
 	{ DRM_FORMAT_NV16, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f },
-- 
2.55.0