[PATCH] dri2: Make last_vblank_seq local unsigned to match dpms_last_seq
Michel Dänzer
michel at daenzer.net
Tue Jan 7 18:33:06 PST 2014
From: Michel Dänzer <michel.daenzer at amd.com>
Without this, I was occasionally running into gnome-shell hangs due to wildly
off vblank sequence values. Doesn't seem to happen anymore with this change.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/radeon_dri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 79d8f39..d47b035 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -890,7 +890,7 @@ CARD32 radeon_dri2_extrapolate_msc_delay(xf86CrtcPtr crtc, CARD64 *target_msc,
RADEONInfoPtr info = RADEONPTR(pScrn);
int nominal_frame_rate = drmmode_crtc->dpms_last_fps;
CARD64 last_vblank_ust = drmmode_crtc->dpms_last_ust;
- int last_vblank_seq = drmmode_crtc->dpms_last_seq;
+ uint32_t last_vblank_seq = drmmode_crtc->dpms_last_seq;
int interpolated_vblanks = drmmode_crtc->interpolated_vblanks;
int target_seq;
CARD64 now, target_time, delta_t;
--
1.8.5.2
More information about the xorg-driver-ati
mailing list