mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Use new layout transition helper in performClear
This commit is contained in:
parent
c24be65f2a
commit
971042b3d3
@ -1897,15 +1897,9 @@ namespace dxvk {
|
|||||||
storeLayout = depthOp.storeLayout;
|
storeLayout = depthOp.storeLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadLayout != imageLayout) {
|
addImageLayoutTransition(*imageView->image(), imageView->imageSubresources(),
|
||||||
m_execAcquires.accessImage(
|
loadLayout, clearStages, 0, imageLayout, clearStages, clearAccess);
|
||||||
imageView->image(),
|
flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
|
||||||
imageView->imageSubresources(),
|
|
||||||
loadLayout, clearStages, 0,
|
|
||||||
imageLayout, clearStages, clearAccess);
|
|
||||||
|
|
||||||
m_execAcquires.recordCommands(m_cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_cmd->cmdBeginRendering(&renderingInfo);
|
m_cmd->cmdBeginRendering(&renderingInfo);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user