From dc5b7c19a6d133a18864a064bc9f09323664a22a Mon Sep 17 00:00:00 2001 From: nmzik Date: Mon, 31 Aug 2026 01:24:55 +0400 Subject: [PATCH] Revert "fix(agc): honor top bound for single-ended buffers" This reverts commit 1469c5304899126b8822ec24c4550922eb021eee. --- src/libs/agc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/agc.cpp b/src/libs/agc.cpp index d58d94a37..d41047fe9 100644 --- a/src/libs/agc.cpp +++ b/src/libs/agc.cpp @@ -257,12 +257,11 @@ struct CommandBuffer { } [[nodiscard]] KYTY_SYSV_ABI uint32_t GetAvailableSizeDW() const { - auto* end = cursor_down != nullptr ? cursor_down : top; - if (cursor_up == nullptr || end == nullptr || end <= cursor_up) { + if (cursor_up == nullptr || cursor_down == nullptr || cursor_down <= cursor_up) { return 0; } - auto available = static_cast(end - cursor_up); + auto available = static_cast(cursor_down - cursor_up); if (available <= reserved_dw) { return 0; }