mesa: flag ST_NEW_RASTERIZER for !needs_texcoord_semantic if changing FS

This will be required with the next change, which will remove
the rasterizer state dependency on _NEW_PROGRAM.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>
This commit is contained in:
Marek Olšák 2022-11-18 07:49:33 -05:00 committed by Marge Bot
parent 7950661aa0
commit 2a25b47c87

View file

@ -335,6 +335,9 @@ update_program(struct gl_context *ctx)
dirty |= prev_fp_affected_states;
if (ctx->FragmentProgram._Current)
dirty |= ctx->FragmentProgram._Current->affected_states;
if (!ctx->st->needs_texcoord_semantic)
dirty |= ST_NEW_RASTERIZER;
}
if (cp_changed) {