Some missed values
This commit is contained in:
parent
398ca7ad82
commit
cee5ae5551
2 changed files with 17 additions and 15 deletions
|
@ -1159,7 +1159,10 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
DynamicState.ScissorsCount = count;
|
DynamicState.ScissorsCount = count;
|
||||||
|
|
||||||
_newState.ScissorsCount = (uint)count;
|
if (!_supportExtDynamic)
|
||||||
|
{
|
||||||
|
_newState.ScissorsCount = (uint)count;
|
||||||
|
}
|
||||||
SignalStateChange();
|
SignalStateChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,6 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
pipeline.DepthMode = state.DepthMode == DepthMode.MinusOneToOne;
|
pipeline.DepthMode = state.DepthMode == DepthMode.MinusOneToOne;
|
||||||
|
|
||||||
pipeline.HasDepthStencil = state.DepthStencilEnable;
|
pipeline.HasDepthStencil = state.DepthStencilEnable;
|
||||||
pipeline.LineWidth = state.LineWidth;
|
|
||||||
pipeline.LogicOpEnable = state.LogicOpEnable;
|
pipeline.LogicOpEnable = state.LogicOpEnable;
|
||||||
pipeline.LogicOp = state.LogicOp.Convert();
|
pipeline.LogicOp = state.LogicOp.Convert();
|
||||||
|
|
||||||
|
@ -181,17 +180,6 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
pipeline.RasterizerDiscardEnable = state.RasterizerDiscard;
|
pipeline.RasterizerDiscardEnable = state.RasterizerDiscard;
|
||||||
pipeline.SamplesCount = (uint)state.SamplesCount;
|
pipeline.SamplesCount = (uint)state.SamplesCount;
|
||||||
|
|
||||||
if (gd.Capabilities.SupportsMultiView)
|
|
||||||
{
|
|
||||||
pipeline.ScissorsCount = Constants.MaxViewports;
|
|
||||||
pipeline.ViewportsCount = Constants.MaxViewports;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pipeline.ScissorsCount = 1;
|
|
||||||
pipeline.ViewportsCount = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
pipeline.DepthBiasEnable = state.BiasEnable != 0;
|
pipeline.DepthBiasEnable = state.BiasEnable != 0;
|
||||||
|
|
||||||
// Stencil masks and ref are dynamic, so are 0 in the Vulkan pipeline.
|
// Stencil masks and ref are dynamic, so are 0 in the Vulkan pipeline.
|
||||||
|
@ -205,6 +193,17 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
pipeline.FrontFace = state.FrontFace.Convert();
|
pipeline.FrontFace = state.FrontFace.Convert();
|
||||||
|
|
||||||
|
if (gd.Capabilities.SupportsMultiView)
|
||||||
|
{
|
||||||
|
pipeline.ScissorsCount = Constants.MaxViewports;
|
||||||
|
pipeline.ViewportsCount = Constants.MaxViewports;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pipeline.ScissorsCount = 1;
|
||||||
|
pipeline.ViewportsCount = 1;
|
||||||
|
}
|
||||||
|
|
||||||
pipeline.StencilFrontFailOp = state.StencilTest.FrontSFail.Convert();
|
pipeline.StencilFrontFailOp = state.StencilTest.FrontSFail.Convert();
|
||||||
pipeline.StencilFrontPassOp = state.StencilTest.FrontDpPass.Convert();
|
pipeline.StencilFrontPassOp = state.StencilTest.FrontDpPass.Convert();
|
||||||
pipeline.StencilFrontDepthFailOp = state.StencilTest.FrontDpFail.Convert();
|
pipeline.StencilFrontDepthFailOp = state.StencilTest.FrontDpFail.Convert();
|
||||||
|
@ -216,10 +215,10 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
pipeline.StencilBackCompareOp = state.StencilTest.BackFunc.Convert();
|
pipeline.StencilBackCompareOp = state.StencilTest.BackFunc.Convert();
|
||||||
|
|
||||||
pipeline.StencilTestEnable = state.StencilTest.TestEnable;
|
pipeline.StencilTestEnable = state.StencilTest.TestEnable;
|
||||||
|
|
||||||
pipeline.Topology = gd.TopologyRemap(state.Topology).Convert();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pipeline.Topology = gd.TopologyRemap(state.Topology).Convert();
|
||||||
|
|
||||||
int vaCount = Math.Min(Constants.MaxVertexAttributes, state.VertexAttribCount);
|
int vaCount = Math.Min(Constants.MaxVertexAttributes, state.VertexAttribCount);
|
||||||
int vbCount = Math.Min(Constants.MaxVertexBuffers, state.VertexBufferCount);
|
int vbCount = Math.Min(Constants.MaxVertexBuffers, state.VertexBufferCount);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue