[dxvk] Fix missing zero buffer tracking

Scary.
This commit is contained in:
Philip Rebohle 2025-03-01 13:05:43 +01:00 committed by Philip Rebohle
parent fed51e6c92
commit ec0deb73da

View file

@ -7601,8 +7601,10 @@ namespace dxvk {
Rc<DxvkBuffer> 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<VkDeviceSize>(size, 1 << 20);