projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir: Use a single list for all shader variables
[mesa.git]
/
src
/
compiler
/
nir
/
nir_opt_access.c
diff --git
a/src/compiler/nir/nir_opt_access.c
b/src/compiler/nir/nir_opt_access.c
index 99ecdb5400c6f585c394fc211b88a6f8180ec7c6..d428e29f6ea24fa22940f9f83f3a89b6148ce4d9 100644
(file)
--- a/
src/compiler/nir/nir_opt_access.c
+++ b/
src/compiler/nir/nir_opt_access.c
@@
-322,7
+322,9
@@
nir_opt_access(nir_shader *shader)
}
}
- nir_foreach_variable(var, &shader->uniforms)
+ nir_foreach_variable_with_modes(var, shader, nir_var_uniform |
+ nir_var_mem_ubo |
+ nir_var_mem_ssbo)
var_progress |= process_variable(&state, var);
nir_foreach_function(func, shader) {