st/mesa: Invalidate the gallium array atom only if needed.
authorMathias Fröhlich <mathias.froehlich@web.de>
Tue, 26 Feb 2019 05:39:05 +0000 (06:39 +0100)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Mon, 4 Mar 2019 16:03:06 +0000 (17:03 +0100)
commit904a0552aabf0624f1d7507b89d8a9a7bdd3bad5
tree6e6c7b88a12fe0809ccd50e6aa81252f831c52fc
parente727f8c8b814b9c36d4a8b52829c2bf7281765be
st/mesa: Invalidate the gallium array atom only if needed.

Now that the buffer object usage history tracks if it is
being used as vertex buffer object, we can restrict setting
the ST_NEW_VERTEX_ARRAYS bit to dirty on glBufferData calls to
buffers that are potentially used as vertex buffer object.
Also put a note that the same could be done for index arrays
used in indexed draws.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/state_tracker/st_cb_bufferobjects.c