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:
parent
c24be65f2a
commit
971042b3d3
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user