mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
video_core: stride fix
I don't know why it was forced to be 1 while in reality it should be as is
This commit is contained in:
parent
7b8bc90157
commit
00092567e4
@ -66,7 +66,7 @@ struct Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
u32 GetStride() const noexcept {
|
u32 GetStride() const noexcept {
|
||||||
return stride == 0 ? 1U : stride;
|
return stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 NumDwords() const noexcept {
|
u32 NumDwords() const noexcept {
|
||||||
@ -74,7 +74,7 @@ struct Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
u32 GetSize() const noexcept {
|
u32 GetSize() const noexcept {
|
||||||
return GetStride() * num_records;
|
return stride == 0 ? num_records : (stride * num_records);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
static_assert(sizeof(Buffer) == 16); // 128bits
|
static_assert(sizeof(Buffer) == 16); // 128bits
|
||||||
|
Loading…
Reference in New Issue
Block a user