st/mesa: use pipe->invalidate_resource instead of buffer re-allocation
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 11 Jan 2016 22:44:45 +0000 (17:44 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 14 Jan 2016 14:39:53 +0000 (09:39 -0500)
commit9e2240e892cb893d60561bf7be157ad8939b3ea8
tree8e42776779bd42611f7eaea03ef710bdb4ec4142
parent654670b4048ae079879a04c41829902060a93931
st/mesa: use pipe->invalidate_resource instead of buffer re-allocation

Drivers are expected to avoid unnecessary work when possible in this code
path.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_bufferobjects.c