diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-09-13 19:50:35 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2012-09-13 19:50:35 +0200 |
commit | 8637f772347c958fa3beea6c0dc9c22255db70e5 (patch) | |
tree | f8759ff787f50a9071d11b403d7cc2c61b247f5a /src/radeon_dri2.c | |
parent | 40b87f0e9db2642ca8a70e994fb4d3742e199640 (diff) |
glamor: Force acceleration for DRI2 copies.
Improves performance of non-pageflipped 3D apps on SI.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r-- | src/radeon_dri2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index 7c5898c1..1e04b85a 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -633,10 +633,12 @@ radeon_dri2_copy_region2(ScreenPtr pScreen, /* Driver option "SwapbuffersWait" defines if we vsync DRI2 copy-swaps. */ info->accel_state->vsync = info->swapBuffersWait; + info->accel_state->force = TRUE; (*gc->ops->CopyArea)(src_drawable, dst_drawable, gc, 0, 0, drawable->width, drawable->height, off_x, off_y); + info->accel_state->force = FALSE; info->accel_state->vsync = vsync; FreeScratchGC(gc); |