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 performClear

This commit is contained in:
Philip Rebohle 2024-10-12 09:05:42 +02:00 committed by Philip Rebohle
parent a1a9cd5bb6
commit ab300dce2f

View File

@ -1772,8 +1772,7 @@ namespace dxvk {
if (attachmentIndex < 0) {
bool hasViewFormatMismatch = imageView->info().format != imageView->image()->info().format;
if (m_execBarriers.isImageDirty(imageView->image(), imageView->imageSubresources(), DxvkAccess::Write))
m_execBarriers.recordCommands(m_cmd);
flushPendingAccesses(*imageView, DxvkAccess::Write);
// Set up a temporary render pass to execute the clear
VkImageLayout imageLayout = ((clearAspects | discardAspects) & VK_IMAGE_ASPECT_COLOR_BIT)
@ -1856,11 +1855,9 @@ namespace dxvk {
m_cmd->cmdEndRendering();
m_execBarriers.accessImage(
imageView->image(),
imageView->imageSubresources(),
imageLayout, clearStages, clearAccess,
storeLayout,
accessImage(DxvkCmdBuffer::ExecBuffer,
*imageView->image(), imageView->imageSubresources(),
imageLayout, clearStages, clearAccess, storeLayout,
imageView->image()->info().stages,
imageView->image()->info().access);