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 changeImageLayout

This commit is contained in:
Philip Rebohle 2024-10-12 01:05:27 +02:00 committed by Philip Rebohle
parent bbe7767475
commit cc3dd31a5f

View File

@ -188,15 +188,11 @@ namespace dxvk {
this->prepareImage(image, subresources);
if (m_execBarriers.isImageDirty(image, subresources, DxvkAccess::Write))
m_execBarriers.recordCommands(m_cmd);
flushPendingAccesses(*image, subresources, DxvkAccess::Write);
m_execBarriers.accessImage(image, subresources,
image->info().layout,
image->info().stages, 0,
layout,
image->info().stages,
image->info().access);
accessImage(DxvkCmdBuffer::ExecBuffer, *image, subresources,
image->info().layout, image->info().stages, 0,
layout, image->info().stages, image->info().access);
image->setLayout(layout);