From ec0deb73da621e98dc95341494daf4a349a7ff08 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 1 Mar 2025 13:05:43 +0100 Subject: [PATCH] [dxvk] Fix missing zero buffer tracking Scary. --- src/dxvk/dxvk_context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index ff48e1755..4ea4c4f86 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -7601,8 +7601,10 @@ namespace dxvk { Rc DxvkContext::createZeroBuffer( VkDeviceSize size) { - if (m_zeroBuffer != nullptr && m_zeroBuffer->info().size >= size) + if (m_zeroBuffer && m_zeroBuffer->info().size >= size) { + m_cmd->track(m_zeroBuffer, DxvkAccess::Read); return m_zeroBuffer; + } DxvkBufferCreateInfo bufInfo; bufInfo.size = align(size, 1 << 20);