Reset maxwell3d quick bind state before adding subpasses to executor

If a submission happens during the call to addsubpass we could end up with invalid quick bind state, move this to to before to prevent that.
This commit is contained in:
Billy Laws 2022-12-27 19:05:20 +00:00
parent 3d31ade35f
commit 3571737392

View File

@ -304,6 +304,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
}
}
constantBuffers.ResetQuickBind();
ctx.executor.AddSubpass([drawParams](vk::raii::CommandBuffer &commandBuffer, const std::shared_ptr<FenceCycle> &, GPU &gpu, vk::RenderPass, u32) {
drawParams->stateUpdater.RecordAll(gpu, commandBuffer);
@ -319,6 +321,5 @@ namespace skyline::gpu::interconnect::maxwell3d {
commandBuffer.endTransformFeedbackEXT(0, {}, {});
}, scissor, activeDescriptorSetSampledImages, {}, activeState.GetColorAttachments(), activeState.GetDepthAttachment(), !ctx.gpu.traits.quirks.relaxedRenderPassCompatibility);
constantBuffers.ResetQuickBind();
}
}