Always rebind pipeline if it has changed from the previous draw

This commit is contained in:
Billy Laws 2022-09-29 20:54:17 +01:00
parent af1b4ca4f8
commit 5020478ace

View File

@ -225,6 +225,10 @@ namespace skyline::gpu::interconnect::maxwell3d {
}
}()};
if (oldPipeline != pipeline)
// If the pipeline has changed, we need to update the pipeline state
builder.SetPipeline(pipeline->compiledPipeline.pipeline);
if (descUpdateInfo) {
auto newSet{std::make_shared<DescriptorAllocator::ActiveDescriptorSet>(ctx.gpu.descriptor.AllocateSet(descUpdateInfo->descriptorSetLayout))};
ctx.executor.cycle->AttachObject(newSet);