st/mesa: don't invalidate a buffer range that is mapped
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 22:51:24 +0000 (18:51 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 15 Jul 2019 18:58:23 +0000 (14:58 -0400)
commitce04fbf67c9ded75a206c9560a3869df76a46839
tree8fe3a9402b63361405a2380afddbc48db49f00f5
parentfc4302d1dfe4fe724df250d0de1fcf0f60953c99
st/mesa: don't invalidate a buffer range that is mapped

This is needed to fix an issue with OpenGL when a buffer is mapped and
BufferSubData is called. In this case, we can't invalidate the buffer range.
src/mesa/state_tracker/st_cb_bufferobjects.c