Skip to content

Runtime: optional tests driving the package's FSR and XboxBvhBuilder DLLs through the loader and device proxy (RT-3) - #302

Merged
ItsNotRexed merged 8 commits into
ItsNotRexed:mainfrom
S1m0ne1997:fsr-dispatch-test
Nov 22, 2026
Merged

ItsNotRexed merged 8 commits into
ItsNotRexed:mainfrom
S1m0ne1997:fsr-dispatch-test

Conversation

@S1m0ne1997

@S1m0ne1997 S1m0ne1997 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What and why

RT-3 from #156 / #374, following the idea in #74: use the package's own D3D12 clients as tests of the loader and the D3D12 layer. Two optional Windows tests, both SKIP and exit 0 without LEONIDA_GAME_DIR, like bink_decode_test. Nothing from the DLLs is in the repo; they're read from the user's package.

Was a draft until #93 (static TLS) and #176 (unwind) landed; on current main both tests pass with the package (see Tested).

Measured (1.0.2.1), in A.2/A.3

  • FSR: 0 unimplemented imports. The PC struct type ids work for configure and the CPU queries. One provider, "4.1.1". The shipping build only has 1280x720 -> 1920x1080 Quality with HDR, inverted depth and auto exposure, and wants a version descriptor <= 4.1.1. ffxCreateContext then returns ERROR without touching the device for every backend descriptor tried: the Xbox one isn't public.
  • XboxBvhBuilder: on WARP the constructor returns after 17 root signatures and 53 compute PSOs (slot 62 as fixed in d3d12_xs device proxy: slot 62 takes (desc, w2, w3, riid, out) #161). On an RTX 4090 the driver ends the process on PSO 49. On the Vulkan device it stops at CreateRootSignature (not implemented yet).

Thanks to @Silliana for the idea in #74, @Kam471 for the TLS fix in #93 this needs, @Spaghetih for the unwind registration in #176, @Ayinaki for Loader::initialise (#95), @Ryx69 for the Vulkan-backed device (#119) the BVH test can run on, and @lohant27-netizen for testing this on an RTX 5070. RT-4's CPU-side exports are @AlpPesen's #446.

Tested

Windows 11 build 26300, MSVC 14.44 RelWithDebInfo, RTX 4090 driver 621.24, WARP, Vulkan SDK 1.4.363.0:

AI-assisted (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

🤖 Generated with Claude Code

@lohant27-netizen

Copy link
Copy Markdown

Build check on an RTX 5070 (Blackwell), driver 621.01, Windows 11 (10.0.26300), MSVC 19.44: 763f00e merged onto #93 (d43914c) rebased locally onto current main (8bd0087, with #176) builds cleanly; ctest 18/18; both new tests print SKIP (no package) and exit 0 without LEONIDA_GAME_DIR. Details of the #93 rebase are on #93. I can't run the package part. AI-assisted (Claude Code).

S1m0ne1997 and others added 8 commits November 22, 2026 00:58
…evice proxy

fsr_dispatch_test maps the package's amd_fidelityfx_upscaler_xbox.dll with rt::Loader (static
TLS and unwind from ItsNotRexed#93), calls DllMain, and drives it through the public FidelityFX API
(declarations in ffx_api_min.h, from the MIT FidelityFX SDK headers) on a PC D3D12 device
behind the Xbox-ABI proxy. SKIP without LEONIDA_GAME_DIR.

Measured on 1.0.2.1 (RTX 4090) and written up in d3d12_vulkan.md A.3: 0 unimplemented
imports; the PC struct type ids work for configure and the CPU queries; one provider
"4.1.1"; the shipping build only has 1280x720 -> 1920x1080 Quality with HDR, inverted depth
and auto exposure, and wants a version descriptor <= 4.1.1. ffxCreateContext then returns
ERROR without touching the device for the PC DX12 backend descriptor, three guesses at the
Xbox one, and none at all: the Xbox backend descriptor is the missing piece.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…asured results in d3d12_vulkan.md A.2

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ise, unwind registered here until ItsNotRexed#93; FSR checks its TLS block

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ulkan-backed device (ItsNotRexed#119)

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xed#95's tls_slot or ItsNotRexed#93's tls_index)

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ItsNotRexed#93 is TLS only; FSR host imports are 82 on current main

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d#176

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@S1m0ne1997
S1m0ne1997 marked this pull request as ready for review November 22, 2026 00:00
@S1m0ne1997

Copy link
Copy Markdown
Contributor Author

Thanks @lohant27-netizen for the RTX 5070 check. #93 and #176 are on main now, so I rebased (eb5a414) and marked this ready: on current main ctest 21/21, fsr_dispatch_test OK on 3 of 3 runs with the package (TLS check passes), bvh_builder_test OK on WARP (RTX 4090, driver 621.24). The tests still register .pdata themselves only if the loader hasn't, which on main is now never.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants