diff --git a/src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c b/src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c index 38474749955..8bcccfe29dd 100644 --- a/src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c +++ b/src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c @@ -107,7 +107,7 @@ ir3_nir_coord_offset(nir_ssa_def *ssa) static bool has_src(nir_tex_instr *tex, nir_tex_src_type type) { - return nir_tex_instr_src_index(tex, type) > 0; + return nir_tex_instr_src_index(tex, type) >= 0; } static bool