summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2018-06-15 18:41:34 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-09 18:27:27 +0200
commit6c986e997159ad0086f940294b244fc4c30b61fc (patch)
tree1bdcb07ce651b3ed1a4295172a5627698171795f /src
parent90b94d40449f665f2d12874598062a5e5e5b64cd (diff)
Remove throttling from radeon_dri2_copy_region2
Throttling should be handled by the client-side drivers. Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> (Ported from amdgpu commit 8a34a8149860ac15e83ccdbd8d9a527d8d3e5997) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri2.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 3b75f66f..6f469127 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -336,9 +336,7 @@ radeon_dri2_copy_region2(ScreenPtr pScreen,
Bool vsync;
Bool translate = FALSE;
int off_x = 0, off_y = 0;
- PixmapPtr dst_ppix;
- dst_ppix = dst_private->pixmap;
src_drawable = &src_private->pixmap->drawable;
dst_drawable = &dst_private->pixmap->drawable;
@@ -355,7 +353,6 @@ radeon_dri2_copy_region2(ScreenPtr pScreen,
dst_drawable = DRI2UpdatePrime(drawable, dest_buffer);
if (!dst_drawable)
return;
- dst_ppix = (PixmapPtr)dst_drawable;
if (dst_drawable != drawable)
translate = TRUE;
} else
@@ -379,26 +376,7 @@ radeon_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) {
- struct radeon_bo *bo = radeon_get_pixmap_bo(dst_ppix);
-
- if (bo)
- radeon_bo_wait(bo);
- }
- }
- }
-
vsync = info->accel_state->vsync;
-
/* Driver option "SwapbuffersWait" defines if we vsync DRI2 copy-swaps. */
info->accel_state->vsync = info->swapBuffersWait;
info->accel_state->force = TRUE;