mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14: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:
parent
d1e9e1392d
commit
5b66f1ec0b
@ -1832,8 +1832,7 @@ namespace dxvk {
|
|||||||
VkDeviceSize size,
|
VkDeviceSize size,
|
||||||
const void* data) {
|
const void* data) {
|
||||||
bool replaceBuffer = (size == buffer->info().size)
|
bool replaceBuffer = (size == buffer->info().size)
|
||||||
&& (size <= (1 << 20)) /* 1 MB */
|
&& (size <= (1 << 20)); /* 1 MB */
|
||||||
&& (m_flags.test(DxvkContextFlag::GpRenderPassBound));
|
|
||||||
|
|
||||||
DxvkBufferSliceHandle bufferSlice;
|
DxvkBufferSliceHandle bufferSlice;
|
||||||
DxvkCmdBuffer cmdBuffer;
|
DxvkCmdBuffer cmdBuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user