public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm: atomic: fix legacy gamma set helper
@ 2016-04-08 17:17 Lionel Landwerlin
  2016-04-08 18:15 ` Bob Paauwe
  2016-04-09  6:56 ` ✗ Fi.CI.BAT: warning for " Patchwork
  0 siblings, 2 replies; 12+ messages in thread
From: Lionel Landwerlin @ 2016-04-08 17:17 UTC (permalink / raw)
  To: intel-gfx; +Cc: dri-devel

Color management properties are a bit of an odd use case because
they're not marked as atomic properties. Currently we're not updating
the non atomic values so the drm_crtc_state is out of sync with the
values stored in the crtc object.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Cc: <dri-devel@lists.freedesktop.org>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
 drivers/gpu/drm/drm_atomic_helper.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
index 7bf678e..4aacd44 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -2964,16 +2964,22 @@ retry:
 			config->degamma_lut_property, 0);
 	if (ret)
 		goto fail;
+	drm_object_property_set_value(&crtc->base,
+			config->degamma_lut_property, 0);
 
 	ret = drm_atomic_crtc_set_property(crtc, crtc_state,
 			config->ctm_property, 0);
 	if (ret)
 		goto fail;
+	drm_object_property_set_value(&crtc->base,
+			config->ctm_property, 0);
 
 	ret = drm_atomic_crtc_set_property(crtc, crtc_state,
 			config->gamma_lut_property, blob->base.id);
 	if (ret)
 		goto fail;
+	drm_object_property_set_value(&crtc->base,
+			config->gamma_lut_property, blob->base.id);
 
 	ret = drm_atomic_commit(state);
 	if (ret)
-- 
2.8.0.rc3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-04-18 12:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08 17:17 [PATCH] drm: atomic: fix legacy gamma set helper Lionel Landwerlin
2016-04-08 18:15 ` Bob Paauwe
2016-04-11 10:37   ` Lionel Landwerlin
2016-04-11 10:47     ` Maarten Lankhorst
2016-04-11 13:43       ` Lionel Landwerlin
2016-04-11 17:28         ` Bob Paauwe
2016-04-12 11:57         ` Daniel Vetter
2016-04-12 12:51           ` Lionel Landwerlin
2016-04-12 16:07             ` Daniel Vetter
2016-04-18 10:07               ` Lionel Landwerlin
2016-04-18 12:39                 ` Daniel Vetter
2016-04-09  6:56 ` ✗ Fi.CI.BAT: warning for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox