1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Replace buffer in updateBuffer even outside of render passes

Needed to avoid barriers arount D3D11 UAV counter buffer updates.
This commit is contained in:
Philip Rebohle 2019-10-26 15:55:39 +02:00
parent d1e9e1392d
commit 5b66f1ec0b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;