mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
mesa: set _DrawVAOEnabledAttribs only when it changes
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
This commit is contained in:
parent
ba29044fba
commit
40b8838a5a
1 changed files with 3 additions and 2 deletions
|
|
@ -682,12 +682,13 @@ _mesa_set_draw_vao(struct gl_context *ctx, struct gl_vertex_array_object *vao,
|
|||
|
||||
/* May shuffle the position and generic0 bits around, filter out unwanted */
|
||||
const GLbitfield enabled = filter & _mesa_get_vao_vp_inputs(vao);
|
||||
if (ctx->Array._DrawVAOEnabledAttribs != enabled)
|
||||
if (ctx->Array._DrawVAOEnabledAttribs != enabled) {
|
||||
ctx->Array._DrawVAOEnabledAttribs = enabled;
|
||||
new_array = true;
|
||||
}
|
||||
|
||||
if (new_array)
|
||||
ctx->NewDriverState |= ctx->DriverFlags.NewArray;
|
||||
|
||||
ctx->Array._DrawVAOEnabledAttribs = enabled;
|
||||
set_varying_vp_inputs(ctx, enabled);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue