RDNA 3 (RX 7900 XTX): 3D scene is black with unified memory on, renders with VICTORY_UNIFIED=0 #6
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/lobomfz--VIctory-xmem#6
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?
@jaudo on GitHub · 2026-11-29 07:46 UTC · original
Summary
On an RX 7900 XTX (Navi 31, RDNA 3), the 3D scene renders completely black whenever unified memory is on. The HUD, in-game text, 2D elements, the stats
panel and audio all work. The game keeps running normally: about 30 fps, 6,700–7,400 draws a frame, 0 errors. Setting VICTORY_UNIFIED=0 brings the picture
back (character, city and cars all render), at a much lower frame rate. The README results are from an RX 9070 XT (RDNA 4), so this may be specific to the
card generation.
System
memory: the card reads and writes title memory where the title has it, on the card 19 (0 refused)
Steps to reproduce
What was tested (each run about 2 minutes, screenshots at 60 s and 90 s; "black" means mean brightness of the scene area under 1/255)
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬────────────────────────────┐
│ Change │ 3D │ fps │
│ │ picture │ │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ Defaults (unified memory on) │ black │ ~30–35 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_AMBIENT=0 VICTORY_AMBIENT_AIR=0 VICTORY_AMBIENT_REFLECT=0 VICTORY_REFLECT_SEE_THROUGH=0 │ black │ — │
│ VICTORY_AMBIENT_BLUE_FILTER=0 │ │ │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_NATIVE_INPUT=0 VICTORY_KEYBOARD_EVENTS=0 │ black │ — │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_NAN_GUARD=0 VICTORY_EARLY_DEPTH=0 │ black │ 31.0 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_UNIFIED_VRAM=0 │ black │ 30.8 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_MIRROR_ARENA=0 RADV_VUM_MIRROR_ARENA=0 │ black │ 30.8 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ RADV_LAZY_L2_WRITEBACK=0 │ black │ 30.3 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼────────────────────────────┤
│ VICTORY_UNIFIED=0 │ renders │ 13.9 (pipelines not │
│ │ │ prewarmed) │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴────────────────────────────┘
The tests from the NAN_GUARD row down were run with VICTORY_PREPARE_PIPELINES=0 VICTORY_PREPARE_PASSES=0, so pipelines are compiled during play instead of
at startup. With the defaults the log shows no warnings or refusals from unified memory, so it looks like the card is reading the title's memory but getting
zeros or stale data rather than failing outright.
Possibly relevant: RDNA 3 and RDNA 4 differ in cache coherence and memory types for system (GTT) memory. Everything else works with copies
(VICTORY_UNIFIED=0), so the difference seems to be in how the patched RADV maps title memory for the GPU on gfx11.
I'm happy to test patches, debug env vars (RADV_DEBUG, etc.) or extra logging on this card.
(Screenshots attached: black scene with unified memory on; working scene with VICTORY_UNIFIED=0.)
@jaudo on GitHub · 2026-11-29 08:36 UTC · original
Turning records off fixes the black scene. With
VICTORY_RECORDS=0and unified memory left on, the 3-minute bench drew the full 3D world: sky, foliage, shadows, and the character's face looks normal.Brightness is the mean grey level of each screenshot on a 0–255 scale. The 170-second shot is darker because it's a shaded spot next to the car, not a failure.
VICTORY_UNIFIED=0was switching it off too and hiding the real culprit.@ramc1312 on GitHub · 2026-11-30 12:33 UTC · original · edited 2026-11-30 14:02 UTC
Correction (same day): please disregard my report below. The black scene on my machine was my own packaging mistake, not this repo.
My build of
109cdb5went into a fresh cargo target directory, and I ranvictory.exefrom there withoutd3dcompiler_47.dllnext to it. The engine's own helper shaders then fail to compile, silently, and the result is exactly this symptom: UI, HUD and 2D screens draw, the 3D world is black, frame rate is high. With the DLL copied next to the executable,109cdb5draws the world correctly on this RX 7900 XTX (Linux, Mesa RADV 26.3.1 with the repo's mesa.patch, Proton), unified memory on.So I have no second confirmation of the issue as reported; the original reporter's case (on coasting, fixed there by
VICTORY_RECORDS=0) is a different one. If anyone else lands here with a black world after building from source, check that the DLL sits beside the executable first. A log line when that compile fails would have saved me a day.Original comment (wrong conclusion)
Confirming from a second RX 7900 XTX (Linux, Mesa RADV 26.3.1 with the repo's mesa.patch, Proton), on this repo's own main rather than coasting.
109cdb5(with its newer mesa.patch): UI, HUD, prompts and the 2D start screens draw, sound works, the 3D world is black. Black in every variant I tried: the repo's cleanrun.shsettings with ray tracing on and off, 720p and 1080p, a shared cache and a fresh one (about 25,700 shaders and 99,348 pipelines made anew, none bad). Frame rate is high (60–84 fps at 1080p), so the card is doing the work.VICTORY_RECORDS=0, which fixed it for the reporter above, no longer exists after2773fdf: the variable is not read anywhere and the log always prints "records: the card reads the title's view records and its memory by address". Passing it changes nothing.Lines only this version logs, every frame: "title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped)" and "title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304".
One data point that does not fit "records = black on RDNA 3": the older base
5a60834withVICTORY_RECORDS=1draws the world correctly on this same card and driver setup.Not tested here:
2773fdf,0989c16and88c9c29at runtime, andcd811c1. I can run a requested commit or setting and post the log lines.@ramc1312 on GitHub · 2026-11-30 16:33 UTC · original
Follow-up to my correction above, with a result that does bear on this issue.
On the same RX 7900 XTX (Linux, Mesa RADV 26.3.1 with the repo's mesa.patch, Proton),
109cdb5, ray tracing off,d3dcompiler_47.dllin place, unified memory on:--console series-x--console series-sOnly the console profile differs between the two rows. The original report used
--console series-sat 1920x1080, so this looks like the same thing: the black scene follows the Series S profile on this card, not unified memory as such.Two other observations in case they help:
series-swithVICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=0.5625does not reach the world: the title stops at a breakpoint (0x80000003) about nine seconds after start.series-srun logs nothing that the workingseries-xrun does not also log.I can run a requested setting or commit on this card and post the log lines.
@Mylloon on GitHub · 2026-12-01 13:53 UTC · original
can confirm, my series-s draws blacks while series-x works, on a 6650XT
@alexfran111 on GitHub · 2026-12-01 15:14 UTC · original
Same on RDNA4, and
VICTORY_UPSCALER=6fixes it on currentmain.Environment. RX 9060 XT 16 GB, Ryzen 7 3800XT, 16 GB RAM, Fedora (kernel 7.3.6), system Wine 11.23 (
/opt/wine-devel), RADV 26.3.1 +mesa.patch,37bb30f.Before. Every
series-srun (five of them) had a black 3D world. The HUD and tutorial messages still drew, at about 30 fps and about 5,500 draws a frame, with no errors. Every one of those runs logs the title loading the console FidelityFX DLL, followed by all 29 FSR 4 passes failing to load:My
series-xrun logs none of that (it ran out of RAM on 16 GB, for unrelated reasons).After. With
VICTORY_UPSCALER=6(the title's own upscaler instead of FidelityFX; the loader's resolution notes say the title picks FidelityFX on Series S), the world draws.The
run.confI used:I haven't tested whether the
PAGESandBVHlines matter for the black screen. They were already there when I addedVICTORY_UPSCALER=6, which is the only change between a black run and a working one.