From 4fcb92dfdc5652617c2294e0fe494478bb720f86 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 24 Mar 2026 10:11:21 -0700 Subject: [PATCH] fix: skip FSR3 frame gen on non-AMD GPUs to prevent NVIDIA driver crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AMD FidelityFX FSR3 runtime corrupts Vulkan driver state when context creation fails on NVIDIA GPUs, causing vkCmdBeginRenderPass to SIGSEGV inside libnvidia-glcore. Gate FSR3 frame gen initialization behind isAmdGpu() check — FSR2 upscaling still works on all GPUs. --- src/rendering/renderer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rendering/renderer.cpp b/src/rendering/renderer.cpp index 6e3d46c1..e39621c6 100644 --- a/src/rendering/renderer.cpp +++ b/src/rendering/renderer.cpp @@ -4392,7 +4392,11 @@ bool Renderer::initFSR2Resources() { fsr2_.useAmdBackend = true; LOG_INFO("FSR2 AMD: context created successfully."); #if WOWEE_HAS_AMD_FSR3_FRAMEGEN - if (fsr2_.amdFsr3FramegenEnabled) { + // FSR3 frame generation runtime uses AMD FidelityFX SDK which can + // corrupt Vulkan driver state on NVIDIA GPUs when context creation + // fails, causing subsequent vkCmdBeginRenderPass to crash. + // Skip FSR3 frame gen entirely on non-AMD GPUs. + if (fsr2_.amdFsr3FramegenEnabled && vkCtx->isAmdGpu()) { fsr2_.amdFsr3FramegenRuntimeActive = false; if (!fsr2_.amdFsr3Runtime) fsr2_.amdFsr3Runtime = std::make_unique(); AmdFsr3RuntimeInitDesc fgInit{};