1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 04:54:15 +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);
if (srcLayout != dstLayout) {
m_execBarriers.recordCommands(m_cmd);
flushPendingAccesses(*dstImage, dstSubresources, DxvkAccess::Write);
m_execBarriers.accessImage(
dstImage, dstSubresources,
srcLayout,
dstImage->info().stages,
dstImage->info().access,
dstLayout,
dstImage->info().stages,
dstImage->info().access);
accessImage(DxvkCmdBuffer::ExecBuffer,
*dstImage, dstSubresources,
srcLayout, dstImage->info().stages, dstImage->info().access,
dstLayout, dstImage->info().stages, dstImage->info().access);
m_cmd->trackResource<DxvkAccess::Write>(dstImage);
}