From 2a25b47c87e7d1e9cb9c8ea88f25ec2b93becc7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 18 Nov 2022 07:49:33 -0500 Subject: [PATCH] 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 Part-of: --- src/mesa/main/state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 5cba82c..9e56bfc 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -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) { -- 2.7.4