From a02e1a253670632c5425dff690185931ad932fc1 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Mon, 13 Feb 2023 18:19:04 +0000 Subject: [PATCH] R.I.P. Subpasses --- app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp b/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp index bf4196ab..9a9804fc 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp @@ -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); })};