From: "Leo (Sunpeng) Li" <sunpeng...@amd.com>

This is needed for cases such as enabling a CRTC on an output that did
not previously have a CRTC attached. Doing so will update the output
properties listed with the correct color properties.

Signed-off-by: Leo (Sunpeng) Li <sunpeng...@amd.com>
---
 src/drmmode_display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index f7fad34..ba8be14 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1498,6 +1498,8 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr 
mode,
                        goto done;
 
                drmmode_crtc_update_tear_free(crtc);
+               drmmode_crtc_update_cm_props(crtc);
+
                if (drmmode_crtc->tear_free)
                        scanout_id = drmmode_crtc->scanout_id;
                else
-- 
2.7.4

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

Reply via email to