diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 1fe8d30de2c..c15dbbb4be9 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -3519,10 +3519,16 @@ bi_emit_tex_valhall(bi_builder *b, nir_tex_instr *instr) break; case nir_tex_src_texture_offset: + /* This should always be 0 as lower_index_to_offset is expected to be + * set */ + assert(instr->texture_index == 0); texture = index; break; case nir_tex_src_sampler_offset: + /* This should always be 0 as lower_index_to_offset is expected to be + * set */ + assert(instr->sampler_index == 0); sampler = index; break;