[PATCH] dri2: Make last_vblank_seq local unsigned to match dpms_last_seq

Alex Deucher alexdeucher at gmail.com
Wed Jan 8 06:47:12 PST 2014


On Tue, Jan 7, 2014 at 9:33 PM, Michel Dänzer <michel at daenzer.net> wrote:
> 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>

Reviewed-by: Alex Deucher <alexander.deucher 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
>
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati


More information about the xorg-driver-ati mailing list