From b3e4b7b78bdd3f94346afabb5aae8e660c2c0df7 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 20 Sep 2026 04:17:18 -0400 Subject: [PATCH] [MG_Backend] (Disaggregated): retire the final wire pass at present submission --- MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp index 5da391db..cb80ff25 100644 --- a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp @@ -13445,6 +13445,11 @@ void main() { } void VulkanRenderer::Present() { +#if MOBILEGL_BUILD_DISAGGREGATED + // Present has its own submit path. Tag its last wire pass before that + // submission, rather than retaining it until a draw in the next frame. + RetireWireDrawPass(); +#endif if (m_swapchainObject.GetHandle() == VK_NULL_HANDLE || m_presentSuspended) { // No usable swapchain: the window was zero-area at initialization, or // presentation was suspended when the window minimized. Try to bring a