softpipe: avoid flushing depth buffer cache on swapbuffers
authorKeith Whitwell <keithw@vmware.com>
Thu, 23 Jul 2009 10:14:39 +0000 (11:14 +0100)
committerKeith Whitwell <keithw@vmware.com>
Thu, 23 Jul 2009 10:14:39 +0000 (11:14 +0100)
commit93a026d4baf90266f4c9cc48d039b4d65ce1ab6d
treec57bae914ed4422338bb60c9c7f7413ec9c80661
parent19097907ef042b97bbbda39b34bf3212f4cf154a
softpipe: 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/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_flush.c