From 9558d25fc4bee09f171c95a2c5e5c348e42cdc12 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 28 Aug 2025 11:09:06 +0100 Subject: [PATCH] Only apply NV BDA workaround on windows * The linux driver has a different allocator and isn't subject to the same bug (which is a windows bug) --- renderdoc/driver/vulkan/vk_common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/driver/vulkan/vk_common.cpp b/renderdoc/driver/vulkan/vk_common.cpp index 85c703ba7..9e9da0568 100644 --- a/renderdoc/driver/vulkan/vk_common.cpp +++ b/renderdoc/driver/vulkan/vk_common.cpp @@ -1326,11 +1326,13 @@ VkDriverInfo::VkDriverInfo(const VkPhysicalDeviceProperties &physProps, nvidiaStaticPipelineRebindStates = true; } +#if ENABLED(RDOC_WIN32) // this is fixed in a windows version but we can't easily query that, so instead we are waiting // for a driver-based workaround and apply the workaround ourselves in the meantime if(active) RDCLOG("Enabling NV workaround for unaligned BDA memory capture/replay"); nvidiaUnalignedBDAIssue = true; +#endif // this was found in the initial implementation, if mesh output is fetched and a user descriptor // set has no vertex bindings at all (and they're not also compute bindings) then a descriptor