Browse Source

[vulkan] Removed LineRasterization mode for the removed LineLoop -> LineStrip convertion

vkexperiments1
CamilleLaVey 3 months ago
parent
commit
14cbcc2438
  1. 4
      src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
  2. 8
      src/video_core/renderer_vulkan/vk_rasterizer.cpp

4
src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp

@ -661,8 +661,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
if (!vertex_binding_divisors.empty()) { if (!vertex_binding_divisors.empty()) {
vertex_input_ci.pNext = &input_divisor_ci; 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<bool>(spv_modules[1]) || static_cast<bool>(spv_modules[2]);
const bool has_geometry_stage = static_cast<bool>(spv_modules[3]);
const bool dynamic_topology = key.state.extended_dynamic_state != 0; const bool dynamic_topology = key.state.extended_dynamic_state != 0;
const bool dynamic_primitive_restart = key.state.extended_dynamic_state_2 != 0; const bool dynamic_primitive_restart = key.state.extended_dynamic_state_2 != 0;
const auto polygon_mode = const auto polygon_mode =

8
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-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
@ -373,12 +373,6 @@ DrawParams MakeDrawParams(const MaxwellDrawState& draw_state, u32 num_instances,
return params; 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) { VkLineRasterizationModeEXT SelectLineRasterizationMode(const Device& device, bool smooth_lines) {
const bool supports_rectangular_lines = device.SupportsRectangularLines(); const bool supports_rectangular_lines = device.SupportsRectangularLines();
const bool supports_smooth_lines = device.SupportsSmoothLines(); const bool supports_smooth_lines = device.SupportsSmoothLines();

Loading…
Cancel
Save