dri3: Pass __DRI2_THROTTLE_COPYSUBBUFFER from loader_dri3_copy_drawable
authorMichel Dänzer <mdaenzer@redhat.com>
Thu, 3 Oct 2019 10:23:45 +0000 (12:23 +0200)
committerMichel Dänzer <michel@daenzer.net>
Fri, 4 Oct 2019 08:55:43 +0000 (10:55 +0200)
commitb012f06d66100272f9bdf3d8f7fd0730d072ceee
tree9bb7b401daf04488df762f7715f14d897c2b12e7
parent7cbb44aa6ae417d32bd9fd5c2c858ade9a9acfd8
dri3: Pass __DRI2_THROTTLE_COPYSUBBUFFER from loader_dri3_copy_drawable

0 is __DRI2_THROTTLE_SWAPBUFFER, which doesn't really make sense here.

Avoids dri_flush() throttling twice for the same glFlush call with front
buffer rendering, as described in
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2057 .

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/loader/loader_dri3_helper.c