From 96fe5f0a0e836de797ab59918e76e42a2699e4e5 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Thu, 5 May 2022 11:07:43 +0530 Subject: [PATCH] Set initial `subpassCount` value to 1 rather than 0 --- .../main/cpp/skyline/gpu/interconnect/command_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 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 9fccbdfc..92a2f7c6 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp @@ -34,13 +34,13 @@ namespace skyline::gpu::interconnect { lastSubpassDepthStencilAttachment = depthStencilAttachment; }}; - if (renderPass == nullptr || (renderPass && (renderPass->renderArea != renderArea || subpassCount > gpu.traits.quirks.maxSubpassCount))) { + if (renderPass == nullptr || (renderPass && (renderPass->renderArea != renderArea || subpassCount >= gpu.traits.quirks.maxSubpassCount))) { // We need to create a render pass if one doesn't already exist or the current one isn't compatible if (renderPass != nullptr) nodes.emplace_back(std::in_place_type_t()); renderPass = &std::get(nodes.emplace_back(std::in_place_type_t(), renderArea)); addSubpass(); - subpassCount = 0; + subpassCount = 1; return false; } else { if (ranges::equal(lastSubpassInputAttachments, inputAttachments) &&