dri: Avoid swapbuffer throttling in glXCopySubBufferMESA
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Oct 2019 16:16:50 +0000 (12:16 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 5 Oct 2019 13:19:37 +0000 (13:19 +0000)
commit396b41095944ea3675d30c0d47ca8c01db2b4c8f
tree807a7eee77b471057965f353292666979995e243
parent72beda4fb451d35fdda60f015f370c24af114ccf
dri: Avoid swapbuffer throttling in glXCopySubBufferMESA

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 <mdaenzer@redhat.com> # DRI3 only
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
src/glx/dri2_glx.c
src/loader/loader_dri3_helper.c