mesa: move the _mesa_set_varying_vp_inputs call to where the state changes
authorMarek Olšák <marek.olsak@amd.com>
Wed, 23 Nov 2022 10:08:07 +0000 (05:08 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Dec 2022 19:15:34 +0000 (19:15 +0000)
commit3a294ff01fb9d1d8b4f984a364ed7ef469624c49
tree2bcfc00ade1ee9c4a8de67532bafbb1d415856fa
parentfe1d53355324a42ca6c69bd565131255aec0a56c
mesa: move the _mesa_set_varying_vp_inputs call to where the state changes

This removes the _mesa_update_vao_state() call from all glDraw* functions
where it was executed unconditionally.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19953>
src/mesa/main/context.c
src/mesa/main/draw.c
src/mesa/main/draw.h
src/mesa/main/state.c
src/mesa/main/varray.c
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_save_draw.c