gallium/util: Use PIPE_TRANSFER_DISCARD_RANGE in pipe_buffer_write.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Thu, 10 Mar 2011 05:46:32 +0000 (06:46 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 15 Mar 2011 14:39:38 +0000 (15:39 +0100)
commit65942e141fc3da760b53248eafdd876a45b592d4
treeaed92c754d1a74a47d57dea0b4ad05646cf3abd0
parentbaab835a1f11d026bd757d99ff05b59971042a3e
gallium/util: Use PIPE_TRANSFER_DISCARD_RANGE in pipe_buffer_write.

Additionally, to discarding the whole buffer, use
PIPE_TRANSFER_DISCARD_RANGE in pipe_buffer_write when the
write covers only part of the buffer.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/gallium/auxiliary/util/u_inlines.h