1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Use new barrier helpers in clearImageViewFb

This commit is contained in:
Philip Rebohle 2024-10-12 09:41:19 +02:00 committed by Philip Rebohle
parent 856a84e6fd
commit 793f9b3d38

View File

@ -3325,8 +3325,7 @@ namespace dxvk {
if (attachmentIndex < 0) {
this->spillRenderPass(false);
if (m_execBarriers.isImageDirty(imageView->image(), imageView->imageSubresources(), DxvkAccess::Write))
m_execBarriers.recordCommands(m_cmd);
flushPendingAccesses(*imageView->image(), imageView->imageSubresources(), DxvkAccess::Write);
clearLayout = (imageView->info().aspects & VK_IMAGE_ASPECT_COLOR_BIT)
? imageView->pickLayout(VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL)
@ -3400,13 +3399,9 @@ namespace dxvk {
if (attachmentIndex < 0) {
m_cmd->cmdEndRendering();
m_execBarriers.accessImage(
imageView->image(),
imageView->imageSubresources(),
clearLayout, clearStages, clearAccess,
imageView->image()->info().layout,
imageView->image()->info().stages,
imageView->image()->info().access);
accessImage(DxvkCmdBuffer::ExecBuffer,
*imageView->image(), imageView->imageSubresources(),
clearLayout, clearStages, clearAccess);
m_cmd->trackResource<DxvkAccess::Write>(imageView->image());
}