summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-12-18 05:47:48 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-12-18 05:47:48 +0100
commit6430fc29a910d0d30db1ce6aaa05bf776b112623 (patch)
tree0645e9bd45b4d9ee53ab954cd995becebed05f9b /src/video_core/renderer_vulkan
parentMerge pull request #7532 from goldenx86/patch-3 (diff)
downloadyuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar.gz
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar.bz2
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar.lz
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar.xz
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.tar.zst
yuzu-6430fc29a910d0d30db1ce6aaa05bf776b112623.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp4
1 files changed, 2 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 616a7b457..0c175c557 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -605,7 +605,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
.flags = 0,
.topology = input_assembly_topology,
.primitiveRestartEnable = key.state.primitive_restart_enable != 0 &&
- SupportsPrimitiveRestart(input_assembly_topology),
+ (device.IsExtPrimitiveTopologyListRestartSupported() ||
+ SupportsPrimitiveRestart(input_assembly_topology)),
};
const VkPipelineTessellationStateCreateInfo tessellation_ci{
.sType = VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO,
@@ -613,7 +614,6 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
.flags = 0,
.patchControlPoints = key.state.patch_control_points_minus_one.Value() + 1,
};
-
std::array<VkViewportSwizzleNV, Maxwell::NumViewports> swizzles;
std::ranges::transform(key.state.viewport_swizzles, swizzles.begin(), UnpackViewportSwizzle);
const VkPipelineViewportSwizzleStateCreateInfoNV swizzle_ci{