From 971042b3d3eb7ade304ba05030c58fb47b8a9db9 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 10 Oct 2024 17:55:54 +0200 Subject: [PATCH] [dxvk] Use new layout transition helper in performClear --- src/dxvk/dxvk_context.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index d2bed2719..234559128 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -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);