docs: run the FSR4 dispatch translation natively on Windows #257

Merged
Spaghetih merged 1 commit from upstream-pr/260 into main 2026-11-21 19:56:07 +00:00
Spaghetih commented 2026-11-21 19:38:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Spaghetih on 2026-11-21T19:38:03Z.


Change

Documentation patch for contributors reproducing the FSR4 dispatch experiment ("FSR4 dispatch through the RCAS input") on Windows. Until now the doc required WSL with Ubuntu and libLLVM-15.so.1 for the ffx_dispatch_aot.py step.

The official LLVM 15.0.7 Windows installer ships LLVM-C.dll with the AMDGPU disassembler, and pixel_aot.disassemble loads it through ctypes like the Linux library. The middle command now runs from the same PowerShell session:

./out/pe-env/Scripts/python.exe -B tools/ffx_dispatch_aot.py out/ffx-dispatch --llvm "C:/Program Files/LLVM/bin/LLVM-C.dll"

The WSL command is kept as a commented alternative. I also added one paragraph with the measured result of this route. There is no code change.

Verification

On 7233cec: Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.14.6, LLVM 15.0.7 installed with winget install --id LLVM.LLVM --version 15.0.7 --exact (hash verified by winget). llvm-mc is not part of that installer, and this experiment does not need it.

I ran the five documented commands exactly as written, starting from empty out/ffx-dispatch and out/build/ffx-device, with $upscaler set to a local copy of the upscaler whose SHA-256 matches the pinned profile:

pass24 instructions=1152
pass25 instructions=100
producer instructions=3482
rcas instructions=437
...
24: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=42 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0
1/2 Test #24: ffx_provider_loop_hardware .......   Passed
44: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=67 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0
44: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=42 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0
2/2 Test #44: ffx_provider_loop_warp ...........   Passed

Hardware: NVIDIA GeForce RTX 4070 Ti (vendor 10de, device 2782), driver 32.0.16.1088, debug_layer=enabled. WARP: Microsoft Basic Render Driver, debug_layer=enabled. The bypass, zero and pattern scratch cases all reported 256 final pixels and mismatches=0 on both backends. There were no capability skips in these two tests.

Evidence and follow-up

This is a local-data result. The pinned upscaler and the extracted programs stay under game-files/ and out/ and are not included. The public CI coverage is unchanged: Windows runs dispatch=desktop-control, and Linux uses libLLVM-15.so.1 for ffx_dispatch_aot_check.py.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No new fixture.)
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Claude Code). Every result above was run locally on the configuration listed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6533495409 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/260). Originally posted by [Spaghetih](https://github.com/Spaghetih) on 2026-11-21T19:38:03Z. --- ## Change Documentation patch for contributors reproducing the FSR4 dispatch experiment ("FSR4 dispatch through the RCAS input") on Windows. Until now the doc required WSL with Ubuntu and `libLLVM-15.so.1` for the `ffx_dispatch_aot.py` step. The official LLVM 15.0.7 Windows installer ships `LLVM-C.dll` with the AMDGPU disassembler, and `pixel_aot.disassemble` loads it through `ctypes` like the Linux library. The middle command now runs from the same PowerShell session: ```powershell ./out/pe-env/Scripts/python.exe -B tools/ffx_dispatch_aot.py out/ffx-dispatch --llvm "C:/Program Files/LLVM/bin/LLVM-C.dll" ``` The WSL command is kept as a commented alternative. I also added one paragraph with the measured result of this route. There is no code change. ## Verification On `7233cec`: Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.14.6, LLVM 15.0.7 installed with `winget install --id LLVM.LLVM --version 15.0.7 --exact` (hash verified by winget). `llvm-mc` is not part of that installer, and this experiment does not need it. I ran the five documented commands exactly as written, starting from empty `out/ffx-dispatch` and `out/build/ffx-device`, with `$upscaler` set to a local copy of the upscaler whose SHA-256 matches the pinned profile: ```text pass24 instructions=1152 pass25 instructions=100 producer instructions=3482 rcas instructions=437 ... 24: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=42 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0 1/2 Test #24: ffx_provider_loop_hardware ....... Passed 44: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=67 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0 44: dispatch=package-aot pass=26 u2_index=4 rcas_t18_index=4 format=42 tile=8x4 scratch=pattern reads=72 final_pixels=256 mismatches=0 2/2 Test #44: ffx_provider_loop_warp ........... Passed ``` Hardware: NVIDIA GeForce RTX 4070 Ti (vendor 10de, device 2782), driver 32.0.16.1088, `debug_layer=enabled`. WARP: Microsoft Basic Render Driver, `debug_layer=enabled`. The bypass, zero and pattern scratch cases all reported 256 final pixels and `mismatches=0` on both backends. There were no capability skips in these two tests. ## Evidence and follow-up This is a local-data result. The pinned upscaler and the extracted programs stay under `game-files/` and `out/` and are not included. The public CI coverage is unchanged: Windows runs `dispatch=desktop-control`, and Linux uses `libLLVM-15.so.1` for `ffx_dispatch_aot_check.py`. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (No new fixture.) - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. _AI-assisted (Claude Code). Every result above was run locally on the configuration listed._
upstream-sync closed this pull request 2026-11-24 06:42:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!257
No description provided.