loader_dri3: Eliminate the back-to-fake-front copy
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 10 Aug 2017 15:20:49 +0000 (17:20 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Aug 2017 05:39:42 +0000 (07:39 +0200)
commitc898e02a337b6b1092a098c645cc2367ee514bcc
tree55d02c3935b31830ac62c6be86d8d7da1e6f1b77
parent74b4cdd80abc3d01d30125c5921f1bb4deeb0ddb
loader_dri3: Eliminate the back-to-fake-front copy

Eliminate the back-to-fake-front copy by exchanging the previous back buffer
and the fake front buffer. This is a gain except when we need to preserve
the back buffer content but in that case we still typically gain by replacing
a server-side blit by a client side non-flushing blit.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/loader/loader_dri3_helper.c