st/dri: Perform MSAA downsampling for __DRI2_THROTTLE_COPYSUBBUFFER
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Oct 2019 16:11:22 +0000 (12:11 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 5 Oct 2019 13:19:37 +0000 (13:19 +0000)
commit72beda4fb451d35fdda60f015f370c24af114ccf
tree19085935e67554d6ceb4f36899ef7b487d52ce94
parent6309c31fd815285dab4d6e79dcbdd4773350e50f
st/dri: Perform MSAA downsampling for __DRI2_THROTTLE_COPYSUBBUFFER

glXCopySubBufferMESA copies data from the back buffer to the front,
so it needs to perform a MSAA downsampling operation just like
glXSwapBuffers would.

Currently, the CopySubBuffer implementations supply a throttle reason
of __DRI2_THROTTLE_SWAPBUFFERS, so they hit this path and work today.
But we'd like to avoid swapbuffer throttling in this case, so the next
patch will change that reason.

Tested-by: Michel Dänzer <mdaenzer@redhat.com> # DRI3 only
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
src/gallium/state_trackers/dri/dri_drawable.c