[igt-dev] [PATCH i-g-t v3 2/3] lib/kms: Reset color encoding to BT.709

Ville Syrjala ville.syrjala at linux.intel.com
Tue Apr 20 22:17:19 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

igt_fb uses BT.709 as the default color encoding for YCbCr.
Switch igt_plane_reset() to use the same as the reset value.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 lib/igt_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 279b8cee42d0..9aba7b6e4b40 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1760,7 +1760,7 @@ static void igt_plane_reset(igt_plane_t *plane)
 
 	if (igt_plane_has_prop(plane, IGT_PLANE_COLOR_ENCODING))
 		igt_plane_set_prop_enum(plane, IGT_PLANE_COLOR_ENCODING,
-			igt_color_encoding_to_str(IGT_COLOR_YCBCR_BT601));
+			igt_color_encoding_to_str(IGT_COLOR_YCBCR_BT709));
 
 	if (igt_plane_has_prop(plane, IGT_PLANE_COLOR_RANGE))
 		igt_plane_set_prop_enum(plane, IGT_PLANE_COLOR_RANGE,
-- 
2.26.3



More information about the igt-dev mailing list