1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +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;
}
if (clearLayout != imageView->image()->info().layout) {
m_execAcquires.accessImage(
imageView->image(),
imageView->imageSubresources(),
imageView->image()->info().layout, clearStages, 0,
clearLayout, clearStages, clearAccess);
m_execAcquires.recordCommands(m_cmd);
}
addImageLayoutTransition(*imageView->image(), imageView->imageSubresources(),
clearLayout, clearStages, clearAccess, false);
flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
// We cannot leverage render pass clears
// because we clear only part of the view