From e5a81f8c7ee8dec4f739064acbab1739229c685b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 6 Feb 2025 15:28:59 +0100 Subject: [PATCH] [dxvk] Don't probe buffer compatibility on image-only memory types Silences a validation error. --- src/dxvk/dxvk_memory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dxvk/dxvk_memory.cpp b/src/dxvk/dxvk_memory.cpp index c58cfcd4e..345b0b4e7 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -1885,6 +1885,9 @@ namespace dxvk { for (uint32_t i = 0; i < m_memTypeCount; i++) { bufferInfo.usage = m_memTypes[i].bufferUsage; + if (!bufferInfo.usage) + continue; + if (!getBufferMemoryRequirements(bufferInfo, requirements) || !(requirements.memoryRequirements.memoryTypeBits & (1u << i))) { m_memTypes[i].bufferUsage &= VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT