[igt-dev] [i-g-t v2] tests/kms_color_chamelium: Skip CTM test if property is not present

Bhanuprakash Modem bhanuprakash.modem at intel.com
Wed Sep 15 03:33:58 UTC 2021


CRTC property "CTM" is required for all CTM tests.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4133
Cc: Uma Shankar <uma.shankar at intel.com>
Cc: Swati Sharma <swati2.sharma at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by:  Swati Sharma <swati2.sharma at intel.com>
---
 tests/kms_color_chamelium.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_color_chamelium.c b/tests/kms_color_chamelium.c
index bc4356bfa..7173bc69e 100644
--- a/tests/kms_color_chamelium.c
+++ b/tests/kms_color_chamelium.c
@@ -398,6 +398,8 @@ static void test_pipe_limited_range_ctm(data_t *data,
 	struct chamelium_port *port;
 	char *connected_ports[4];
 
+	igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_CTM));
+
 	degamma_linear = generate_table(data->degamma_lut_size, 1.0);
 	gamma_linear = generate_table(data->gamma_lut_size, 1.0);
 
-- 
2.32.0



More information about the igt-dev mailing list