mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
vbo: correctly restore _VaryingInputs for display list fast path
Fixes: 3a294ff0 - mesa: move the _mesa_set_varying_vp_inputs call to where the state changes
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9007
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23796>
This commit is contained in:
parent
5c1d91d5da
commit
7b10877078
1 changed files with 3 additions and 1 deletions
|
|
@ -207,6 +207,7 @@ vbo_save_playback_vertex_list_gallium(struct gl_context *ctx,
|
|||
* which attribs have stride = 0 and whether edge flags are enabled.
|
||||
*/
|
||||
const GLbitfield enabled = node->enabled_attribs[mode];
|
||||
const GLbitfield saved_varying_vp_inputs = ctx->VertexProgram._VaryingInputs;
|
||||
_mesa_set_varying_vp_inputs(ctx, enabled);
|
||||
|
||||
if (ctx->NewState)
|
||||
|
|
@ -291,8 +292,9 @@ vbo_save_playback_vertex_list_gallium(struct gl_context *ctx,
|
|||
NULL, 1);
|
||||
}
|
||||
|
||||
/* Restore edge flag state. */
|
||||
/* Restore edge flag state and ctx->VertexProgram._VaryingInputs. */
|
||||
_mesa_update_edgeflag_state_vao(ctx);
|
||||
_mesa_set_varying_vp_inputs(ctx, saved_varying_vp_inputs);
|
||||
|
||||
if (copy_to_current)
|
||||
playback_copy_to_current(ctx, node);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue