From 5b97b452afdfbc02159e57d2a08d3a1836c3d677 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 18 Nov 2022 07:07:46 -0500 Subject: [PATCH] mesa: flag ST_NEW_FS_CONSTANTS instead of _NEW_PROGRAM for ATI_fs constants We only need to update the constant buffer. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/atifragshader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/atifragshader.c b/src/mesa/main/atifragshader.c index f8fd16a..6baa6a4 100644 --- a/src/mesa/main/atifragshader.c +++ b/src/mesa/main/atifragshader.c @@ -827,7 +827,8 @@ _mesa_SetFragmentShaderConstantATI(GLuint dst, const GLfloat * value) curProg->LocalConstDef |= 1 << dstindex; } else { - FLUSH_VERTICES(ctx, _NEW_PROGRAM, 0); + FLUSH_VERTICES(ctx, 0, 0); + ctx->NewDriverState |= ST_NEW_FS_CONSTANTS; COPY_4V(ctx->ATIFragmentShader.GlobalConstants[dstindex], value); } } -- 2.7.4