st/mesa: Make use of the new PIPE_TRANSFER_DISCARD_* for buffer object.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Sat, 26 Feb 2011 07:20:34 +0000 (08:20 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 15 Mar 2011 14:39:31 +0000 (15:39 +0100)
commitbaab835a1f11d026bd757d99ff05b59971042a3e
tree87cfa287dadf8f3f45f556ded2d55d587f8091b6
parentfedc5b03db64cbb76d101945017a46c5d27f1bbb
st/mesa: Make use of the new PIPE_TRANSFER_DISCARD_* for buffer object.

In memory mapping buffer objects make use of
PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE and PIPE_TRANSFER_DISCARD_RANGE
when appropriate.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/state_tracker/st_cb_bufferobjects.c