mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-11-23 03:09:55 +00:00
amdgpu: Fix buffer comparison by naming padding fields for initialization. (#1050)
This commit is contained in:
parent
f657ab3cc6
commit
11c155d0f1
@ -23,7 +23,7 @@ enum class CompSwizzle : u32 {
|
||||
// Table 8.5 Buffer Resource Descriptor [Sea Islands Series Instruction Set Architecture]
|
||||
struct Buffer {
|
||||
u64 base_address : 44;
|
||||
u64 : 4;
|
||||
u64 _padding0 : 4;
|
||||
u64 stride : 14;
|
||||
u64 cache_swizzle : 1;
|
||||
u64 swizzle_enable : 1;
|
||||
@ -37,7 +37,7 @@ struct Buffer {
|
||||
u32 element_size : 2;
|
||||
u32 index_stride : 2;
|
||||
u32 add_tid_enable : 1;
|
||||
u32 : 6;
|
||||
u32 _padding1 : 6;
|
||||
u32 type : 2; // overlaps with T# type, so should be 0 for buffer
|
||||
|
||||
bool Valid() const {
|
||||
|
Loading…
Reference in New Issue
Block a user