summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-12-18 07:03:13 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-12-18 07:17:08 +0100
commit6c00151d17050861e76677c219296fb35bf76214 (patch)
treea2601650dd6da243df5a4316f3a3b60e585198d3 /src/video_core/renderer_vulkan
parentVulkan: implement Logical Operations. (diff)
downloadyuzu-6c00151d17050861e76677c219296fb35bf76214.tar
yuzu-6c00151d17050861e76677c219296fb35bf76214.tar.gz
yuzu-6c00151d17050861e76677c219296fb35bf76214.tar.bz2
yuzu-6c00151d17050861e76677c219296fb35bf76214.tar.lz
yuzu-6c00151d17050861e76677c219296fb35bf76214.tar.xz
yuzu-6c00151d17050861e76677c219296fb35bf76214.tar.zst
yuzu-6c00151d17050861e76677c219296fb35bf76214.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
index 7fe735e75..d514b71d0 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -605,8 +605,11 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
.flags = 0,
.topology = input_assembly_topology,
.primitiveRestartEnable = key.state.primitive_restart_enable != 0 &&
- (device.IsExtPrimitiveTopologyListRestartSupported() ||
- SupportsPrimitiveRestart(input_assembly_topology)),
+ ((input_assembly_topology != VK_PRIMITIVE_TOPOLOGY_PATCH_LIST &&
+ device.IsTopologyListPrimitiveRestartSupported()) ||
+ SupportsPrimitiveRestart(input_assembly_topology) ||
+ (input_assembly_topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIST &&
+ device.IsPatchListPrimitiveRestartSupported())),
};
const VkPipelineTessellationStateCreateInfo tessellation_ci{
.sType = VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO,