[PATCH xf86-video-ati] Only define transform_region function for XF86_CRTC_VERSION >= 4

Deucher, Alexander Alexander.Deucher at amd.com
Tue Sep 20 16:11:46 UTC 2016


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Tuesday, September 20, 2016 5:03 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-ati] Only define transform_region function for
> XF86_CRTC_VERSION >= 4
> 
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> We're not using it with older xserver.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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

> ---
>  src/radeon_kms.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index 9bcf657..0d61d49 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -402,6 +402,8 @@ radeon_scanout_extents_intersect(xf86CrtcPtr
> xf86_crtc, BoxPtr extents, int w,
>      return (extents->x1 < extents->x2 && extents->y1 < extents->y2);
>  }
> 
> +#if XF86_CRTC_VERSION >= 4
> +
>  static RegionPtr
>  transform_region(RegionPtr region, struct pict_f_transform *transform,
>  		 int w, int h)
> @@ -440,6 +442,8 @@ transform_region(RegionPtr region, struct
> pict_f_transform *transform,
>  	return transformed;
>  }
> 
> +#endif
> +
>  static void
>  radeon_sync_scanout_pixmaps(xf86CrtcPtr xf86_crtc, RegionPtr
> new_region,
>  			    int scanout_id)
> --
> 2.9.3
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list