[PATCH xf86-video-ati] Remove radeon_scanout_flip_handler

Alex Deucher alexdeucher at gmail.com
Fri Feb 26 17:50:35 UTC 2016


On Thu, Feb 25, 2016 at 4:03 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> No longer necessary now that radeon_drm_queue_handler can handle
> e->handler == NULL.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/radeon_kms.c | 9 +--------
>  1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index 38f5c4e..d93a4ce 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -486,12 +486,6 @@ radeon_scanout_flip_abort(ScrnInfoPtr scrn, void *event_data)
>  }
>
>  static void
> -radeon_scanout_flip_handler(ScrnInfoPtr scrn, uint32_t frame, uint64_t usec, void *event_data)
> -{
> -    radeon_scanout_flip_abort(scrn, event_data);
> -}
> -
> -static void
>  radeon_scanout_flip(ScreenPtr pScreen, RADEONInfoPtr info,
>                     xf86CrtcPtr xf86_crtc)
>  {
> @@ -510,8 +504,7 @@ radeon_scanout_flip(ScreenPtr pScreen, RADEONInfoPtr info,
>      scrn = xf86_crtc->scrn;
>      drm_queue_entry = radeon_drm_queue_alloc(scrn, RADEON_DRM_QUEUE_CLIENT_DEFAULT,
>                                              RADEON_DRM_QUEUE_ID_DEFAULT,
> -                                            drmmode_crtc,
> -                                            radeon_scanout_flip_handler,
> +                                            drmmode_crtc, NULL,
>                                              radeon_scanout_flip_abort);
>      if (!drm_queue_entry) {
>         xf86DrvMsg(scrn->scrnIndex, X_WARNING,
> --
> 2.7.0
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> https://lists.x.org/mailman/listinfo/xorg-driver-ati


More information about the xorg-driver-ati mailing list