diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-04-27 14:27:34 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-05-07 13:21:09 -0400 |
commit | 8a34a8149860ac15e83ccdbd8d9a527d8d3e5997 (patch) | |
tree | d0aae286f4d533f80679af72e3e6d7506b61df5e /src/amdgpu_dri2.c | |
parent | 9f61a5506b1028d30c99cb5866abcec35d5c9cb8 (diff) |
Remove throttling from amdgpu_dri2_copy_region2
Throttling should be handled by the client-side drivers.
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r-- | src/amdgpu_dri2.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index c018537..15bb497 100644 --- a/src/amdgpu_dri2.c +++ b/src/amdgpu_dri2.c @@ -358,25 +358,6 @@ amdgpu_dri2_copy_region2(ScreenPtr pScreen, (*gc->funcs->ChangeClip) (gc, CT_REGION, copy_clip, 0); ValidateGC(dst_drawable, gc); - /* If this is a full buffer swap or frontbuffer flush, throttle on the - * previous one - */ - if (dst_private->attachment == DRI2BufferFrontLeft) { - if (REGION_NUM_RECTS(region) == 1) { - BoxPtr extents = REGION_EXTENTS(pScreen, region); - - if (extents->x1 == 0 && extents->y1 == 0 && - extents->x2 == drawable->width && - extents->y2 == drawable->height) { - char pixel[4]; - - /* XXX: This is a pretty big hammer... */ - pScreen->GetImage(drawable, 0, 0, 1, 1, - ZPixmap, ~0, pixel); - } - } - } - (*gc->ops->CopyArea) (src_drawable, dst_drawable, gc, 0, 0, drawable->width, drawable->height, off_x, off_y); |