insert missing memory barrier after buffer copy
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
49d7b1fabc
commit
e59e3e6b02
|
@ -6771,6 +6771,7 @@ static void VULKAN_SetBufferData(
|
||||||
VulkanTransferBuffer* transferBuffer;
|
VulkanTransferBuffer* transferBuffer;
|
||||||
uint8_t* transferBufferPointer;
|
uint8_t* transferBufferPointer;
|
||||||
VkBufferCopy bufferCopy;
|
VkBufferCopy bufferCopy;
|
||||||
|
VulkanResourceAccessType accessType = vulkanBuffer->resourceAccessType;
|
||||||
|
|
||||||
if (vulkanCommandBuffer->renderPassInProgress)
|
if (vulkanCommandBuffer->renderPassInProgress)
|
||||||
{
|
{
|
||||||
|
@ -6823,6 +6824,13 @@ static void VULKAN_SetBufferData(
|
||||||
&bufferCopy
|
&bufferCopy
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VULKAN_INTERNAL_BufferMemoryBarrier(
|
||||||
|
renderer,
|
||||||
|
vulkanCommandBuffer->commandBuffer,
|
||||||
|
accessType,
|
||||||
|
vulkanBuffer
|
||||||
|
);
|
||||||
|
|
||||||
transferBuffer->offset += dataLength;
|
transferBuffer->offset += dataLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue