projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git]
/
src
/
compiler
/
nir
/
nir_lower_bitmap.c
diff --git
a/src/compiler/nir/nir_lower_bitmap.c
b/src/compiler/nir/nir_lower_bitmap.c
index 880053d31fee8babb87d2b4557991bf938bd9a21..f9173a64796797220d5a485061bf7b9492cfbe60 100644
(file)
--- a/
src/compiler/nir/nir_lower_bitmap.c
+++ b/
src/compiler/nir/nir_lower_bitmap.c
@@
-58,7
+58,7
@@
get_texcoord(nir_shader *shader)
nir_variable *texcoord = NULL;
/* find gl_TexCoord, if it exists: */
- nir_foreach_
variable(var, &shader->inputs
) {
+ nir_foreach_
shader_in_variable(var, shader
) {
if (var->data.location == VARYING_SLOT_TEX0) {
texcoord = var;
break;