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