Merge pull request #3379 from ReinUsesLisp/cbuf-offset

shader/decode: Fix constant buffer offsets
This commit is contained in:
bunnei 2020-02-14 13:22:53 -05:00 committed by GitHub
commit 63a59b9935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1677,11 +1677,11 @@ union Instruction {
} xmad;
union {
BitField<20, 14, u64> offset;
BitField<20, 14, u64> shifted_offset;
BitField<34, 5, u64> index;
u64 GetOffset() const {
return offset * 4;
return shifted_offset * 4;
}
} cbuf34;