summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMykola Lysenko <Mykola.Lysenko@amd.com>2016-02-15 18:21:39 +0900
committerMichel Dänzer <michel@daenzer.net>2016-02-17 11:42:16 +0900
commit2c7f068b0a0493daae86e5eacdf8d9812fcd28dc (patch)
tree7a41cbc7a28c762aec57d51ca324165678123bc5 /src/drmmode_display.c
parent9358e44f03c95396b7f7a4f7398f5b24d2559bb2 (diff)
Initialize drmmode_crtc dpms_mode to DPMSModeOff
This disables query of disabled pipes for drmWaitVBlank on X start Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com> (ported from amdgpu commit 4eb9cedca080b30c57ded349a397620ee7d0cd46) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c1
1 files changed, 1 insertions, 0 deletions
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);