1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Use new layout transition helper in performClear

This commit is contained in:
Philip Rebohle 2024-10-10 17:55:54 +02:00 committed by Philip Rebohle
parent c24be65f2a
commit 971042b3d3

View File

@ -1897,15 +1897,9 @@ namespace dxvk {
storeLayout = depthOp.storeLayout;
}
if (loadLayout != imageLayout) {
m_execAcquires.accessImage(
imageView->image(),
imageView->imageSubresources(),
loadLayout, clearStages, 0,
imageLayout, clearStages, clearAccess);
m_execAcquires.recordCommands(m_cmd);
}
addImageLayoutTransition(*imageView->image(), imageView->imageSubresources(),
loadLayout, clearStages, 0, imageLayout, clearStages, clearAccess);
flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
m_cmd->cmdBeginRendering(&renderingInfo);