video_core: stride fix (#986)

I don't know why it was forced to be 1 while in reality it should be as is
This commit is contained in:
korenkonder 2024-09-19 22:43:03 +03:00 committed by GitHub
parent 7b8f0d2a19
commit 60f315a54d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ struct Buffer {
}
u32 GetStride() const noexcept {
return stride == 0 ? 1U : stride;
return stride;
}
u32 NumDwords() const noexcept {
@ -74,7 +74,7 @@ struct Buffer {
}
u32 GetSize() const noexcept {
return GetStride() * num_records;
return stride == 0 ? num_records : (stride * num_records);
}
};
static_assert(sizeof(Buffer) == 16); // 128bits