Repository navigation
Closed
Conversation
…, FSR 3.1 elsewhere, and an FSR version row - AMD's signed FSR SDK 2.4.0 DLLs replace the SDK 1.1.4 one: the loader amd_fidelityfx_loader_vk.dll and its upscaler amd_fidelityfx_upscaler_vk.dll (FSR Upscaling 4.1.2 on Vulkan, FP8 on the RX 9000 series, INT8 on the RX 6000 and 7000; FSR 3.1.6 on any GPU). release_parts.py fetches them from AMD's repository by size and SHA-256 (checked); build.py and make_game.py put them beside the game. The old amd_fidelityfx_vk.dll still loads where the loader is not there (RX_VK_FSR_LEGACY=1 forces it), and Linux keeps libamd_fidelityfx_vk.so with the 1.x backend type, as before. - The API headers are SDK 2.4's (MIT), their include paths flattened, the Linux entry-point visibility kept. - vk_fsr.cpp: the device given as a VkDeviceContext and the 2.x backend type; the upscaler DLL loaded before the loader (the vcrt fallback serves it, and a failure is named); ffxCreateContextDescUpscaleVersion linked in (SDK 2.1+: without it the runtime kept to its older API, said so in the log at every creation, and FSR 4 read the colour a shade lighter); the versions listed for this device, the default's test upscaler and FSR 3.1's beside it; an FSR 4 that cannot be made at a size falls back to 3.1. FSR 4 is told at its creation that the colour is gamma-encoded. - The device turns on VK_EXT_shader_float8 and VK_KHR_compute_shader_derivatives where the GPU has them (FSR 4's FP8 network and INT8 prepass, as AMD's sample enables them). - Insert menu: an FSR version row under Upscaling (Auto: FSR 4 where AMD's runtime makes it here; FSR 3.1), saved as fsr_version; the Upscaler says AMD FSR 4 when FSR 4 runs. The launcher's Display page has the same row. - A chosen FSR 4 is kept 30 s while not drawing (a cutscene, a menu) instead of 2 s: its network took 200 to 900 ms of CPU to make again, a hitch on every return to play. Tested on an RX 6600 XT (driver 26.x): FSR 4.1.2 and its native AA, FSR 3.1.6, the game's own upscaler, the switch between them in play, and the SDK 1.x DLL alone. Not tested: Linux, NVIDIA and Intel GPUs (AMD's runtime lists no FSR 4 there). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged into 0.7.9.3 (https://github.com/pixl27/ProjectReLink/releases/tag/v0.7.9.3), through the hotfix branch rather than this pull request, with your authorship kept in the commit ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 0.8.0 list has FSR 4. AMD's FSR SDK 2.4.0 (28 October) brought FSR Upscaling 4.1.2 to Vulkan, at parity with DX12, and extended it to the RX 6000 series (INT8 model) beside the RX 7000 (INT8) and RX 9000 (FP8). ReLink was on the SDK 1.1.4 DLL, FSR 3.1 only.
SDK 2.x splits the runtime: a loader,
amd_fidelityfx_loader_vk.dll, and effect DLLs beside it (amd_fidelityfx_upscaler_vk.dll). The device is given as aVkDeviceContextand the backend type changed, which is where other recompilations stumbled (MHGURecomp's issue 141).What changed
amd_fidelityfx_vk.dllin releases.scripts/release_parts.pyfetches them from AMD's repository by size and SHA-256 (both checked against the URLs).nx2/build.pyandnx2/make_game.pyput them beside the game. Their license is the SDK's MIT text, as shipped before.gpu/vk/third_party/ffx_apiis SDK 2.4's, include paths flattened, the LinuxFFX_API_ENTRYvisibility kept. Frame generation headers are not taken (not used yet).vk_fsr.cpp:vcrtfallback serves it and a failure names it.RX_VK_FSR_LEGACY=1forces that path.libamd_fidelityfx_vk.soand the 1.x backend type, unchanged.VkDeviceContextand the 2.x backend type, and linksffxCreateContextDescUpscaleVersionin. SDK 2.1+ requires it: without it the runtime logged "must be attached … to access new API functions" at every creation, and FSR 4 came out a shade lighter.FFX_UPSCALE_ENABLE_NON_LINEAR_COLORSPACE). FSR 3.1 gets what it got before.VK_EXT_shader_float8andVK_KHR_compute_shader_derivativesare enabled where the GPU has them, as AMD's sample does (FP8 network, INT8 prepass). The integer dot products are already on with the 1.3 features.fsr_version.Tested (Windows, Radeon RX 6600 XT)
AMD FSR: available (FSR 4.1.2, or 3.1 by the FSR version row, …; versions here: 4.1.2, 3.1.6, 2.3.4; FP8 no, compute derivatives yes; …)RX_VK_FSR_LEGACY=1) still gives FSR 3.1.4.nx2/test_vk_linux_presentation.pyandnx2/test_nup_listing.pypass. A fullmake_game.py --updatesucceeded (0 failed).Not tested
Notes
FSR_PERCEPTUALshould be dropped frommake_fsr's flags.🤖 Generated with Claude Code