llvmpipe: avoid flushing depth buffer cache on swapbuffers
authorKeith Whitwell <keithw@vmware.com>
Thu, 23 Jul 2009 10:14:39 +0000 (11:14 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:17 +0000 (09:21 +0100)
commit2a7c39a21102f1c373f7415985ee8f31be4da40a
treeca426e86653f59d5b0620099174c4fa1d908dada
parent3adca9611479936eb0b719b276ac94889a7c6bf3
llvmpipe: avoid flushing depth buffer cache on swapbuffers

There's no need to push out depth buffer contents on swapbuffers.

Note that this change doesn't throw away depth buffer changes, it simply
holds them in the cache over calls to swapbuffers.  The hope is
that swapbuffers will be followed by a clear() which means in that case
we won't have to write the changes out.
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_flush.c