amdgpu: Fix buffer comparison by naming padding fields for initialization. (#1050)

This commit is contained in:
squidbus 2024-09-25 04:08:10 -07:00 committed by GitHub
parent f657ab3cc6
commit 11c155d0f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ enum class CompSwizzle : u32 {
// Table 8.5 Buffer Resource Descriptor [Sea Islands Series Instruction Set Architecture] // Table 8.5 Buffer Resource Descriptor [Sea Islands Series Instruction Set Architecture]
struct Buffer { struct Buffer {
u64 base_address : 44; u64 base_address : 44;
u64 : 4; u64 _padding0 : 4;
u64 stride : 14; u64 stride : 14;
u64 cache_swizzle : 1; u64 cache_swizzle : 1;
u64 swizzle_enable : 1; u64 swizzle_enable : 1;
@ -37,7 +37,7 @@ struct Buffer {
u32 element_size : 2; u32 element_size : 2;
u32 index_stride : 2; u32 index_stride : 2;
u32 add_tid_enable : 1; u32 add_tid_enable : 1;
u32 : 6; u32 _padding1 : 6;
u32 type : 2; // overlaps with T# type, so should be 0 for buffer u32 type : 2; // overlaps with T# type, so should be 0 for buffer
bool Valid() const { bool Valid() const {