[PATCH xf86-video-amdgpu] Initialize drmmode_crtc dpms_mode to DPMSModeOff

Mykola Lysenko Mykola.Lysenko at amd.com
Tue Jan 12 22:03:55 PST 2016


This disables query of disabled pipes for drmWaitVBlank on X start

Signed-off-by: Mykola Lysenko <Mykola.Lysenko 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 d3dc4b6..dadd8ad 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -975,6 +975,7 @@ drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res
 	drmmode_crtc->mode_crtc =
 	    drmModeGetCrtc(pAMDGPUEnt->fd, mode_res->crtcs[num]);
 	drmmode_crtc->drmmode = drmmode;
+	drmmode_crtc->dpms_mode = DPMSModeOff;
 	crtc->driver_private = drmmode_crtc;
 	drmmode_crtc_hw_id(crtc);
 
-- 
1.9.1



More information about the xorg-driver-ati mailing list