r600/sfn: support indirect sampler buffer reads.
authorGert Wollny <gert.wollny@collabora.com>
Sat, 9 May 2020 08:40:58 +0000 (10:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 07:52:13 +0000 (07:52 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>

src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp

index 1059db8e4f13528703d1bfb5b47a973828ee6e13..1495714fab076ab54e2afaa977b9056776955797 100644 (file)
@@ -393,7 +393,7 @@ bool EmitTexInstruction::emit_buf_txf(nir_tex_instr* instr, TexInputs &src)
 
    auto ir = new FetchInstruction(vc_fetch, no_index_offset, dst, src.coord.reg_i(0), 0,
                                   instr->texture_index +  R600_MAX_CONST_BUFFERS,
-                                  PValue(), bim_none);
+                                  src.texture_offset, bim_none);
    ir->set_flag(vtx_use_const_field);
    emit_instruction(ir);
    return true;