tgsi/scan: set correct usage mask for tex offsets in scan_src_operand
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
5cc779197c
commit
37714c6df2
|
@ -466,12 +466,12 @@ scan_instruction(struct tgsi_shader_info *info,
|
||||||
|
|
||||||
src.Register.File = fullinst->TexOffsets[i].File;
|
src.Register.File = fullinst->TexOffsets[i].File;
|
||||||
src.Register.Index = fullinst->TexOffsets[i].Index;
|
src.Register.Index = fullinst->TexOffsets[i].Index;
|
||||||
src.Register.SwizzleX = fullinst->TexOffsets[i].SwizzleX;
|
|
||||||
src.Register.SwizzleY = fullinst->TexOffsets[i].SwizzleY;
|
|
||||||
src.Register.SwizzleZ = fullinst->TexOffsets[i].SwizzleZ;
|
|
||||||
|
|
||||||
/* The usage mask is suboptimal but should be safe. */
|
/* The usage mask is suboptimal but should be safe. */
|
||||||
scan_src_operand(info, fullinst, &src, -1, TGSI_WRITEMASK_XYZ,
|
scan_src_operand(info, fullinst, &src, -1,
|
||||||
|
(1 << fullinst->TexOffsets[i].SwizzleX) |
|
||||||
|
(1 << fullinst->TexOffsets[i].SwizzleY) |
|
||||||
|
(1 << fullinst->TexOffsets[i].SwizzleZ),
|
||||||
false, &is_mem_inst);
|
false, &is_mem_inst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue