[PATCH xf86-video-amdgpu 12/13] Update color properties on modeset major
sunpeng.li at amd.com
sunpeng.li at amd.com
Thu May 3 18:31:54 UTC 2018
From: "Leo (Sunpeng) Li" <sunpeng.li at 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.li at 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
More information about the amd-gfx
mailing list