diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-03-29 10:42:33 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-04-04 10:34:03 +0200 |
commit | 5a50ec8921095c6641ab84e69c40f1036c5a31a9 (patch) | |
tree | 6dd6cb473b52a871c912a09a50b88761923dfd49 /lib | |
parent | c9a9cf357b6b2a304623790bf8dae797e12888a8 (diff) |
lib/igt_kms: Clear pipe color management properties on reset.
Just like we try to sanitize all properties in igt_plane_reset, we
should do the same for pipe properties. Loading a wrong lut could
affect passing and failing tests, so we need to be careful and set
sane defaults for everything.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_kms.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 1e2415bf..a975ff14 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1795,6 +1795,15 @@ static void igt_pipe_reset(igt_pipe_t *pipe) igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_ACTIVE, 0); igt_pipe_obj_clear_prop_changed(pipe, IGT_CRTC_OUT_FENCE_PTR); + if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_CTM)) + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_CTM, 0); + + if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_GAMMA_LUT)) + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_GAMMA_LUT, 0); + + if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_DEGAMMA_LUT)) + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_DEGAMMA_LUT, 0); + pipe->out_fence_fd = -1; } |