[Mesa-dev] [FLAG-DAY-PREP 4/9] mesa/st: use nir_intrinsic_var() accessor
Rob Clark
robdclark at gmail.com
Thu Mar 15 14:28:03 UTC 2018
---
src/mesa/state_tracker/st_nir_lower_builtin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_nir_lower_builtin.c b/src/mesa/state_tracker/st_nir_lower_builtin.c
index fca0bef6653..29570eaf29b 100644
--- a/src/mesa/state_tracker/st_nir_lower_builtin.c
+++ b/src/mesa/state_tracker/st_nir_lower_builtin.c
@@ -163,7 +163,7 @@ lower_builtin_block(lower_builtin_state *state, nir_block *block)
if (intrin->intrinsic != nir_intrinsic_load_var)
continue;
- nir_variable *var = intrin->variables[0]->var;
+ nir_variable *var = nir_intrinsic_var(intrin, 0);
if (var->data.mode != nir_var_uniform)
continue;
--
2.14.3
More information about the mesa-dev
mailing list