From: Marek Olšák Date: Fri, 18 Nov 2022 12:07:46 +0000 (-0500) Subject: mesa: flag ST_NEW_FS_CONSTANTS instead of _NEW_PROGRAM for ATI_fs constants X-Git-Tag: upstream/23.3.3~15894 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b97b452afdfbc02159e57d2a08d3a1836c3d677;p=platform%2Fupstream%2Fmesa.git 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: --- 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); } }