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

[dxvk] Use new layout transition helper in clearImageViewFb

This commit is contained in:
Philip Rebohle 2024-10-10 18:15:10 +02:00 committed by Philip Rebohle
parent 18cdc25773
commit bbd041194b

View File

@ -3507,14 +3507,9 @@ namespace dxvk {
renderingInfo.pStencilAttachment = &attachmentInfo; renderingInfo.pStencilAttachment = &attachmentInfo;
} }
if (clearLayout != imageView->image()->info().layout) { addImageLayoutTransition(*imageView->image(), imageView->imageSubresources(),
m_execAcquires.accessImage( clearLayout, clearStages, clearAccess, false);
imageView->image(), flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
imageView->imageSubresources(),
imageView->image()->info().layout, clearStages, 0,
clearLayout, clearStages, clearAccess);
m_execAcquires.recordCommands(m_cmd);
}
// We cannot leverage render pass clears // We cannot leverage render pass clears
// because we clear only part of the view // because we clear only part of the view