From 3f7a3ac55854ec8eb0044ac963f0c3a5486135c1 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Wed, 31 Jul 2024 18:18:46 -0700 Subject: [PATCH] Adapt changes from #7102 for dynamic states --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 2 ++ src/Ryujinx.Graphics.Vulkan/PipelineState.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index b1dce459e..d2c65fdb5 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -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(); diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs index 16adcae09..f91ce407f 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs @@ -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;