AMD RX 9070 XT (RDNA 4) works on the VIctory-NVIDIA base with one shader fix: results, the fix, settings #504
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#504
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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-11unchanged 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
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 cullingf16876929fa64f9f,878933b499cfa14d,a567b9ef845fb680,c1eee35dbc50a9ef; ray-tracing resolvea4df980a1c65fdbe,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, newcrates/victory-shader/src/emit/lower/amd.rs, called fromdescriptor_datainlower.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 indescriptor_datastill 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)
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=1fixes the dark outdoor look. By default this base leaves outCS_ScreenProbes_ActivateRayswhen 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, notVICTORY_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.
@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.
@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
64d4931bplus 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
64d4931bwith ray tracing off, in case they help (single runs, the open-world house interior):CS_RayMissdispatch 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.