Adapt changes from #7102 for dynamic states

This commit is contained in:
sunshineinabox 2024-07-31 18:18:46 -07:00
parent 7b480edf86
commit 3f7a3ac558
2 changed files with 3 additions and 1 deletions

View File

@ -1063,6 +1063,8 @@ namespace Ryujinx.Graphics.Vulkan
public void SetPrimitiveTopology(PrimitiveTopology topology)
{
topology = _newState.HasTessellationControlShader ? PrimitiveTopology.Patches : topology;
_topology = topology;
var vkTopology = Gd.TopologyRemap(topology).Convert();

View File

@ -424,7 +424,7 @@ namespace Ryujinx.Graphics.Vulkan
var inputAssemblyState = new PipelineInputAssemblyStateCreateInfo
{
SType = StructureType.PipelineInputAssemblyStateCreateInfo,
Topology = supportsExtDynamicState ? TopologyClass : HasTessellationControlShader ? PrimitiveTopology.PatchList : Topology,
Topology = supportsExtDynamicState ? TopologyClass : Topology,
};
PipelineTessellationStateCreateInfo tessellationState;