diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-03-05 19:11:15 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-03-12 13:17:21 +0100 |
commit | d7fcd3382e4ca141171db1c2c415150e2cac082f (patch) | |
tree | 8f96c26d22c4f80481ee12086885c8d62e87b1be /tests/kms_chamelium.c | |
parent | add8216df607db8152a38773b201dcb7e6656086 (diff) |
tests/kms_chamelium: Make tests run without pipe color management support.
Only try to set those values if the properties are supported.
This fixes the kms_chameium tests to run on vc4 again.
Reported-by: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'tests/kms_chamelium.c')
-rw-r--r-- | tests/kms_chamelium.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index 8855a830..2bc34d07 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -471,9 +471,12 @@ enable_output(data_t *data, igt_output_override_mode(output, mode); /* Clear any color correction values that might be enabled */ - igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_DEGAMMA_LUT, NULL, 0); - igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_GAMMA_LUT, NULL, 0); - igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_CTM, NULL, 0); + if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_DEGAMMA_LUT)) + igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_DEGAMMA_LUT, NULL, 0); + if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_GAMMA_LUT)) + igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_GAMMA_LUT, NULL, 0); + if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_CTM)) + igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_CTM, NULL, 0); igt_display_commit2(display, COMMIT_ATOMIC); |