core: Fixup linux support (#195)

* tls: Implement for linux

* core: Implement memory manager for linux
This commit is contained in:
TheTurtle 2024-06-14 00:58:57 +03:00 committed by GitHub
parent e62690759d
commit 31bd502764
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 184 additions and 88 deletions

View file

@ -695,7 +695,7 @@ struct Liverpool {
NumberFormat NumFormat() const {
// There is a small difference between T# and CB number types, account for it.
return info.number_type == AmdGpu::NumberFormat::SnormNz ? AmdGpu::NumberFormat::Srgb
: info.number_type;
: info.number_type.Value();
}
};

View file

@ -32,7 +32,7 @@ struct Buffer {
};
u32 GetStride() const noexcept {
return stride == 0 ? 1U : stride;
return stride == 0 ? 1U : stride.Value();
}
u32 GetStrideElements(u32 element_size) const noexcept {