From 4c3de55d205e5c33c4a135e4a7cdabe4a9835d61 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 30 Apr 2024 10:40:39 +0100 Subject: [PATCH] Dynamic rendering can be started in any command buffer --- renderdoc/driver/vulkan/vk_core.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index f35febe44..63b2f8efc 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -4917,10 +4917,9 @@ bool WrappedVulkan::ShouldUpdateRenderpassActive(ResourceId cmdId, bool dynamicR if(m_OutsideCmdBuffer != VK_NULL_HANDLE) return true; - // If we're opening or closing a dynamic renderpass, we only want to track the state if - // we are in the most deeply nested command buffer + // If we're opening or closing a dynamic renderpass, this can happen in any command buffer primary or secondary if(dynamicRendering) - return IsCommandBufferDeepestPartial(cmdId); + return IsCommandBufferPartial(cmdId); // Otherwise we are in a non-dynamic renderpass and state should only be tracked for the primary return IsCommandBufferPartialPrimary(cmdId);