All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] lib/igt_kms: Clear pipe color management properties on reset.
@ 2019-04-03 10:30 Maarten Lankhorst
  2019-04-03 10:30 ` [igt-dev] [PATCH i-g-t 2/2] otests/kms_yuv: Add yuv specific tests, v5.1 Maarten Lankhorst
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maarten Lankhorst @ 2019-04-03 10:30 UTC (permalink / raw)
  To: igt-dev

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>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/igt_kms.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 1e2415bf9c89..a975ff1499ca 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;
 }
 
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [igt-dev] [PATCH i-g-t 1/2] lib/igt_kms: Clear pipe color management properties on reset.
@ 2019-03-29 10:35 Maarten Lankhorst
  2019-03-29 10:40 ` Ville Syrjälä
  0 siblings, 1 reply; 6+ messages in thread
From: Maarten Lankhorst @ 2019-03-29 10:35 UTC (permalink / raw)
  To: igt-dev

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>
---
 lib/igt_kms.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 43f45997073c..05cb9bd22090 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1804,6 +1804,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;
 }
 
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-04  3:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 10:30 [igt-dev] [PATCH i-g-t 1/2] lib/igt_kms: Clear pipe color management properties on reset Maarten Lankhorst
2019-04-03 10:30 ` [igt-dev] [PATCH i-g-t 2/2] otests/kms_yuv: Add yuv specific tests, v5.1 Maarten Lankhorst
2019-04-03 11:36 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib/igt_kms: Clear pipe color management properties on reset Patchwork
2019-04-04  3:04 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2019-03-29 10:35 [igt-dev] [PATCH i-g-t 1/2] " Maarten Lankhorst
2019-03-29 10:40 ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.