projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc0edd
)
mesa: flag ST_NEW_FS_CONSTANTS instead of _NEW_PROGRAM for ATI_fs constants
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 18 Nov 2022 12:07:46 +0000
(07:07 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Wed, 7 Dec 2022 09:12:41 +0000
(09:12 +0000)
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>
src/mesa/main/atifragshader.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/atifragshader.c
b/src/mesa/main/atifragshader.c
index
f8fd16a
..
6baa6a4
100644
(file)
--- 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);
}
}