gpu: run the ray-tracing node test's probe in a process of its own (fixes black scene on RDNA 2) #41

Manually merged
github merged 1 commit from gh-pr/41/head into gh-pr/41/base 2026-12-01 07:42:01 +00:00
Owner

@⁠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 UTC

Problem

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=0 gives 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:

What the probe did on the title's device Picture
Nothing (probe skipped) right
Root signature + pipeline only right
+ its buffer (CUSTOM write-back, L0), no dispatch black
Plain default / upload / readback heaps, full dispatch black

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_HARDWARE on) 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:

  • Probe passes in its own process: the ray-tracing node test by the card's own instruction on=true
  • Picture is right with the card's node test on
Before (baf0468, hardware node test on) After (4cce312 + this PR)
before-hw-rt-black after-node-probe-apart
**@⁠PedroRBC** on GitHub · 2026-11-30 20:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/41) `PedroRBC:fix-node-probe-rdna2` → `main` · +71 −2 · 5 files · 1 commits · merged 2026-11-30 20:14 UTC ## Problem 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=0` gives 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: | What the probe did on the title's device | Picture | |---|---| | Nothing (probe skipped) | right | | Root signature + pipeline only | right | | + its buffer (CUSTOM write-back, L0), no dispatch | black | | Plain default / upload / readback heaps, full dispatch | black | 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_HARDWARE` on) 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: - Probe passes in its own process: `the ray-tracing node test by the card's own instruction on=true` - Picture is right with the card's node test on | Before (baf0468, hardware node test on) | After (4cce312 + this PR) | |---|---| | <img width="1920" height="1080" alt="before-hw-rt-black" src="https://github.com/user-attachments/assets/91bb08c1-fe17-4bc3-bd6e-73f9cf83006b" />| <img width="1920" height="1080" alt="after-node-probe-apart" src="https://github.com/user-attachments/assets/d312b554-4d9e-4da5-9a4b-58c388b0a799" />|
On an RX 6700 XT (RDNA 2) the probe that node_test ran on the title's
device as it was created left the scene black and untextured for the whole
run. Cut down: with only its root signature and pipeline made the picture
was right; with its buffer made, even with no dispatch, it was black; with
plain default/upload/readback heaps it was black too. 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. The card's node results match the inline
code's in every ray-tracing shader.

The probe now runs in `victory node-probe`, a hidden subcommand with a
device of its own, and the run takes its exit code. Series X 1080p on the
RX 6700 XT: the probe passes, the card's node test is on and the picture is
right.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:41:59 +00:00
github manually merged commit 577b21b3f8 into gh-pr/41/base 2026-12-01 07:42:01 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.