From 2c7f068b0a0493daae86e5eacdf8d9812fcd28dc Mon Sep 17 00:00:00 2001 From: Mykola Lysenko Date: Mon, 15 Feb 2016 18:21:39 +0900 Subject: Initialize drmmode_crtc dpms_mode to DPMSModeOff This disables query of disabled pipes for drmWaitVBlank on X start Signed-off-by: Mykola Lysenko (ported from amdgpu commit 4eb9cedca080b30c57ded349a397620ee7d0cd46) Reviewed-by: Alex Deucher --- src/drmmode_display.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drmmode_display.c') diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 14f6a553..4063743e 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); -- cgit v1.2.3