diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 8c975fccc23..76436907469 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -3137,12 +3137,17 @@ bi_emit_texc(bi_builder *b, nir_tex_instr *instr) break; case nir_tex_src_texture_offset: - assert(instr->texture_index == 0); + if (instr->texture_index) + index = bi_iadd_u32(b, index, bi_imm_u32(instr->texture_index), false); + dregs[BIFROST_TEX_DREG_TEXTURE] = index; + break; case nir_tex_src_sampler_offset: - assert(instr->sampler_index == 0); + if (instr->sampler_index) + index = bi_iadd_u32(b, index, bi_imm_u32(instr->sampler_index), false); + dregs[BIFROST_TEX_DREG_SAMPLER] = index; break; diff --git a/src/panfrost/ci/deqp-panfrost-g52-vk.toml b/src/panfrost/ci/deqp-panfrost-g52-vk.toml index c2220874daf..0ca070ba955 100644 --- a/src/panfrost/ci/deqp-panfrost-g52-vk.toml +++ b/src/panfrost/ci/deqp-panfrost-g52-vk.toml @@ -18,6 +18,7 @@ include = [ "dEQP-VK.glsl.builtin.precision.ldexp.*", "dEQP-VK.glsl.builtin_var.*", "dEQP-VK.glsl.indexing.varying_array.*", + "dEQP-VK.glsl.opaque_type_indexing.sampler.*", "dEQP-VK.glsl.conversions.*", "dEQP-VK.glsl.derivate.*.constant.*", "dEQP-VK.glsl.derivate.*.linear.*",