Re: [PATCH v3 06/12] lib/igt_color_encoding: Add XRGB2101010 format support

Alex Hung <[email protected]> Sat, 25 Jul 2026 01:05:25 -0600
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
Reviewed-by: Alex Hung <[email protected]>

On 6/23/26 11:57, Harry Wentland wrote:
> 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]>
> ---
>   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 },