diff options
Diffstat (limited to 'src/compiler/nir/nir_remove_dead_variables.c')
-rw-r--r-- | src/compiler/nir/nir_remove_dead_variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_remove_dead_variables.c b/src/compiler/nir/nir_remove_dead_variables.c index db754e5..24bae46 100644 --- a/src/compiler/nir/nir_remove_dead_variables.c +++ b/src/compiler/nir/nir_remove_dead_variables.c @@ -54,8 +54,8 @@ add_var_use_call(nir_call_instr *instr, struct set *live) static void add_var_use_tex(nir_tex_instr *instr, struct set *live) { - if (instr->sampler != NULL) { - nir_variable *var = instr->sampler->var; + if (instr->texture != NULL) { + nir_variable *var = instr->texture->var; _mesa_set_add(live, var); } } |