[PATCH xf86-video-ati 3/6] Initialize drmmode_crtc dpms_mode to DPMSModeOff
Michel Dänzer
michel at daenzer.net
Tue Feb 16 08:29:06 UTC 2016
From: Mykola Lysenko <Mykola.Lysenko at amd.com>
This disables query of disabled pipes for drmWaitVBlank on X start
Signed-off-by: Mykola Lysenko <Mykola.Lysenko at amd.com>
(ported from amdgpu commit 4eb9cedca080b30c57ded349a397620ee7d0cd46)
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/drmmode_display.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 14f6a55..4063743 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1063,6 +1063,7 @@ drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res
drmmode_crtc = xnfcalloc(sizeof(drmmode_crtc_private_rec), 1);
drmmode_crtc->mode_crtc = drmModeGetCrtc(drmmode->fd, mode_res->crtcs[num]);
drmmode_crtc->drmmode = drmmode;
+ drmmode_crtc->dpms_mode = DPMSModeOff;
crtc->driver_private = drmmode_crtc;
drmmode_crtc_hw_id(crtc);
--
2.7.0
More information about the xorg-driver-ati
mailing list