diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-11-21 18:45:30 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-11-30 15:32:31 +0900 |
commit | 14c3f59f5157885ad8f941f0bad6c0c5e3db12f8 (patch) | |
tree | d750c0499c00b7543aa0cd9dd7c9a330ebad9319 /src | |
parent | a995f5830916a0fee5126263d1bfe48632be3a15 (diff) |
Call ValidateGC after ChangeClip in radeon_sync_scanout_pixmaps
The wrong order meant that the clipping region wasn't actually applied,
so it always copied the full contents from the other scanout pixmap.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 8bb261e2..5764c20c 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -495,8 +495,8 @@ radeon_sync_scanout_pixmaps(xf86CrtcPtr xf86_crtc, RegionPtr new_region, gc = GetScratchGC(dst->depth, pScreen); if (gc) { - ValidateGC(dst, gc); gc->funcs->ChangeClip(gc, CT_REGION, sync_region, 0); + ValidateGC(dst, gc); sync_region = NULL; gc->ops->CopyArea(src, dst, gc, 0, 0, dst->width, dst->height, 0, 0); FreeScratchGC(gc); |