1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Remove checkFramebufferBarrier

No longer serves any practical purpose.
This commit is contained in:
Philip Rebohle 2021-02-14 03:28:47 +01:00 committed by Philip Rebohle
parent 95676bf1e6
commit 6efc2588f8
2 changed files with 1 additions and 18 deletions

View File

@ -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,

View File

@ -1201,8 +1201,6 @@ namespace dxvk {
VkPipelineStageFlags stages,
VkAccessFlags access);
DxvkAccessFlags checkFramebufferBarrier();
void emitMemoryBarrier(
VkDependencyFlags flags,
VkPipelineStageFlags srcStages,