summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 6bb3dc6e..a1f01455 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -988,11 +988,11 @@ static int radeon_dri2_get_msc(DrawablePtr draw, CARD64 *ust, CARD64 *msc)
if (radeon_crtc_is_enabled(crtc)) {
/* CRTC is running, read vblank counter and timestamp */
ret = drmmode_crtc_get_ust_msc(crtc, ust, msc);
+ if (ret != Success)
+ return FALSE;
- if (ret != Success) {
- *msc += radeon_get_interpolated_vblanks(crtc);
- *msc &= 0xffffffff;
- }
+ *msc += radeon_get_interpolated_vblanks(crtc);
+ *msc &= 0xffffffff;
} else {
/* CRTC is not running, extrapolate MSC and timestamp */
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;