summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_constant_folding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_constant_folding.c')
-rw-r--r--src/compiler/nir/nir_opt_constant_folding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c
index 28a73f8..20b31a8 100644
--- a/src/compiler/nir/nir_opt_constant_folding.c
+++ b/src/compiler/nir/nir_opt_constant_folding.c
@@ -136,8 +136,8 @@ constant_fold_intrinsic_instr(nir_intrinsic_instr *instr)
static bool
constant_fold_tex_instr(nir_tex_instr *instr)
{
- if (instr->sampler)
- return constant_fold_deref(&instr->instr, instr->sampler);
+ if (instr->texture)
+ return constant_fold_deref(&instr->instr, instr->texture);
else
return false;
}