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>
* 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)
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);