From 6efc2588f8dccd2c008904eee33ca8cb49620985 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 14 Feb 2021 03:28:47 +0100 Subject: [PATCH] [dxvk] Remove checkFramebufferBarrier No longer serves any practical purpose. --- src/dxvk/dxvk_context.cpp | 17 +---------------- src/dxvk/dxvk_context.h | 2 -- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 0a6b7933b..fc8127dc2 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -562,8 +562,7 @@ namespace dxvk { int32_t attachmentIndex = -1; if (m_flags.test(DxvkContextFlag::GpRenderPassBound) - && m_state.om.framebuffer->isFullSize(imageView) - && this->checkFramebufferBarrier().isClear()) + && m_state.om.framebuffer->isFullSize(imageView)) attachmentIndex = m_state.om.framebuffer->findAttachment(imageView); if (attachmentIndex < 0) { @@ -4786,20 +4785,6 @@ namespace dxvk { } - DxvkAccessFlags DxvkContext::checkFramebufferBarrier() { - DxvkAccessFlags access = 0; - - for (uint32_t i = 0; i < m_state.om.framebuffer->numAttachments(); i++) { - const auto& attachment = m_state.om.framebuffer->getAttachment(i); - - access.set(m_execBarriers.getImageAccess( - attachment.view->image(), - attachment.view->subresources())); - } - - return access; - } - void DxvkContext::emitMemoryBarrier( VkDependencyFlags flags, VkPipelineStageFlags srcStages, diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index e510500ae..9699cc1ed 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -1201,8 +1201,6 @@ namespace dxvk { VkPipelineStageFlags stages, VkAccessFlags access); - DxvkAccessFlags checkFramebufferBarrier(); - void emitMemoryBarrier( VkDependencyFlags flags, VkPipelineStageFlags srcStages,