From 358b0a57bfd7b5f7e0e05fa4f4cfab5c106a82ff Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sat, 9 May 2020 10:40:58 +0200 Subject: [PATCH] r600/sfn: support indirect sampler buffer reads. Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp b/src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp index 1059db8e4f1..1495714fab0 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_emittexinstruction.cpp @@ -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; -- 2.30.2