Repository navigation
Runtime: optional tests driving the package's FSR and XboxBvhBuilder DLLs through the loader and device proxy (RT-3) - #302
Conversation
f7e6cc9 to
763f00e
Compare
|
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; |
…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>
763f00e to
eb5a414
Compare
|
Thanks @lohant27-netizen for the RTX 5070 check. #93 and #176 are on AI-assisted (Claude Code). |
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
SKIPand exit 0 withoutLEONIDA_GAME_DIR, likebink_decode_test. Nothing from the DLLs is in the repo; they're read from the user's package.fsr_dispatch_testmapsamd_fidelityfx_upscaler_xbox.dllwithrt::Loader, runsinitialise(), and drives it through the public FidelityFX API (declarations inruntime/test/ffx_api_min.h, from the MIT FidelityFX SDK headers) on a PC D3D12 device behind the Xbox-ABI proxy. It also checks that the image's__declspec(thread)data reaches the loader's TLS block.bvh_builder_testconstructsXboxBvhBuilder(ID3D12Device11*, bool)in a sentinel buffer on the proxy: hardware or WARP PC device, or withLEONIDA_BVH_DEVICE=vulkanRuntime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119's Vulkan-backed device. OptionalLEONIDA_BVH_RECORD62=1prints slot 62's raw arguments and HRESULT per call.OutputDebugStringandTerminateProcessare redirected in the DLL's IAT, and a thrown HRESULT is decoded..pdatathemselves only when the loader hasn't (RtlLookupFunctionEntryfirst); since Runtime: register each mapped image's x64 unwind table (.pdata) #176 the loader does. The TLS index is read from either loader layout (Runtime: initialise a loaded module's TLS and DllMain #95'stls_slot, Runtime: install static TLS for mapped images #93'stls_index).docs/d3d12_vulkan.mdAppendix A.2 and A.3: what was measured with them.Was a draft until #93 (static TLS) and #176 (unwind) landed; on current
mainboth tests pass with the package (see Tested).Measured (1.0.2.1), in A.2/A.3
ffxCreateContextthen returns ERROR without touching the device for every backend descriptor tried: the Xbox one isn't public.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:
LEONIDA_GAME_DIR: both printSKIP (no package);main(with Runtime: install static TLS for mapped images #93 and Runtime: register each mapped image's x64 unwind table (.pdata) #176), rebased (eb5a414):ctest21/21;fsr_dispatch_testOK on 3 of 3 runs with the package (TLS check included);bvh_builder_testOK on WARP (constructor returns, 53 PSOs);ctest18/18, both tests skip without the package.AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code