Commit fe100fd6 authored by Tom Denis's avatar Tom Denis Committed by Michel Dänzer
Browse files

present: Handle DPMS off in radeon_present_get_ust_msc

Based on radeon commit: 95f5d09e3667ded027ae648c97eb4737d8bf67c5

The DRM_IOCTL_WAIT_VBLANK ioctl may return an error during DPMS off,
which would trigger an error message in drmmode_crtc_get_ust_msc.
Signed-off-by: Tom Denis's avatarTom St Denis <>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
parent bfa925a0
......@@ -87,7 +87,13 @@ amdgpu_present_get_crtc(WindowPtr window)
static int
amdgpu_present_get_ust_msc(RRCrtcPtr crtc, CARD64 *ust, CARD64 *msc)
return drmmode_crtc_get_ust_msc(crtc->devPrivate, ust, msc);
xf86CrtcPtr xf86_crtc = crtc->devPrivate;
drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
if (drmmode_crtc->dpms_mode != DPMSModeOn)
return BadAlloc;
return drmmode_crtc_get_ust_msc(xf86_crtc, ust, msc);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment