1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +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; int32_t attachmentIndex = -1;
if (m_flags.test(DxvkContextFlag::GpRenderPassBound) if (m_flags.test(DxvkContextFlag::GpRenderPassBound)
&& m_state.om.framebuffer->isFullSize(imageView) && m_state.om.framebuffer->isFullSize(imageView))
&& this->checkFramebufferBarrier().isClear())
attachmentIndex = m_state.om.framebuffer->findAttachment(imageView); attachmentIndex = m_state.om.framebuffer->findAttachment(imageView);
if (attachmentIndex < 0) { 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( void DxvkContext::emitMemoryBarrier(
VkDependencyFlags flags, VkDependencyFlags flags,
VkPipelineStageFlags srcStages, VkPipelineStageFlags srcStages,

View File

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