From 396b41095944ea3675d30c0d47ca8c01db2b4c8f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 3 Oct 2019 12:16:50 -0400 Subject: dri: Avoid swapbuffer throttling in glXCopySubBufferMESA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were supplying __DRI2_THROTTLE_SWAPBUFFER, rather than the obvious choice of __DRI2_THROTTLE_COPYSUBBUFFER. This meant that we hit the swap-based frame throttling. glXCopySubBuffer doesn't seem like it's intended to be a frame boundary, so we'd like to avoid this throttling. Tested-by: Michel Dänzer # DRI3 only Reviewed-by: Michel Dänzer --- src/loader/loader_dri3_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/loader') diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 90c55436cf7..be33575e1a8 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -763,7 +763,7 @@ loader_dri3_copy_sub_buffer(struct loader_dri3_drawable *draw, if (flush) flags |= __DRI2_FLUSH_CONTEXT; - loader_dri3_flush(draw, flags, __DRI2_THROTTLE_SWAPBUFFER); + loader_dri3_flush(draw, flags, __DRI2_THROTTLE_COPYSUBBUFFER); back = dri3_find_back_alloc(draw); if (!back) -- cgit v1.2.3