mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 17:10:19 +00:00
Fix pipeline state saving before it is updated.
This should fix a few warnings and potential stutters due to bad pipeline states being saved in the cache. You may need to clear your guest cache.
This commit is contained in:
parent
c95cdc853e
commit
dc0a00f93c
1 changed files with 2 additions and 2 deletions
|
@ -313,6 +313,8 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||||
|
|
||||||
TransformFeedbackDescriptor[] transformFeedbackDescriptors = GetTransformFeedbackDescriptors(ref state);
|
TransformFeedbackDescriptor[] transformFeedbackDescriptors = GetTransformFeedbackDescriptors(ref state);
|
||||||
|
|
||||||
|
UpdatePipelineInfo(ref state, ref pipeline, graphicsState, channel);
|
||||||
|
|
||||||
ShaderSpecializationState specState = new ShaderSpecializationState(ref graphicsState, ref pipeline, transformFeedbackDescriptors);
|
ShaderSpecializationState specState = new ShaderSpecializationState(ref graphicsState, ref pipeline, transformFeedbackDescriptors);
|
||||||
GpuAccessorState gpuAccessorState = new GpuAccessorState(poolState, default, graphicsState, specState, transformFeedbackDescriptors);
|
GpuAccessorState gpuAccessorState = new GpuAccessorState(poolState, default, graphicsState, specState, transformFeedbackDescriptors);
|
||||||
|
|
||||||
|
@ -389,8 +391,6 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdatePipelineInfo(ref state, ref pipeline, graphicsState, channel);
|
|
||||||
|
|
||||||
ShaderSource[] shaderSourcesArray = shaderSources.ToArray();
|
ShaderSource[] shaderSourcesArray = shaderSources.ToArray();
|
||||||
|
|
||||||
int fragmentOutputMap = shaders[5]?.Info.FragmentOutputMap ?? -1;
|
int fragmentOutputMap = shaders[5]?.Info.FragmentOutputMap ?? -1;
|
||||||
|
|
Loading…
Reference in a new issue