From ea85b765194ad89531281d20b0651581ac730d68 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 2 Oct 2017 19:51:16 +0200 Subject: tgsi/scan: set non-valid src_index for tex offsets in scan_src_operand MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tex offsets are not "Src" operands. Reviewed-by: Nicolai Hähnle --- src/gallium/auxiliary/tgsi/tgsi_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 212d1bb95a8..6f87f8dd555 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -484,7 +484,7 @@ scan_instruction(struct tgsi_shader_info *info, src.Register.SwizzleZ = fullinst->TexOffsets[i].SwizzleZ; /* The usage mask is suboptimal but should be safe. */ - scan_src_operand(info, fullinst, &src, 0, TGSI_WRITEMASK_XYZ, + scan_src_operand(info, fullinst, &src, -1, TGSI_WRITEMASK_XYZ, false, &is_mem_inst); } } -- cgit v1.2.3