mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 21:36:54 +01:00
Revert "fix(agc): honor top bound for single-ended buffers"
This reverts commit 1469c53048.
This commit is contained in:
+2
-3
@@ -257,12 +257,11 @@ struct CommandBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] KYTY_SYSV_ABI uint32_t GetAvailableSizeDW() const {
|
[[nodiscard]] KYTY_SYSV_ABI uint32_t GetAvailableSizeDW() const {
|
||||||
auto* end = cursor_down != nullptr ? cursor_down : top;
|
if (cursor_up == nullptr || cursor_down == nullptr || cursor_down <= cursor_up) {
|
||||||
if (cursor_up == nullptr || end == nullptr || end <= cursor_up) {
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto available = static_cast<uint64_t>(end - cursor_up);
|
auto available = static_cast<uint64_t>(cursor_down - cursor_up);
|
||||||
if (available <= reserved_dw) {
|
if (available <= reserved_dw) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user