From 5b66f1ec0be0ca4fcf7554a23c33f7d8f6ecf3c5 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 26 Oct 2019 15:55:39 +0200 Subject: [PATCH] [dxvk] Replace buffer in updateBuffer even outside of render passes Needed to avoid barriers arount D3D11 UAV counter buffer updates. --- src/dxvk/dxvk_context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 1c4dde8c3..b68bd2f03 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1832,8 +1832,7 @@ namespace dxvk { VkDeviceSize size, const void* data) { bool replaceBuffer = (size == buffer->info().size) - && (size <= (1 << 20)) /* 1 MB */ - && (m_flags.test(DxvkContextFlag::GpRenderPassBound)); + && (size <= (1 << 20)); /* 1 MB */ DxvkBufferSliceHandle bufferSlice; DxvkCmdBuffer cmdBuffer;