st/mesa: don't update unrelated states in non-draw calls such as Clear
authorMarek Olšák <marek.olsak@amd.com>
Wed, 22 Feb 2017 18:59:27 +0000 (19:59 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Feb 2017 23:03:09 +0000 (00:03 +0100)
commite027935a795ecf546f3e4abcc25655766f9615ac
tree0022dfc08cfa224309eee5f5913fa0b9a95c7c57
parentcc2f92b09f8ab0470106185585fdc1282da523e6
st/mesa: don't update unrelated states in non-draw calls such as Clear

If a VAO isn't bound and u_vbuf isn't enabled because of the Core profile,
we'll get user vertex buffers in drivers if we update vertex buffers
in glClear. So don't do that.

This fixes a regression since disabling u_vbuf for Core profiles.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom.c
src/mesa/state_tracker/st_atom.h
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_msaa.c
src/mesa/state_tracker/st_cb_readpixels.c