summaryrefslogtreecommitdiff
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2022-11-23 05:08:07 -0500
committerMarge Bot <emma+marge@anholt.net>2022-12-12 19:15:34 +0000
commit3a294ff01fb9d1d8b4f984a364ed7ef469624c49 (patch)
tree2bcfc00ade1ee9c4a8de67532bafbb1d415856fa /src/mesa/vbo
parentfe1d53355324a42ca6c69bd565131255aec0a56c (diff)
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>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_exec_draw.c1
-rw-r--r--src/mesa/vbo/vbo_save_draw.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c
index 81a26df1019..4b2e767b8e0 100644
--- a/src/mesa/vbo/vbo_exec_draw.c
+++ b/src/mesa/vbo/vbo_exec_draw.c
@@ -151,7 +151,6 @@ vbo_exec_bind_arrays(struct gl_context *ctx,
_mesa_save_and_set_draw_vao(ctx, vao, vao_filter,
old_vao, old_vp_input_filter);
- _mesa_update_vao_state(ctx, vao_filter);
}
diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c
index 1d9573738cd..284da5e8fa1 100644
--- a/src/mesa/vbo/vbo_save_draw.c
+++ b/src/mesa/vbo/vbo_save_draw.c
@@ -328,7 +328,6 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data, bool copy_to_c
_mesa_save_and_set_draw_vao(ctx, node->cold->VAO[mode], vao_filter,
&old_vao, &old_vp_input_filter);
- _mesa_update_vao_state(ctx, vao_filter);
/* Need that at least one time. */
if (ctx->NewState)