diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-20 17:50:20 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-21 11:14:36 +0900 |
commit | 156b5bc00da2eecb71cad517136f8cd74cf5d2c9 (patch) | |
tree | 47c0dcce43a24adc0c7b5292f300174a37ebc1de /src/radeon_kms.c | |
parent | 80cc892ee1ce54fad3cb7dd11bd9df18c359136f (diff) |
Only define transform_region function for XF86_CRTC_VERSION >= 4
We're not using it with older xserver.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 9bcf657d..0d61d49b 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) |