R.I.P. Subpasses

This commit is contained in:
Billy Laws 2023-02-13 18:19:04 +00:00
parent a47f010653
commit a02e1a2536

View File

@ -304,8 +304,7 @@ namespace skyline::gpu::interconnect {
ranges::equal(lastSubpassColorAttachments, colorAttachments) &&
lastSubpassDepthStencilAttachment == depthStencilAttachment};
bool splitRenderPass{renderPass == nullptr || renderPass->renderArea != renderArea ||
((noSubpassCreation || subpassCount >= gpu.traits.quirks.maxSubpassCount) && !attachmentsMatch) ||
bool splitRenderPass{renderPass == nullptr || renderPass->renderArea != renderArea || !attachmentsMatch ||
!ranges::all_of(outputAttachmentViews, [this] (auto view) { return !view || view->texture->ValidateRenderPassUsage(renderPassIndex, texture::RenderPassUsage::RenderTarget); }) ||
!ranges::all_of(sampledImages, [this] (auto view) { return view->texture->ValidateRenderPassUsage(renderPassIndex, texture::RenderPassUsage::Sampled); })};