summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp10
1 files changed, 8 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 a8b402253..2bc1f67ae 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -345,12 +345,18 @@ void GraphicsPipeline::MakePipeline(const Device& device, VkRenderPass render_pa
345 if (!vertex_binding_divisors.empty()) { 345 if (!vertex_binding_divisors.empty()) {
346 vertex_input_ci.pNext = &input_divisor_ci; 346 vertex_input_ci.pNext = &input_divisor_ci;
347 } 347 }
348 const auto input_assembly_topology = MaxwellToVK::PrimitiveTopology(device, state.topology); 348 auto input_assembly_topology = MaxwellToVK::PrimitiveTopology(device, state.topology);
349 if (input_assembly_topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIST) {
350 if (!spv_modules[1] && !spv_modules[2]) {
351 LOG_WARNING(Render_Vulkan, "Patch topology used without tessellation, using points");
352 input_assembly_topology = VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
353 }
354 }
349 const VkPipelineInputAssemblyStateCreateInfo input_assembly_ci{ 355 const VkPipelineInputAssemblyStateCreateInfo input_assembly_ci{
350 .sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO, 356 .sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO,
351 .pNext = nullptr, 357 .pNext = nullptr,
352 .flags = 0, 358 .flags = 0,
353 .topology = MaxwellToVK::PrimitiveTopology(device, state.topology), 359 .topology = input_assembly_topology,
354 .primitiveRestartEnable = state.primitive_restart_enable != 0 && 360 .primitiveRestartEnable = state.primitive_restart_enable != 0 &&
355 SupportsPrimitiveRestart(input_assembly_topology), 361 SupportsPrimitiveRestart(input_assembly_topology),
356 }; 362 };