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:
parent
18cdc25773
commit
bbd041194b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user