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:
64140a7
)
mesa: populate gl_program::ShadowSamplers mask from shader data
author
Mike Blumenkrantz
<michael.blumenkrantz@gmail.com>
Fri, 20 Jan 2023 19:52:21 +0000
(14:52 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 24 Jan 2023 09:13:48 +0000
(09:13 +0000)
this data is already processed, it just isn't being propagated for whatever reason
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20817>
src/mesa/main/uniforms.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/uniforms.c
b/src/mesa/main/uniforms.c
index
8ef622f
..
47a8a86
100644
(file)
--- a/
src/mesa/main/uniforms.c
+++ b/
src/mesa/main/uniforms.c
@@
-111,6
+111,7
@@
_mesa_update_shader_textures_used(struct gl_shader_program *shProg,
assert(shProg->_LinkedShaders[prog_stage]);
memset(prog->TexturesUsed, 0, sizeof(prog->TexturesUsed));
+ prog->ShadowSamplers = prog->shader_program->_LinkedShaders[prog_stage]->shadow_samplers;
while (mask) {
s = u_bit_scan(&mask);