From d3edee1945507de71c18e02addb2e7541df2dd12 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:58:02 +0300 Subject: [PATCH] Fix Vulkan dynamic depth bias validation error. --- UnleashedRecomp/gpu/video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 64f0d94..0536a92 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -2818,7 +2818,10 @@ static void ProcStretchRect(const RenderCommand& cmd) g_dirtyStates.pipelineState = true; if (g_vulkan) + { + g_dirtyStates.depthBias = true; // Static depth bias in MSAA pipeline invalidates dynamic depth bias. g_dirtyStates.vertexShaderConstants = true; + } SetHalfPixel(oldHalfPixel); }