mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 17:25:28 +03:00
Set initial subpassCount
value to 1 rather than 0
This commit is contained in:
parent
5d08d6e06f
commit
96fe5f0a0e
@ -34,13 +34,13 @@ namespace skyline::gpu::interconnect {
|
|||||||
lastSubpassDepthStencilAttachment = depthStencilAttachment;
|
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
|
// We need to create a render pass if one doesn't already exist or the current one isn't compatible
|
||||||
if (renderPass != nullptr)
|
if (renderPass != nullptr)
|
||||||
nodes.emplace_back(std::in_place_type_t<node::RenderPassEndNode>());
|
nodes.emplace_back(std::in_place_type_t<node::RenderPassEndNode>());
|
||||||
renderPass = &std::get<node::RenderPassNode>(nodes.emplace_back(std::in_place_type_t<node::RenderPassNode>(), renderArea));
|
renderPass = &std::get<node::RenderPassNode>(nodes.emplace_back(std::in_place_type_t<node::RenderPassNode>(), renderArea));
|
||||||
addSubpass();
|
addSubpass();
|
||||||
subpassCount = 0;
|
subpassCount = 1;
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if (ranges::equal(lastSubpassInputAttachments, inputAttachments) &&
|
if (ranges::equal(lastSubpassInputAttachments, inputAttachments) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user