mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-18 05:50:33 +01:00
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 <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>
This commit is contained in:
parent
4bc0edd1cf
commit
5b97b452af
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue