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:
d0d5ef6
)
nir/lower_uniforms_to_ubo: Use nir_foreach_variable_with_modes
author
Jason Ekstrand
<jason@jlekstrand.net>
Tue, 21 Jul 2020 16:22:23 +0000
(11:22 -0500)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 29 Jul 2020 17:38:58 +0000
(17:38 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
src/compiler/nir/nir_lower_uniforms_to_ubo.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_lower_uniforms_to_ubo.c
b/src/compiler/nir/nir_lower_uniforms_to_ubo.c
index
eef0d41
..
bdee9e9
100644
(file)
--- a/
src/compiler/nir/nir_lower_uniforms_to_ubo.c
+++ b/
src/compiler/nir/nir_lower_uniforms_to_ubo.c
@@
-105,10
+105,8
@@
nir_lower_uniforms_to_ubo(nir_shader *shader, int multiplier)
if (progress) {
if (!shader->info.first_ubo_is_default_ubo) {
- nir_foreach_variable(var, &shader->uniforms) {
- if (var->data.mode == nir_var_mem_ubo)
- var->data.binding++;
- }
+ nir_foreach_variable_with_modes(var, shader, nir_var_mem_ubo)
+ var->data.binding++;
}
shader->info.num_ubos++;