gpu: run the ray-tracing node test's probe in a process of its own (fixes black scene on RDNA 2) #41
No reviewers
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!41
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/41/head"
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?
@PedroRBC on GitHub · 2026-11-30 20:01 UTC · original
PedroRBC:fix-node-probe-rdna2→main· +71 −2 · 5 files · 1 commits · merged 2026-11-30 20:14 UTCProblem
On an RX 6700 XT (RDNA 2), with the card's ray-tracing node test on (the default since
90338ca), the scene renders black and untextured for the whole run: solid objects come out as silhouettes, power lines are broken.VICTORY_BVH_HARDWARE=0gives the right picture.Cause
It is not the card's node test itself. With a diagnostic that ran the card's test and the inline code side by side in every ray-tracing shader, the results matched (a few hundred thousand differences out of ~527M node tests, all in the first seconds, none after). Feeding the inline results back while the card's instruction still ran left the scene black too.
The culprit is the start-up probe in
host/node_test.rs, which runs on the title's device as it is created. Cutting it down, one run each with a screenshot:A buffer made on the title's device at that point, before unified memory lays out title memory on the card, is what breaks it.
Fix
The probe now runs in
victory node-probe, a hidden subcommand with a D3D12 device of its own (one device per process), and the run takes its exit code. The check itself and the default (VICTORY_BVH_HARDWAREon) are unchanged. 5 files, +71/−2.Testing
RX 6700 XT 12 GB, Ryzen 5 5600, Proton-CachyOS 11.0, Mesa 26.3.1 with this repo's patches, Series X 1080p, headless gamescope:
the ray-tracing node test by the card's own instruction on=truebaf0468, hardware node test on)4cce312+ this PR)