summaryrefslogtreecommitdiff
path: root/src/radeon_video.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-05-10 18:45:30 +0900
committerMichel Dänzer <michel@daenzer.net>2016-08-03 18:17:50 +0900
commit9090309e057dc703d1a5bffd88e6cae14108cfc3 (patch)
treec687a0aedcc5285a5b39ec5a0d62d157f7f7518b /src/radeon_video.c
parent9a1afbf61fbb2827c86bd86d295fa0848980d60b (diff)
Wait for pending flips to complete before turning off an output or CRTC
At least with older kernels, the flip may never complete otherwise, which can result in us hanging in drmmode_set_mode_major. Fixes: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r--src/radeon_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index e08d8e00..d058986a 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -71,7 +71,7 @@ radeon_box_area(BoxPtr box)
Bool radeon_crtc_is_enabled(xf86CrtcPtr crtc)
{
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
- return drmmode_crtc->dpms_mode == DPMSModeOn;
+ return drmmode_crtc->pending_dpms_mode == DPMSModeOn;
}
xf86CrtcPtr