1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[dxvk] Use new barrier helpers in emit*Barrier

This commit is contained in:
Philip Rebohle 2024-10-12 01:23:15 +02:00 committed by Philip Rebohle
parent ee9d09c2e2
commit 03a716e308

View File

@ -1184,7 +1184,8 @@ namespace dxvk {
VkAccessFlags dstAccess) {
this->spillRenderPass(true);
m_execBarriers.accessBuffer(resource->getSliceHandle(),
accessBuffer(DxvkCmdBuffer::ExecBuffer,
*resource, 0, resource->info().size,
srcStages, srcAccess, dstStages, dstAccess);
m_cmd->trackResource<DxvkAccess::Write>(resource);
@ -1202,11 +1203,10 @@ namespace dxvk {
this->spillRenderPass(true);
this->prepareImage(resource, resource->getAvailableSubresources());
if (m_execBarriers.isImageDirty(resource, resource->getAvailableSubresources(), DxvkAccess::Write))
m_execBarriers.recordCommands(m_cmd);
flushPendingAccesses(*resource, resource->getAvailableSubresources(), DxvkAccess::Write);
m_execBarriers.accessImage(
resource, resource->getAvailableSubresources(),
accessImage(DxvkCmdBuffer::ExecBuffer,
*resource, resource->getAvailableSubresources(),
srcLayout, srcStages, srcAccess,
dstLayout, dstStages, dstAccess);