AMD RX 9070 XT (RDNA 4) works on the VIctory-NVIDIA base with one shader fix: results, the fix, settings #504

Open
opened 2026-11-27 23:41:43 +00:00 by github-bot · 2 comments
Owner

@⁠BackseatDrivers-Unbound on GitHub · 2026-11-27 23:40 UTC · original

Hi, a report from an AMD card, in case it's useful. Short version: this code base runs fine on an RX 9070 XT once one shader-translation fix is added, with ray tracing off and also with the title's own ray tracing on (VICTORY_BVH_BUILDER=1).

It is probably the same crash as #239 (RX 9060 XT, also RDNA 4, crash inside amdxc64.dll), @⁠Anirban-1490.

@⁠trustno1-coder for the fix below. @⁠Kemerd: VIctory-NVIDIA-RT needs it too; we built rt-test-11 unchanged and ran the same offline check: all 10 of these shaders crash there as well. @⁠MrToucann: it's your PR 62 fix, credited below.

Setup

  • AMD Radeon RX 9070 XT 16 GB (RDNA 4), driver 32.0.32029.2010
  • Ryzen 7 5800X3D, 32 GB RAM, Windows 11
  • Xbox Series build v1.0.2.1 (own dump), Series X profile, 4K output (the title's own internal resolution and upscaler), no DLSS / FSR / frame generation
  • Code: trustno1-coder/VIctory-NVIDIA at 29d8dbf7, plus the fix below, built with --profile diag --features diagnostics. Run with the vendor-neutral settings of its launcher (the speed set), minus everything NVIDIA-only (DLSS, Reflex, frame generation) and minus any frame-interval change.

The one fix AMD (RDNA 4) needs

The driver's shader compiler crashes (amdxc64.dll+0x861b9f, the whole process dies) on 10 of the title's compute shaders: tree/particle culling f16876929fa64f9f, 878933b499cfa14d, a567b9ef845fb680, c1eee35dbc50a9ef; ray-tracing resolve a4df980a1c65fdbe, d0130073bb6f7a7d, 7b956e1f6d56609f, 0ae69044bfd15035, d2c52fcd936985b4, 1e4947eada3d9ee3.

The fix is DexNom/VIctory PR 62 (by MrToucann): a buffer's size query goes through its own non-uniform heap handle (size_view_handle, new crates/victory-shader/src/emit/lower/amd.rs, called from descriptor_data in lower.rs). It ported onto VIctory-NVIDIA unchanged, since the handle code is the same. Checked offline, compiling just those shaders in a child process (plus one control shader that builds either way): all 10 crash without it, none with it. Without the fix the trees and particles are missing (those shaders have to be skipped), and turning ray tracing on crashes the game.

Your current main (64d4931b) doesn't have it yet: the size query in descriptor_data still uses the loads' handle (crates/victory-shader/src/emit/lower.rs:7349, self.handle(site, &src, false, props)), which is the line PR 62 replaces. Happy to open a PR with the port if that's easier for you.

Frame rates (one run each, same save and moment; 1% low from per-frame times)

scene ray tracing avg fps 1% low CPU preparing commit VRAM
prison cell (start of the game) off (light stand-in) 19.1 10.6 ~41 ms 31.5 GB 13.9 GB
open world, balcony (~6,500 draws) off (light stand-in) 17.0 9.9 ~46 ms 28.3 GB 11.4 GB
open world, balcony (~8,500 draws) on (the title's own), no stand-in 11.8 6.9 ~60 ms 32.8 GB 13.0 GB

With ray tracing off the frame is CPU-bound (the card has room to spare); with ray tracing on the card is about 70-75% busy, so the ray tracing itself is the next limit.

One lighting finding (optional, in case it helps)

Ray tracing off: VICTORY_ACTIVATE_RAYS=1 fixes the dark outdoor look. By default this base leaves out CS_ScreenProbes_ActivateRays when there is no BVH. Then the screen probes keep stale data: shaded wood goes near-black, aluminium turns dark navy. With it on, the outdoor look matches the other forks (it is the activation pass alone, not VICTORY_RT_RESOLVE; tested each on its own). Cost: a couple of ms a frame, ~1 GB commit.


AI-assisted (Claude Code): log analysis, measurements and this text. Numbers and code findings only; no game files or logs attached.

**@⁠BackseatDrivers-Unbound** on GitHub · 2026-11-27 23:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/504) Hi, a report from an AMD card, in case it's useful. Short version: this code base runs fine on an RX 9070 XT once one shader-translation fix is added, with ray tracing off and also with the title's own ray tracing on (`VICTORY_BVH_BUILDER=1`). It is probably the same crash as #239 (RX 9060 XT, also RDNA 4, crash inside `amdxc64.dll`), @⁠Anirban-1490. @⁠trustno1-coder for the fix below. @⁠Kemerd: VIctory-NVIDIA-RT needs it too; we built `rt-test-11` unchanged and ran the same offline check: all 10 of these shaders crash there as well. @⁠MrToucann: it's your PR 62 fix, credited below. ## Setup - AMD Radeon RX 9070 XT 16 GB (RDNA 4), driver 32.0.32029.2010 - Ryzen 7 5800X3D, 32 GB RAM, Windows 11 - Xbox Series build v1.0.2.1 (own dump), **Series X** profile, 4K output (the title's own internal resolution and upscaler), no DLSS / FSR / frame generation - Code: trustno1-coder/VIctory-NVIDIA at `29d8dbf7`, plus the fix below, built with `--profile diag --features diagnostics`. Run with the vendor-neutral settings of its launcher (the speed set), minus everything NVIDIA-only (DLSS, Reflex, frame generation) and minus any frame-interval change. ## The one fix AMD (RDNA 4) needs The driver's shader compiler crashes (`amdxc64.dll+0x861b9f`, the whole process dies) on 10 of the title's compute shaders: tree/particle culling `f16876929fa64f9f`, `878933b499cfa14d`, `a567b9ef845fb680`, `c1eee35dbc50a9ef`; ray-tracing resolve `a4df980a1c65fdbe`, `d0130073bb6f7a7d`, `7b956e1f6d56609f`, `0ae69044bfd15035`, `d2c52fcd936985b4`, `1e4947eada3d9ee3`. The fix is DexNom/VIctory PR 62 (by MrToucann): a buffer's size query goes through its own non-uniform heap handle (`size_view_handle`, new `crates/victory-shader/src/emit/lower/amd.rs`, called from `descriptor_data` in `lower.rs`). It ported onto VIctory-NVIDIA unchanged, since the handle code is the same. Checked offline, compiling just those shaders in a child process (plus one control shader that builds either way): **all 10 crash without it, none with it**. Without the fix the trees and particles are missing (those shaders have to be skipped), and turning ray tracing on crashes the game. Your current main (`64d4931b`) doesn't have it yet: the size query in `descriptor_data` still uses the loads' handle (`crates/victory-shader/src/emit/lower.rs:7349`, `self.handle(site, &src, false, props)`), which is the line PR 62 replaces. Happy to open a PR with the port if that's easier for you. ## Frame rates (one run each, same save and moment; 1% low from per-frame times) | scene | ray tracing | avg fps | 1% low | CPU preparing | commit | VRAM | |---|---|---|---|---|---|---| | prison cell (start of the game) | off (light stand-in) | 19.1 | 10.6 | ~41 ms | 31.5 GB | 13.9 GB | | open world, balcony (~6,500 draws) | off (light stand-in) | 17.0 | 9.9 | ~46 ms | 28.3 GB | 11.4 GB | | open world, balcony (~8,500 draws) | **on** (the title's own), no stand-in | 11.8 | 6.9 | ~60 ms | 32.8 GB | 13.0 GB | With ray tracing off the frame is CPU-bound (the card has room to spare); with ray tracing on the card is about 70-75% busy, so the ray tracing itself is the next limit. ## One lighting finding (optional, in case it helps) **Ray tracing off: `VICTORY_ACTIVATE_RAYS=1` fixes the dark outdoor look.** By default this base leaves out `CS_ScreenProbes_ActivateRays` when there is no BVH. Then the screen probes keep stale data: shaded wood goes near-black, aluminium turns dark navy. With it on, the outdoor look matches the other forks (it is the activation pass alone, not `VICTORY_RT_RESOLVE`; tested each on its own). Cost: a couple of ms a frame, ~1 GB commit. --- AI-assisted (Claude Code): log analysis, measurements and this text. Numbers and code findings only; no game files or logs attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:41:43 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 00:46 UTC · original

Thanks, that's very useful for AMD players. A pull request with the shader fix is welcome. Keeping this open.

**@⁠trustno1-coder** on GitHub · 2026-11-28 00:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/504#issuecomment-7231176335) Thanks, that's very useful for AMD players. A pull request with the shader fix is welcome. Keeping this open.
Author
Owner

@⁠BackseatDrivers-Unbound on GitHub · 2026-11-28 00:52 UTC · original

Thanks! Follow-up: the fix is now up as a small AMD fork: https://github.com/BackseatDrivers-Unbound/VIctory-AMD. It's your main at 64d4931b plus the one shader fix (no other code changes), and a README section for AMD users: how to build it, and two lighting settings that are workarounds without ray tracing, not fixes. Tested only on an RX 9070 XT.

Credit correction: the approach comes from IxMxAMAR (fxceless/victory-fork#1213); Toucann turned it into DexNom PR 62.

Two observations on 64d4931b with ray tracing off, in case they help (single runs, the open-world house interior):

  • Your new depth search works here: every CS_RayMiss dispatch of layers 0 and 1 now gets the stand-in. Indoor glossy floors and eyes still glare, though. The 10-s line shows about 160 dispatches per 10 s of the third layer (first root constant 2, treated as water) left as the title has them. We suspect the glare is in that layer and are testing it.
  • With the alpha layer now going through the estimate by default, glass in dark rooms (a terrarium, a glass table top) glows white here. A pure downward clamp (Proudnoob4's) kept it clear in our earlier tests.
**@⁠BackseatDrivers-Unbound** on GitHub · 2026-11-28 00:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/504#issuecomment-7231250486) Thanks! Follow-up: the fix is now up as a small AMD fork: https://github.com/BackseatDrivers-Unbound/VIctory-AMD. It's your main at `64d4931b` plus the one shader fix (no other code changes), and a README section for AMD users: how to build it, and two lighting settings that are workarounds without ray tracing, not fixes. Tested only on an RX 9070 XT. Credit correction: the approach comes from IxMxAMAR (fxceless/victory-fork#1213); Toucann turned it into DexNom PR 62. Two observations on `64d4931b` with ray tracing off, in case they help (single runs, the open-world house interior): - Your new depth search works here: every `CS_RayMiss` dispatch of layers 0 and 1 now gets the stand-in. Indoor glossy floors and eyes still glare, though. The 10-s line shows about 160 dispatches per 10 s of the third layer (first root constant 2, treated as water) left as the title has them. We suspect the glare is in that layer and are testing it. - With the alpha layer now going through the estimate by default, glass in dark rooms (a terrarium, a glass table top) glows white here. A pure downward clamp (Proudnoob4's) kept it clear in our earlier tests.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#504
No description provided.