Resolve some errors in logic

This commit is contained in:
sunshineinabox 2024-09-29 18:11:44 -07:00
parent acbd9eb98f
commit 7cc334b894

View File

@ -345,12 +345,9 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
{ {
currentPipelineState.PatchControlPoints = 0; currentPipelineState.PatchControlPoints = 0;
} }
currentPipelineState = program.SpecializationState.PipelineState.Value;
} }
if (!currentPipelineState.Equals(previousPipelineState) || !_context.Capabilities.SupportsExtendedDynamicState || !program.SpecializationState.PipelineState.HasValue)
if (currentPipelineState.Equals(previousPipelineState) || !_context.Capabilities.SupportsExtendedDynamicState)
{ {
_hostStorage.AddShader(_context, program, binaryCode, streams); _hostStorage.AddShader(_context, program, binaryCode, streams);