fix multiple copy sync hazard
parent
39b97dec27
commit
db1455ceb0
|
@ -7882,6 +7882,14 @@ static void VULKAN_SetBufferData(
|
|||
vulkanBuffer
|
||||
);
|
||||
|
||||
// this janky call will wait for transfer writes to finish!
|
||||
VULKAN_INTERNAL_BufferMemoryBarrier(
|
||||
renderer,
|
||||
vulkanCommandBuffer->commandBuffer,
|
||||
RESOURCE_ACCESS_TRANSFER_WRITE,
|
||||
vulkanBuffer
|
||||
);
|
||||
|
||||
bufferCopy.srcOffset = transferBuffer->offset;
|
||||
bufferCopy.dstOffset = offsetInBytes;
|
||||
bufferCopy.size = (VkDeviceSize) dataLength;
|
||||
|
|
Loading…
Reference in New Issue