1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 22:54:16 +01:00

[dxvk] Use new barrier helpers in transformImage

This commit is contained in:
Philip Rebohle 2024-10-12 01:27:27 +02:00 committed by Philip Rebohle
parent 7edfad763a
commit a1a9cd5bb6

View File

@ -1698,16 +1698,12 @@ namespace dxvk {
this->spillRenderPass(false); this->spillRenderPass(false);
if (srcLayout != dstLayout) { if (srcLayout != dstLayout) {
m_execBarriers.recordCommands(m_cmd); flushPendingAccesses(*dstImage, dstSubresources, DxvkAccess::Write);
m_execBarriers.accessImage( accessImage(DxvkCmdBuffer::ExecBuffer,
dstImage, dstSubresources, *dstImage, dstSubresources,
srcLayout, srcLayout, dstImage->info().stages, dstImage->info().access,
dstImage->info().stages, dstLayout, dstImage->info().stages, dstImage->info().access);
dstImage->info().access,
dstLayout,
dstImage->info().stages,
dstImage->info().access);
m_cmd->trackResource<DxvkAccess::Write>(dstImage); m_cmd->trackResource<DxvkAccess::Write>(dstImage);
} }