From d5afc68c837a1cd11b6a9fb82a4c1688f467f51e Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:57:45 +0300 Subject: [PATCH] vk_graphics_pipeline: Enable depth clamp when depth clip is disabled and extension is not supported Without the depth clip extension depth clipping is controlled by depth clamping --- src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index c11a2ac1b..10e5bed5f 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -111,7 +111,8 @@ GraphicsPipeline::GraphicsPipeline( vk::StructureChain raster_chain = { vk::PipelineRasterizationStateCreateInfo{ - .depthClampEnable = key.depth_clamp_enable, + .depthClampEnable = key.depth_clamp_enable || + (!key.depth_clip_enable && !instance.IsDepthClipEnableSupported()), .rasterizerDiscardEnable = false, .polygonMode = LiverpoolToVK::PolygonMode(key.polygon_mode), .lineWidth = 1.0f,