shader/decode: Fix constant buffer offsets
Some instances were using cbuf34.offset instead of cbuf34.GetOffset(). This returned the an invalid offset. Address those instances and rename offset to "shifted_offset" to avoid future bugs.
This commit is contained in:
parent
a0b4be4262
commit
bf9a822b87
3 changed files with 5 additions and 5 deletions
|
@ -1657,11 +1657,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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue