summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-10-02 19:51:16 +0200
committerMarek Olšák <[email protected]>2017-10-06 02:56:11 +0200
commitea85b765194ad89531281d20b0651581ac730d68 (patch)
treeb9ff4a7c7b33c37f1dbb06506dcac50838c911bc /src
parentbe3ab867bd444594f9d9e0f8e59d305d15769afd (diff)
tgsi/scan: set non-valid src_index for tex offsets in scan_src_operand
tex offsets are not "Src" operands. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}