mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 23:33:57 +00:00
R600: Use a mask for offsets when encoding instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51f7225f55
commit
af6f407432
@ -201,8 +201,11 @@ void R600MCCodeEmitter::EncodeInstruction(const MCInst &MI, raw_ostream &OS,
|
||||
uint64_t CoordType[4] = {1, 1, 1, 1};
|
||||
|
||||
if (HasOffsets)
|
||||
for (unsigned i = 0; i < 3; i++)
|
||||
Offsets[i] = MI.getOperand(i + 2).getImm();
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
int SignedOffset = MI.getOperand(i + 2).getImm();
|
||||
Offsets[i] = (SignedOffset & 0x1F);
|
||||
}
|
||||
|
||||
|
||||
if (TextureType == TEXTURE_RECT ||
|
||||
TextureType == TEXTURE_SHADOWRECT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user