From 14cbcc243852797d679d954c6d6a77b8cec1df9e Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Sat, 14 Mar 2026 20:23:48 -0400 Subject: [PATCH] [vulkan] Removed LineRasterization mode for the removed LineLoop -> LineStrip convertion --- src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 4 ++-- src/video_core/renderer_vulkan/vk_rasterizer.cpp | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 26d666e2e9..5c67d20d73 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -661,8 +661,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) { if (!vertex_binding_divisors.empty()) { vertex_input_ci.pNext = &input_divisor_ci; } - const bool has_tess_stages = spv_modules[1] || spv_modules[2]; - const bool has_geometry_stage = spv_modules[3]; + const bool has_tess_stages = static_cast(spv_modules[1]) || static_cast(spv_modules[2]); + const bool has_geometry_stage = static_cast(spv_modules[3]); const bool dynamic_topology = key.state.extended_dynamic_state != 0; const bool dynamic_primitive_restart = key.state.extended_dynamic_state_2 != 0; const auto polygon_mode = diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 35c2c6f0dd..5de8e8aa42 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2028 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project @@ -373,12 +373,6 @@ DrawParams MakeDrawParams(const MaxwellDrawState& draw_state, u32 num_instances, return params; } -bool IsLineRasterizationTopology(const Device& device, Maxwell::PrimitiveTopology topology) { - const VkPrimitiveTopology vk_topology = MaxwellToVK::PrimitiveTopology(device, topology); - return vk_topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST || - vk_topology == VK_PRIMITIVE_TOPOLOGY_LINE_STRIP; -} - VkLineRasterizationModeEXT SelectLineRasterizationMode(const Device& device, bool smooth_lines) { const bool supports_rectangular_lines = device.SupportsRectangularLines(); const bool supports_smooth_lines = device.SupportsSmoothLines();