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 <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-10-02 19:51:16 +02:00
parent be3ab867bd
commit ea85b76519

View file

@ -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);
}
}