GPU: the prologue renders into the title's 2560x1440 targets but the 3840x2160 output stays zero (RTX 3090, integration/testers) #841

Open
opened 2026-11-26 04:14:02 +00:00 by github-bot · 94 comments
Owner

@⁠MD5Visual on GitHub · 2026-11-24 12:05 UTC · original

The world draws, but nothing reaches the 3840x2160 output target. Dumping the title's own render targets during the prologue on an RTX 3090 shows the scene fully rendered at 2560x1440 while the 3840x2160 target stays zero.

Machine Windows 11 Pro 26200, Ryzen 7 5800X3D, 64 GB, RTX 3090 24 GB, driver 32.0.16.1088 (610.88). Title 1.0.2.1, blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93. Diagnostics build with VICTORY_D3D12_DRED=1, no debug layer.

Tree: r4tedx integration/testers at 92bc27b, VICTORY_SHADER_LOOP_LIMIT=32. (One local-only patch in my tree: the host device is created on an adapter picked by name, because D3D12CreateDevice(None) takes the display adapter here, a 2070 SUPER. Nothing else is patched.) That tree holds the prologue for 600 s and for 900 s in two other runs with no device removal, so the hang is gone and this is now only about the picture.

What the run looks like: first-boot screens and menus at 29-30 fps, then the prologue at 0.5-0.7 fps, screen black. 6 compute pipelines refused (all 0x8007000E), 182 shaders untranslated (27 of them console wave64 lanes in a group of more than 64 threads), 0 no host texture, 22 black-frame warnings, heap still capped at 1000000 (wants 1245184).

How the targets were taken: VICTORY_CAPTURE=<folder>, VICTORY_DUMP_TARGETS=1, VICTORY_CAPTURE_FRAMES=1200,...,2200. Frame 2200 is well inside the prologue (frames advanced at ~0.6 fps for the preceding minutes, 1,236-7,495 draws/frame, 425-842 indirect).

Pixel statistics, sampled every 32 px, RGB:

frame target bytes min max mean
2000 2560x1440 f28 2,063,702 5 255 148.4
2000 2560x1440 f87 1,982,848 0 255 146.9
2000 2560x1440 f24 1,241,354 53 255 138.8
2000 3840x2160 f28 228,667 0 1 0.9
2000 3840x2160 f28 6,121 0 0 0.0
2000 3840x2160 f19 6,121 0 0 0.0
2100 2560x1440 f28 1,898,891 0 255 177.3
2100 2560x1440 f87 1,478,064 0 255 181.3
2100 3840x2160 f28 230,247 0 0 0.0
2200 2560x1440 f28 2,307,282 0 255 154.5
2200 2560x1440 f87 1,980,289 0 255 165.8
2200 3840x2160 f28 273,424 0 0 0.0

The presented frames themselves are black too: frame-2100.png 1920x1080 min 0 max 0, frame-2200.png min 0 max 1.

The 2560x1440 targets are a rendered street scene - wall, kerb, ground, a pedestrian, a picnic table - covered in dense per-pixel colour noise (that is why the PNGs are 2-2.6 MB; they do not compress). Downscaled copies:

frame 2200, 2560x1440 f87
frame 2200, 2560x1440 f28

So rasterisation is not the problem: the scene is there at 2560x1440, and the 3840x2160 target the frame is presented from has nothing in it. Two questions:

  1. Is the step from the 2560x1440 scene to the 3840x2160 output a title draw, which one of the dropped/untranslated programs would do, or a platform present-plane path (the PresentX area of #211) that we do not model for this title? If it is a draw, the dropped draws in the same frames (1,124-3,304 per frame) are the first place to look, and I can record which programs they are.
  2. Is the noise in the 2560x1440 targets real, or an artefact of reading them through the host copies in VICTORY_DUMP_TARGETS? If it is real it may be a separate view/format problem, and it might be why the output pass gives up.

Logs available: a 16,063-line victory.log for the run these dumps came from, and two earlier 600 s and 900 s runs on the same tree. Nothing has been changed in the tree to get this.

**@⁠MD5Visual** on GitHub · 2026-11-24 12:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/841) The world draws, but nothing reaches the 3840x2160 output target. Dumping the title's own render targets during the prologue on an RTX 3090 shows the scene fully rendered at 2560x1440 while the 3840x2160 target stays zero. **Machine** Windows 11 Pro 26200, Ryzen 7 5800X3D, 64 GB, RTX 3090 24 GB, driver 32.0.16.1088 (610.88). Title 1.0.2.1, blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`. Diagnostics build with `VICTORY_D3D12_DRED=1`, no debug layer. **Tree**: r4tedx `integration/testers` at `92bc27b`, `VICTORY_SHADER_LOOP_LIMIT=32`. (One local-only patch in my tree: the host device is created on an adapter picked by name, because `D3D12CreateDevice(None)` takes the display adapter here, a 2070 SUPER. Nothing else is patched.) That tree holds the prologue for 600 s and for 900 s in two other runs with no device removal, so the hang is gone and this is now only about the picture. **What the run looks like**: first-boot screens and menus at 29-30 fps, then the prologue at 0.5-0.7 fps, screen black. 6 compute pipelines refused (all `0x8007000E`), 182 shaders untranslated (27 of them `console wave64 lanes in a group of more than 64 threads`), 0 `no host texture`, 22 black-frame warnings, heap still capped at 1000000 (wants 1245184). **How the targets were taken**: `VICTORY_CAPTURE=<folder>`, `VICTORY_DUMP_TARGETS=1`, `VICTORY_CAPTURE_FRAMES=1200,...,2200`. Frame 2200 is well inside the prologue (frames advanced at ~0.6 fps for the preceding minutes, 1,236-7,495 draws/frame, 425-842 indirect). **Pixel statistics, sampled every 32 px, RGB:** | frame | target | bytes | min | max | mean | |---|---|---|---|---|---| | 2000 | 2560x1440 f28 | 2,063,702 | 5 | 255 | 148.4 | | 2000 | 2560x1440 f87 | 1,982,848 | 0 | 255 | 146.9 | | 2000 | 2560x1440 f24 | 1,241,354 | 53 | 255 | 138.8 | | 2000 | **3840x2160 f28** | 228,667 | **0** | **1** | **0.9** | | 2000 | 3840x2160 f28 | 6,121 | 0 | 0 | 0.0 | | 2000 | 3840x2160 f19 | 6,121 | 0 | 0 | 0.0 | | 2100 | 2560x1440 f28 | 1,898,891 | 0 | 255 | 177.3 | | 2100 | 2560x1440 f87 | 1,478,064 | 0 | 255 | 181.3 | | 2100 | **3840x2160 f28** | 230,247 | **0** | **0** | **0.0** | | 2200 | 2560x1440 f28 | 2,307,282 | 0 | 255 | 154.5 | | 2200 | 2560x1440 f87 | 1,980,289 | 0 | 255 | 165.8 | | 2200 | **3840x2160 f28** | 273,424 | **0** | **0** | **0.0** | The presented frames themselves are black too: `frame-2100.png` 1920x1080 min 0 max 0, `frame-2200.png` min 0 max 1. **The 2560x1440 targets are a rendered street scene** - wall, kerb, ground, a pedestrian, a picnic table - covered in dense per-pixel colour noise (that is why the PNGs are 2-2.6 MB; they do not compress). Downscaled copies: ![frame 2200, 2560x1440 f87](https://raw.githubusercontent.com/MD5Visual/victory-evidence/master/frame-2200-67-f87-2560x1440.png) ![frame 2200, 2560x1440 f28](https://raw.githubusercontent.com/MD5Visual/victory-evidence/master/frame-2200-69-f28-2560x1440.png) So rasterisation is not the problem: the scene is there at 2560x1440, and the 3840x2160 target the frame is presented from has nothing in it. Two questions: 1. Is the step from the 2560x1440 scene to the 3840x2160 output a title draw, which one of the dropped/untranslated programs would do, or a platform present-plane path (the PresentX area of #211) that we do not model for this title? If it is a draw, the dropped draws in the same frames (1,124-3,304 per frame) are the first place to look, and I can record which programs they are. 2. Is the noise in the 2560x1440 targets real, or an artefact of reading them through the host copies in `VICTORY_DUMP_TARGETS`? If it is real it may be a separate view/format problem, and it might be why the output pass gives up. Logs available: a 16,063-line `victory.log` for the run these dumps came from, and two earlier 600 s and 900 s runs on the same tree. Nothing has been changed in the tree to get this.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:02 +00:00
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 12:18 UTC · original

A datapoint from a tree that does not have the six E_OUTOFMEMORY refusals, which may narrow this.

Machine/tree: RTX 4060 Ti (driver 32.0.16.1656), Ryzen 9 5900X, Windows 11; diag build of the integration tree 2b1a569 (about 50 PRs) + #431 + the copy-fallback change from #783, VICTORY_NO_WATCHDOG=1, VICTORY_D3D12_DRED=1, VICTORY_SHADER_LOOP_LIMIT=32, TdrDelay=60 machine-wide. Same package, build unknown (b99f876b…).

Two observations.

1. The heap cap is the same, the out-of-memory refusals are not. We get the same line you do -

WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184
  • but 0 host pipeline refused ... (0x8007000E) in any of our runs on this tree (they appear in older builds: 61-62 of them in the main + four PRs builds from this morning). On the 50-PR tree every pipeline that translates is created. The world is still black at the presented frame.

So the six refused computes and the 1,245,184-slot heap are not sufficient to explain the zero 3840x2160 output - unless those six are exactly the composite/upscale passes and on this tree something else fills their role badly. Worth naming which passes those six are, if your dump can show it.

2. The present path itself works for 2D. With VICTORY_CAPTURE on that build, sampled every 8 px:

frame what it is mean RGB max
1-256 boot 0.0 0
512 the splash art (flamingo mural) 105.2 228
1024 the start-screen art (Lucia, street, tinted) 59.1 86

So the swapchain, the copy and the presentation all carry a full-frame 2D image correctly, at the same moment the world's presented frames are 0-1. That points at the composite that should turn the 2560x1440 scene targets into the 3840x2160 output, not at the present path.

Our captures did not reach world frames (the listed frames 1800+ were not reached in the five minutes the run stayed in the world), so I cannot show the world side from here - only that the 2D side of the same path is fine.

No game data used; the images are our own captures from the same run and only the statistics are quoted.

**@⁠rocobalt1** on GitHub · 2026-11-24 12:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7131253253) A datapoint from a tree that does **not** have the six `E_OUTOFMEMORY` refusals, which may narrow this. **Machine/tree:** RTX 4060 Ti (driver 32.0.16.1656), Ryzen 9 5900X, Windows 11; diag build of the integration tree `2b1a569` (about 50 PRs) + #431 + the copy-fallback change from #783, `VICTORY_NO_WATCHDOG=1`, `VICTORY_D3D12_DRED=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `TdrDelay=60` machine-wide. Same package, `build unknown (b99f876b…)`. Two observations. **1. The heap cap is the same, the out-of-memory refusals are not.** We get the same line you do - ``` WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184 ``` - but **0** `host pipeline refused ... (0x8007000E)` in any of our runs on this tree (they appear in older builds: 61-62 of them in the `main` + four PRs builds from this morning). On the 50-PR tree every pipeline that translates is created. The world is still black at the presented frame. So the six refused computes and the 1,245,184-slot heap are not sufficient to explain the zero 3840x2160 output - unless those six are exactly the composite/upscale passes and on this tree something else fills their role badly. Worth naming which passes those six are, if your dump can show it. **2. The present path itself works for 2D.** With `VICTORY_CAPTURE` on that build, sampled every 8 px: | frame | what it is | mean RGB | max | |---|---|---|---| | 1-256 | boot | 0.0 | 0 | | 512 | the splash art (flamingo mural) | **105.2** | 228 | | 1024 | the start-screen art (Lucia, street, tinted) | **59.1** | 86 | So the swapchain, the copy and the presentation all carry a full-frame 2D image correctly, at the same moment the world's presented frames are 0-1. That points at the composite that should turn the 2560x1440 scene targets into the 3840x2160 output, not at the present path. Our captures did not reach world frames (the listed frames 1800+ were not reached in the five minutes the run stayed in the world), so I cannot show the world side from here - only that the 2D side of the same path is fine. No game data used; the images are our own captures from the same run and only the statistics are quoted.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-24 12:33 UTC · original

I checked the exact 92bc27b source used in this report. It already includes #211. When two or more host-backed planes are selected, frame-N.png comes from the composited back buffer, so the PNG dimensions alone cannot identify which submitted texture supplied it.

I added a diagnostics-only follow-up on that integration revision. For each frame listed in VICTORY_CAPTURE_FRAMES, it logs the submitted plane number, its position among the selected sources, the resource ID, the dimensions and the format. The resource ID matches the one in target dump filenames. Direct RTV draw traces carry the same ID when VICTORY_LOG=victory_gpu::draw=debug,info is enabled. Commit 9a10d7a

The synthetic metadata test distinguished two same-size RGBA8 sources, with submitted planes 0 and 2 logged at composition positions 0 and 1. Clippy passed with and without diagnostics, and the asset check passed. The next useful comparison from the reported run is the present source and present plane selection lines for a black frame, alongside any target dump with the same resource ID. That identifies whether the 1440p scene is selected and which 4K resource is actually sent to the compositor.

**@⁠fuzeofficlal** on GitHub · 2026-11-24 12:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7131595951) I checked the exact `92bc27b` source used in this report. It already includes #211. When two or more host-backed planes are selected, `frame-N.png` comes from the composited back buffer, so the PNG dimensions alone cannot identify which submitted texture supplied it. I added a diagnostics-only follow-up on that integration revision. For each frame listed in `VICTORY_CAPTURE_FRAMES`, it logs the submitted plane number, its position among the selected sources, the resource ID, the dimensions and the format. The resource ID matches the one in target dump filenames. Direct RTV draw traces carry the same ID when `VICTORY_LOG=victory_gpu::draw=debug,info` is enabled. [Commit `9a10d7a`](https://github.com/fuzeofficlal/VIctory/commit/9a10d7a81884942cacc24f4799745b2fc6f6f0b0) The synthetic metadata test distinguished two same-size RGBA8 sources, with submitted planes 0 and 2 logged at composition positions 0 and 1. Clippy passed with and without diagnostics, and the asset check passed. The next useful comparison from the reported run is the `present source` and `present plane selection` lines for a black frame, alongside any target dump with the same resource ID. That identifies whether the 1440p scene is selected and which 4K resource is actually sent to the compositor.
Author
Owner

@⁠HrHd on GitHub · 2026-11-24 12:44 UTC · original

Independent data point on this symptom, on different hardware: RTX 4060 Ti 8 GB (Ada, driver 616.x), Windows 11, build 1.0.2.1. The prologue reaches the screen — car, street, flat and unlit — and the frame is still climbing draws when it stops being visible; the title's 3840x2160 output stays zero while the scene is there at reduced extent, which is your 2560x1440 observation from the other end. Then it hangs (~13 min in), submission of N lists with no breadcrumbs, no device-removal log.

Stack, all open work, no assets: upstream main ffe310e plus #539, #621, #180, #233 (rebased), #728's fork, #832, #837, and #578. #578 is what gets it this far — before it, world entry hung within 25–95 s on this card exactly as you describe on the 3090; after it, drops of wave64 mesh/compute instead of hanging.

Two things worth noting for anyone chasing the same thing:

  • #233 and #578 pull in opposite directions. #233 translates wave64 compute so it can run on 32-lane hosts; #578 refuses the same programs. With both, the refusals win and #233 mostly buys correctness on what does translate. The 46 → 154 cross-lane operation outside compute shift in my offline counts is where that lands.
  • With the full stack the offline translator emits 24,092 of 25,322 programs (95.1 %) on this pack, so the remaining blank output is not mostly missing shaders.

The prologue frame here also had no device removal recorded — the process and then the machine stopped, so DRED had nothing to leave. If your dump was taken while the frame was still live, it may be worth grabbing the PSV0/render-target pair at the same moment as the hang rather than after it.

**@⁠HrHd** on GitHub · 2026-11-24 12:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7131846726) Independent data point on this symptom, on different hardware: **RTX 4060 Ti 8 GB** (Ada, driver 616.x), Windows 11, build 1.0.2.1. The prologue reaches the screen — car, street, flat and unlit — and the frame is still climbing draws when it stops being visible; the title's 3840x2160 output stays zero while the scene is there at reduced extent, which is your 2560x1440 observation from the other end. Then it hangs (~13 min in), `submission of N lists` with no breadcrumbs, no device-removal log. Stack, all open work, no assets: upstream `main` `ffe310e` plus #539, #621, #180, #233 (rebased), #728's fork, #832, #837, and #578. #578 is what gets it this far — before it, world entry hung within 25–95 s on this card exactly as you describe on the 3090; after it, drops of wave64 mesh/compute instead of hanging. Two things worth noting for anyone chasing the same thing: - **#233 and #578 pull in opposite directions.** #233 translates wave64 compute so it can run on 32-lane hosts; #578 refuses the same programs. With both, the refusals win and #233 mostly buys correctness on what does translate. The 46 → 154 `cross-lane operation outside compute` shift in my offline counts is where that lands. - With the full stack the offline translator emits 24,092 of 25,322 programs (95.1 %) on this pack, so the remaining blank output is not mostly missing shaders. The prologue frame here also had **no** device removal recorded — the process and then the machine stopped, so DRED had nothing to leave. If your dump was taken while the frame was still live, it may be worth grabbing the PSV0/render-target pair at the same moment as the hang rather than after it.
Author
Owner

@⁠mpDom on GitHub · 2026-11-24 12:59 UTC · original

Confirmed on Windows 11 + AMD Radeon RX 6750 XT 12 GB on top of
4tedx/integration/testers\ (\92bc27b) with \VICTORY_SHADER_LOOP_LIMIT=32\ and \VICTORY_NO_WATCHDOG=1:

  • Ran 10+ minutes in the prologue (up to 7,242 draws/frame) with 0 device removals / 0 crashes.
  • Added an opt-in \VICTORY_PRESENT_1440P=1\ live fallback on our fork (mpDom/VIctory@d6897fa, branch [\pr/present-1440p-fallback](https://github.com/mpDom/VIctory/tree/pr/present-1440p-fallback)) that substitutes the frame's \2560x1440\ \ 28/\ 29/\ 87/\ 91\ target into plane 0 at present time while keeping HUD/overlay planes and leaving menus/loading screens untouched.
  • With that enabled, live 3D world geometry renders directly to the window (prison yard basketball hoops, power lines, picnic tables, cell block hallway, doors, windows, beds), confirming the 1440p scene rasterizes cleanly on AMD RDNA 2 too and only the 1440p->4K upscale/composite pass is missing.
  • (Note: PR creation on \Marvisak/VIctory\ is currently restricted, so sharing the branch here for anyone testing or integrating into \integration/testers.)
**@⁠mpDom** on GitHub · 2026-11-24 12:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7132191111) Confirmed on **Windows 11 + AMD Radeon RX 6750 XT 12 GB** on top of \ 4tedx/integration/testers\ (\92bc27b\) with \VICTORY_SHADER_LOOP_LIMIT=32\ and \VICTORY_NO_WATCHDOG=1\: - Ran **10+ minutes in the prologue (up to 7,242 draws/frame) with 0 device removals / 0 crashes**. - Added an opt-in \VICTORY_PRESENT_1440P=1\ live fallback on our fork ([mpDom/VIctory@d6897fa](https://github.com/mpDom/VIctory/commit/d6897fa), branch [\pr/present-1440p-fallback\](https://github.com/mpDom/VIctory/tree/pr/present-1440p-fallback)) that substitutes the frame's \2560x1440\ \ 28\/\ 29\/\ 87\/\ 91\ target into plane 0 at present time while keeping HUD/overlay planes and leaving menus/loading screens untouched. - With that enabled, **live 3D world geometry renders directly to the window** (prison yard basketball hoops, power lines, picnic tables, cell block hallway, doors, windows, beds), confirming the 1440p scene rasterizes cleanly on AMD RDNA 2 too and only the 1440p->4K upscale/composite pass is missing. - *(Note: PR creation on \Marvisak/VIctory\ is currently restricted, so sharing the branch here for anyone testing or integrating into \integration/testers\.)*
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 13:16 UTC · original

mpDom, we put a follow-up directly on your d6897fa branch. The opt-in fallback uses a 1440p candidate from completed work only when the submitted plane 0 is 3840×2160, and logs both resource IDs. On RTX 4090 with Wine/vkd3d-proton 3.2, a synthetic guest PresentX retained the overlay, ignored a reset recording, used the substitute once, and preserved a smaller primary.

For a matching world frame, the original and substitute IDs can be compared with that frame’s target and writer logs. The resource nomination by itself does not establish which command last wrote the scene or why the normal 4K output stayed dark. Your visible prologue run remains the title evidence. Follow-up PR and pixel readbacks

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 13:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7132586149) mpDom, we put a follow-up directly on your d6897fa branch. The opt-in fallback uses a 1440p candidate from completed work only when the submitted plane 0 is 3840×2160, and logs both resource IDs. On RTX 4090 with Wine/vkd3d-proton 3.2, a synthetic guest PresentX retained the overlay, ignored a reset recording, used the substitute once, and preserved a smaller primary. For a matching world frame, the original and substitute IDs can be compared with that frame’s target and writer logs. The resource nomination by itself does not establish which command last wrote the scene or why the normal 4K output stayed dark. Your visible prologue run remains the title evidence. [Follow-up PR and pixel readbacks](https://github.com/mpDom/VIctory/pull/1)
Author
Owner

@⁠MartinIndra02 on GitHub · 2026-11-24 14:24 UTC · original

Confirmed on Windows 11 + RTX 3080 (10 GB, driver 621.24) using mpDom/VIctory@pr/present-1440p-fallback (d6897fa on r4tedx/integration/testers) with VICTORY_PRESENT_1440P=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_NO_WATCHDOG=1, VICTORY_D3D12_DRED=1:

  • Reached the prologue with live 3D geometry visible on screen (2,357 translated shaders, 0 host pipeline refusals, 0 device removals across 5+ minutes).
  • Porting #783 (perf/gpu-copy-mapped-region-fallback) on top of d6897fa improved world frame time on this stack from 2.7 – 4.1 s (0.2 – 0.4 fps) to 1.1 – 1.4 s (0.7 – 0.9 fps), still with 0 device removals.

Aggregate counts only; no game data posted. AI-assisted; builds and runs executed on my machine.

**@⁠MartinIndra02** on GitHub · 2026-11-24 14:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7134324046) Confirmed on **Windows 11 + RTX 3080 (10 GB, driver `621.24`)** using `mpDom/VIctory@pr/present-1440p-fallback` (`d6897fa` on `r4tedx/integration/testers`) with `VICTORY_PRESENT_1440P=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_D3D12_DRED=1`: - Reached the prologue with live 3D geometry visible on screen (`2,357` translated shaders, `0` host pipeline refusals, `0` device removals across 5+ minutes). - Porting `#783` (`perf/gpu-copy-mapped-region-fallback`) on top of `d6897fa` improved world frame time on this stack from `2.7 – 4.1 s` (`0.2 – 0.4 fps`) to `1.1 – 1.4 s` (`0.7 – 0.9 fps`), still with `0` device removals. *Aggregate counts only; no game data posted. AI-assisted; builds and runs executed on my machine.*
Author
Owner

@⁠bailu12300 on GitHub · 2026-11-24 14:37 UTC · original

Same symptom on an RTX 5060 (8 GB), Windows 10 19045 — and one extra data point

Confirming #841 from a third machine. RTX 5060 8 GB, i5-14490F, Win10 19045 (not 11), D3D12 Agility SDK 1.614, title b99f876b… (same blake3).

What I see

  • First-boot screens and menus: ~30 fps, full colour, correct.
  • Prologue / world: 500–805 draws/frame, 1.0 fps (1080 ms/frame), presented image is uniform dark purple/black.
  • Heap: host view heap capped at 1000000 count=1245184 — same deficit.
  • With the #902 fallback+recycle patch: 0 no dynamic slots, 0 device removals, world lives ~3.5 min (7,396 draws) then dies 0xc0000005 +0x23cf683 (write 0x0). With #876 typeless fix + community #728 shader fork. So the GPU side is clean; the picture is the remaining problem.

What I could not reproduce
VICTORY_DUMP_TARGETS=1 VICTORY_CAPTURE=… VICTORY_CAPTURE_FRAMES=1024,… dies after ~1 min with 0x80000003 at victory-image…+0x1e1d3c8 (breakpoint inside victory's own image dll), before any target is written. In your tree the dump works (92bc27b + VICTORY_SHADER_LOOP_LIMIT=32) — worth comparing: my tree is upstream ffe310e + #876 + #902 + the #728 fork, no integration/testers branch.

Things I ruled out for the black output

  • --console series-s does not change the descriptor request (count=1245184 either way).
  • Merging #180 (shader/compute-derivatives) with the #728 fork drops untranslated shaders 369 → 279, but the world then dies earlier (2,793 draws) — reverted.
  • #940's mesh-host-lane change (ed9afc0) ported into my tree compiles and runs, but the presented image is unchanged: 500 draws/frame, same purple.

So on three machines (3090 / 5080 / 5060) the scene reaches the title's own 2560×1440 targets and the present path stays zero/black. If you have a working dump on integration/testers, the useful comparison is pixel stats of the 3840×2160 target vs the swapchain copy on the same frame — that would tell whether the copy is skipped or writing the wrong subresource.

**@⁠bailu12300** on GitHub · 2026-11-24 14:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7134690959) ## Same symptom on an RTX 5060 (8 GB), Windows 10 19045 — and one extra data point Confirming #841 from a third machine. RTX 5060 8 GB, i5-14490F, Win10 19045 (not 11), D3D12 Agility SDK 1.614, title `b99f876b…` (same blake3). **What I see** - First-boot screens and menus: ~30 fps, full colour, correct. - Prologue / world: `500–805 draws/frame`, **1.0 fps (1080 ms/frame)**, presented image is uniform dark purple/black. - Heap: `host view heap capped at 1000000 count=1245184` — same deficit. - With the `#902` fallback+recycle patch: 0 `no dynamic slots`, 0 device removals, world lives ~3.5 min (7,396 draws) then dies `0xc0000005 +0x23cf683 (write 0x0)`. With `#876` typeless fix + community `#728` shader fork. So the GPU side is clean; the picture is the remaining problem. **What I could not reproduce** `VICTORY_DUMP_TARGETS=1 VICTORY_CAPTURE=… VICTORY_CAPTURE_FRAMES=1024,…` dies after ~1 min with `0x80000003 at victory-image…+0x1e1d3c8` (breakpoint inside victory's own image dll), before any target is written. In your tree the dump works (`92bc27b` + `VICTORY_SHADER_LOOP_LIMIT=32`) — worth comparing: my tree is upstream `ffe310e` + #876 + #902 + the #728 fork, no `integration/testers` branch. **Things I ruled out for the black output** - `--console series-s` does not change the descriptor request (`count=1245184` either way). - Merging `#180` (`shader/compute-derivatives`) with the #728 fork drops untranslated shaders 369 → 279, but the world then dies earlier (2,793 draws) — reverted. - `#940`'s mesh-host-lane change (`ed9afc0`) ported into my tree compiles and runs, but the presented image is unchanged: `500 draws/frame`, same purple. So on three machines (3090 / 5080 / 5060) the scene reaches the title's own 2560×1440 targets and the *present* path stays zero/black. If you have a working dump on `integration/testers`, the useful comparison is pixel stats of the 3840×2160 target vs the swapchain copy on the same frame — that would tell whether the copy is skipped or writing the wrong subresource.
Author
Owner

@⁠Peppacodes on GitHub · 2026-11-24 14:52 UTC · original

Confirmed on an RTX 5080 (Windows 11, driver 32.0.16.1692, Ryzen 7 5700X3D, 32 GB), using mpDom/VIctory@pr/present-1440p-fallback at d6897fa, unchanged, in a diagnostics build. Settings were VICTORY_PRESENT_1440P=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_NO_WATCHDOG=1 VICTORY_D3D12_DRED=1, with a fresh data folder.

  • World reached, and the presented image shows it. It's a street with utility poles and power lines, two pedestrians, a worker up a pole, a trash can, stacked tyres and road markings, in false colour (the packed 1440p target).
  • 2,982 to 3,855 draws per frame, about 0.2 to 1 fps. The overlay showed the CPU at 87–95% and the GPU at about 1%, so the time goes into the title-memory copies; #783 should help.
  • No device removal and no title crash in the first minutes in the world. That run is still going.

A pitfall for anyone scripting their way in. If an earlier run spends time in the world, the title writes a save (here at …\data\7952987A\saves\…\Player~…\v19). On the next boot, scripted Enter presses pick "Continue". The title then loads straight into that saved state and dies within about 40 s at +0x164a298 (0xc0000005, read 0x2c). Its own crash context shows "Game Running", the player position set, and about 4,000 streaming requests pending.

I hit this on two different trees in a row. A fresh VICTORY_DATA_DIR per run brings back the first-boot path and the prologue. Also, on a fresh profile, Enter alone can loop on Legal Notices with "Copyright" highlighted; Down to "Next" gets past it.

No game data attached; the images stay local.

**@⁠Peppacodes** on GitHub · 2026-11-24 14:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135087374) **Confirmed on an RTX 5080** (Windows 11, driver 32.0.16.1692, Ryzen 7 5700X3D, 32 GB), using `mpDom/VIctory@pr/present-1440p-fallback` at `d6897fa`, unchanged, in a diagnostics build. Settings were `VICTORY_PRESENT_1440P=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_NO_WATCHDOG=1 VICTORY_D3D12_DRED=1`, with a fresh data folder. - **World reached, and the presented image shows it.** It's a street with utility poles and power lines, two pedestrians, a worker up a pole, a trash can, stacked tyres and road markings, in false colour (the packed 1440p target). - **2,982 to 3,855 draws per frame, about 0.2 to 1 fps.** The overlay showed the CPU at 87–95% and the GPU at about 1%, so the time goes into the title-memory copies; #783 should help. - No device removal and no title crash in the first minutes in the world. That run is still going. **A pitfall for anyone scripting their way in.** If an earlier run spends time in the world, the title writes a save (here at `…\data\7952987A\saves\…\Player~…\v19`). On the next boot, scripted Enter presses pick "Continue". The title then loads straight into that saved state and dies within about 40 s at `+0x164a298` (`0xc0000005`, read `0x2c`). Its own crash context shows "Game Running", the player position set, and about 4,000 streaming requests pending. I hit this on two different trees in a row. A fresh `VICTORY_DATA_DIR` per run brings back the first-boot path and the prologue. Also, on a fresh profile, Enter alone can loop on Legal Notices with "Copyright" highlighted; Down to "Next" gets past it. No game data attached; the images stay local.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 15:05 UTC · original

A framewise measurement of the fallback on a recorded run, which turns "sometimes black" into a nomination problem.

Build: our integration tree 2b1a569 (~50 PRs) + #431 + the copy change from #783 + d6897fa + your follow-up ea38ddf (cherry-picked, clean). Diag build, VICTORY_PRESENT_1440P=1, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, RTX 4060 Ti 8 GB, driver 32.0.16.1656. The window title carries the presented frame number, so a recording of the window can be joined to the frame log.

Method: the game was driven into the world with VICTORY_KEYS; ffmpeg -f gdigrab recorded the window for 180 s at 5 fps (world entry at frame 2050). Every 3 s of video is one frame; for each, mean RGB over the content area only (title bar excluded):

frame mean RGB what is on screen
2053 23-35 partial geometry (poles, tables, a bush) on black
2054-2061 0.8 black
2064 134 full geometry (crowd, cranes, tables)
2065-2070 0.8 black
2072-2082 137 full geometry, 11 seconds of it
2083 0.8 black

The log shows three substitutes for the same run, alternating between frames, all 2560x1440 format 28:

frame=1634 substitute=0x144c7280ab0
frame=1635 substitute=0x144c7280330
frame=1636 substitute=0x1453a0ea480
frame=1637 substitute=0x144c7280330
...

So the picture is not intermittent at random: one of the nominations carries the scene (mean ~137), the other two are empty (0.8) or nearly (23-35), and the phases last seconds because the candidate changes with whichever target the frame nominated last.

What this suggests for your follow-up rather than for the composition:

  1. Pinning the nomination to the resource that carries the scene would make the presented picture continuous instead of flickering. The three IDs above are stable within a run, so a "pick the one that had content" heuristic (or simply the largest/last-written of the three) is testable.
  2. It also means the earlier black frames were not "the 4K composite failed this frame": the fallback was presenting an empty 1440p target.

Caveat, so this is not overstated: the target with content is still a G-buffer slice (surface normals), not the lit colour - the recording shows the rainbow normal view, not the game's picture. This measurement is about which resource the fallback selects, not about what the 4K composite should have contained.

If useful I can repeat the recording with VICTORY_LOG=victory_gpu::queue=debug so the frame numbers, the substitute IDs and the on-screen state are in one table.

**@⁠rocobalt1** on GitHub · 2026-11-24 15:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135445594) A framewise measurement of the fallback on a recorded run, which turns "sometimes black" into a nomination problem. **Build:** our integration tree `2b1a569` (~50 PRs) + #431 + the copy change from #783 + `d6897fa` + your follow-up `ea38ddf` (cherry-picked, clean). Diag build, `VICTORY_PRESENT_1440P=1`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, RTX 4060 Ti 8 GB, driver 32.0.16.1656. The window title carries the presented frame number, so a recording of the window can be joined to the frame log. **Method:** the game was driven into the world with `VICTORY_KEYS`; `ffmpeg -f gdigrab` recorded the window for 180 s at 5 fps (world entry at frame 2050). Every 3 s of video is one frame; for each, mean RGB over the content area only (title bar excluded): | frame | mean RGB | what is on screen | |---|---:|---| | 2053 | 23-35 | partial geometry (poles, tables, a bush) on black | | 2054-2061 | **0.8** | black | | 2064 | **134** | full geometry (crowd, cranes, tables) | | 2065-2070 | **0.8** | black | | 2072-2082 | **137** | full geometry, 11 seconds of it | | 2083 | 0.8 | black | **The log shows three substitutes for the same run**, alternating between frames, all 2560x1440 format 28: ``` frame=1634 substitute=0x144c7280ab0 frame=1635 substitute=0x144c7280330 frame=1636 substitute=0x1453a0ea480 frame=1637 substitute=0x144c7280330 ... ``` So the picture is not intermittent at random: **one of the nominations carries the scene (mean ~137), the other two are empty (0.8) or nearly (23-35), and the phases last seconds** because the candidate changes with whichever target the frame nominated last. What this suggests for your follow-up rather than for the composition: 1. Pinning the nomination to the resource that carries the scene would make the presented picture continuous instead of flickering. The three IDs above are stable within a run, so a "pick the one that had content" heuristic (or simply the largest/last-written of the three) is testable. 2. It also means the earlier black frames were not "the 4K composite failed this frame": the fallback was presenting an empty 1440p target. Caveat, so this is not overstated: the target with content is still a **G-buffer slice (surface normals)**, not the lit colour - the recording shows the rainbow normal view, not the game's picture. This measurement is about which resource the fallback selects, not about what the 4K composite should have contained. If useful I can repeat the recording with `VICTORY_LOG=victory_gpu::queue=debug` so the frame numbers, the substitute IDs and the on-screen state are in one table.
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-24 15:16 UTC · original

From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super, Windows 11), own copy of 1.0.2.1.

Two things from today that may help everyone chasing the black world, both measured in the world after the prologue starts (the "Move / Move the camera" tutorial prompt is on screen, so the player has control; the UI composes over a black 3D image, as described here).

1. Speed: 0.2 → 2.3–2.5 fps in the world, from three host-side changes (no shader change).

  • VICTORY_D3D12_DRED=1 costs ~2.5× in the world: the title's 5 command-list recording threads spent ~50 % of their samples in VirtualQuery building the per-draw breadcrumb text. Leave it off unless you are chasing a device removal (5 s → ~2 s per frame).
  • The copy-back's write_mapped used WriteProcessMemory, which queries the region first (NtQueryVirtualMemory, ~2 ms per call on the title's big heaps, one call per changed 64 KiB page): 66 % of the submit thread. Writing with NtWriteVirtualMemory directly (same per-page success/failure semantics) took the copy-back from ~1.5 s to ~0.13 s per frame.
  • copy_mapped without the up-front VirtualQuery, and the pre-GPU snapshot, the copy-back comparison and the texture blake3 hashing spread over a persistent pool of threads created at start-up (creating threads per call runs the title's DLL_THREAD_ATTACH callbacks).
    Remaining per frame (~410 ms): GPU ~145 ms (fence wait, CPU and GPU still serialized; #595 is the obvious next step), copy-back ~73, texture hashing ~20, snapshot ~50.

2. Ray-traced passes no longer dropped (diagnostic option, local). With VICTORY_SKIP_BVH_BUILDER=1 the RT passes (GatherVBuffer irradiance cache, RTDistantShadowTrace, TraceShadowRays, RaytraceShadows, LaserLightShadowRaytracing) stayed dropped on "an address not from a root parameter": they read the acceleration-structure VA from a descriptor, then s_load the node count at +48 and branch over the traversal when it is ≤ 0. A VICTORY_RT_MISS=1 option (off by default) makes those unresolvable loads read a null view (0) and image_bvh_intersect_ray return 0xFFFFFFFF, and folds the resulting scalar branches so the dead traversal loop is removed: every ray misses (no RT shadows or bounces), but the passes run and feed what follows. Offline, 36 of 47 RT containers emit and validate instead of 18; in game the six RT producers that VICTORY_PRODUCERS flagged now run. Untranslated programs seen in the world: 131.

The picture is still black for us without a present fallback; we are now trying mpDom's pr/present-1440p-fallback on top. These are local branches (main + ~45 PRs + the changes above); happy to publish the perf commits as a PR if useful.

**@⁠LooperSalty** on GitHub · 2026-11-24 15:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135749385) *From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super, Windows 11), own copy of 1.0.2.1.* Two things from today that may help everyone chasing the black world, both measured in the world after the prologue starts (the "Move / Move the camera" tutorial prompt is on screen, so the player has control; the UI composes over a black 3D image, as described here). **1. Speed: 0.2 → 2.3–2.5 fps in the world, from three host-side changes (no shader change).** - `VICTORY_D3D12_DRED=1` costs ~2.5× in the world: the title's 5 command-list recording threads spent ~50 % of their samples in `VirtualQuery` building the per-draw breadcrumb text. Leave it off unless you are chasing a device removal (5 s → ~2 s per frame). - The copy-back's `write_mapped` used `WriteProcessMemory`, which queries the region first (`NtQueryVirtualMemory`, ~2 ms per call on the title's big heaps, one call per changed 64 KiB page): 66 % of the submit thread. Writing with `NtWriteVirtualMemory` directly (same per-page success/failure semantics) took the copy-back from ~1.5 s to ~0.13 s per frame. - `copy_mapped` without the up-front `VirtualQuery`, and the pre-GPU snapshot, the copy-back comparison and the texture blake3 hashing spread over a persistent pool of threads created at start-up (creating threads per call runs the title's DLL_THREAD_ATTACH callbacks). Remaining per frame (~410 ms): GPU ~145 ms (fence wait, CPU and GPU still serialized; #595 is the obvious next step), copy-back ~73, texture hashing ~20, snapshot ~50. **2. Ray-traced passes no longer dropped (diagnostic option, local).** With `VICTORY_SKIP_BVH_BUILDER=1` the RT passes (`GatherVBuffer` irradiance cache, `RTDistantShadowTrace`, `TraceShadowRays`, `RaytraceShadows`, `LaserLightShadowRaytracing`) stayed dropped on "an address not from a root parameter": they read the acceleration-structure VA from a descriptor, then `s_load` the node count at +48 and branch over the traversal when it is ≤ 0. A `VICTORY_RT_MISS=1` option (off by default) makes those unresolvable loads read a null view (0) and `image_bvh_intersect_ray` return 0xFFFFFFFF, and folds the resulting scalar branches so the dead traversal loop is removed: every ray misses (no RT shadows or bounces), but the passes run and feed what follows. Offline, 36 of 47 RT containers emit and validate instead of 18; in game the six RT producers that `VICTORY_PRODUCERS` flagged now run. Untranslated programs seen in the world: 131. The picture is still black for us without a present fallback; we are now trying `mpDom`'s `pr/present-1440p-fallback` on top. These are local branches (main + ~45 PRs + the changes above); happy to publish the perf commits as a PR if useful.
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 15:30 UTC · original

Confirmed on an RTX 3060 Ti (8 GB, 32-lane waves, driver 621.24, Windows 11 26200, Ryzen 5 5600, 32 GB), own 1.0.2.1 copy: with VICTORY_PRESENT_1440P=1 the window shows the world geometry (power lines, poles, lamps, figures and plants in the foreground) in false colour, as described above. No device removal.

The tree is different from integration/testers, so this is a second route to the same result. On main ffe310e:

  • #439 (with #223/#233/#320);
  • #578, with head's PSV0 rule instead of its first commit (see below);
  • #493, #587, #431, #539, #704 (with #193), #452, #489 (with #302), cybx's #645 port onto #439, #282, and 2^18 dynamic slots (#747);
  • Peppacodes' host-lane numbering for wave64 mesh (#940), ported onto #439;
  • d6897fa, adapted to main's single-plane present (it substitutes the texture handed to host.present).

Settings: diagnostics build, wave64 mesh allowed, VICTORY_SHADER_LOOP_LIMIT=1024, eeed82b877b44b5f and 269b802f878c24e1 skipped. The world runs at 0.5–1 fps, with 1,200–5,500 draws per frame.

Three things measured on the way that may save someone a run:

  1. #578's first commit refuses every wave64 compute program on a 32-lane host before translation. That is 980 programs that #439 translates and that validate, among them shader binning (ClearShaderBins, GenerateShaderBinOffsets), meshlet culling and the compute graph ops. With head's rule (judge the emitted PSV0 wave range), a world frame went from ~2,600 to ~5,400 draws. If you stack #439 with an older #578, check which commit you have.
  2. VICTORY_D3D12_DRED=1 is what made our runs a slideshow. I agree with @⁠LooperSalty's measurement above. With DRED on: 0.1 fps and 9–12 s frames, with "copies" at 2–5 s per frame (time in GetWriteWatch). With DRED off, the same build runs at 0.5–1 fps.
  3. Shaders that fail translation are translated again in every run. Failures are not cached (shader_cache.rs stores only successes). About 400 programs fail here, and the large compute ones take 2–3 s each. That is ~1.5 min after world entry spent re-failing them, with 150–270 pipelines "being made" in every warm run. I have a small change that caches the error under the same build key (translation depends only on the container and the build hash), with tests, and will post it as a separate issue with a fork branch.

AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.

**@⁠lines9686-rgb** on GitHub · 2026-11-24 15:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7136136932) Confirmed on an **RTX 3060 Ti** (8 GB, 32-lane waves, driver 621.24, Windows 11 26200, Ryzen 5 5600, 32 GB), own 1.0.2.1 copy: with `VICTORY_PRESENT_1440P=1` the window shows the world geometry (power lines, poles, lamps, figures and plants in the foreground) in false colour, as described above. No device removal. The tree is different from `integration/testers`, so this is a second route to the same result. On `main` `ffe310e`: - #439 (with #223/#233/#320); - #578, with head's PSV0 rule instead of its first commit (see below); - #493, #587, #431, #539, #704 (with #193), #452, #489 (with #302), cybx's #645 port onto #439, #282, and 2^18 dynamic slots (#747); - Peppacodes' host-lane numbering for wave64 mesh (#940), ported onto #439; - `d6897fa`, adapted to `main`'s single-plane `present` (it substitutes the texture handed to `host.present`). Settings: diagnostics build, wave64 mesh allowed, `VICTORY_SHADER_LOOP_LIMIT=1024`, `eeed82b877b44b5f` and `269b802f878c24e1` skipped. The world runs at 0.5–1 fps, with 1,200–5,500 draws per frame. Three things measured on the way that may save someone a run: 1. **#578's first commit refuses every wave64 compute program on a 32-lane host before translation.** That is 980 programs that #439 translates and that validate, among them shader binning (`ClearShaderBins`, `GenerateShaderBinOffsets`), meshlet culling and the compute graph ops. With head's rule (judge the emitted PSV0 wave range), a world frame went from ~2,600 to ~5,400 draws. If you stack #439 with an older #578, check which commit you have. 2. **`VICTORY_D3D12_DRED=1` is what made our runs a slideshow.** I agree with @⁠LooperSalty's measurement above. With DRED on: 0.1 fps and 9–12 s frames, with "copies" at 2–5 s per frame (time in `GetWriteWatch`). With DRED off, the same build runs at 0.5–1 fps. 3. **Shaders that fail translation are translated again in every run.** Failures are not cached (`shader_cache.rs` stores only successes). About 400 programs fail here, and the large compute ones take 2–3 s each. That is ~1.5 min after world entry spent re-failing them, with 150–270 pipelines "being made" in every warm run. I have a small change that caches the error under the same build key (translation depends only on the container and the build hash), with tests, and will post it as a separate issue with a fork branch. AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠HrHd on GitHub · 2026-11-24 15:48 UTC · original

Reproduction of the world hang on testers/black-scene-u5-645 (b6e67d3), so it is not stale-branch noise: 6.1 min in, two device removals, death at a submission carrying compute dispatches, reached frame 7143 first. Same signature as on main + a hand-picked stack — 28-list submission, ~33 s, 0x887A0004, no breadcrumbs in a release build. So the wall is systemic and not caused by any one stack.

Two things that do change the picture, both already in this tree's orbit:

  • VICTORY_SHADER_LOOP_LIMIT=64 moved the death from 6–8 min to 18 min, zero removals, at 2–3 s/frame. Capping loop trip counts only matters if something spins, so the stall is a loop or a barrier wait, not codegen: with the whole retail pack, every compute program that emits also validates (2442/2442), and vertex/pixel leaves 84 and mesh 69 real validator errors, none of them on compute.
  • TdrDelay/TdrDdiDelay at 30 s turns the old whole-desktop freeze into a clean device removed and a dead process. At the default 300 s, or with TdrLevel=0 (#1054), the same stall wedges the machine.

The black picture is separate and does clear on this branch — flat-coloured, textures present, over a pink cast. So the two workstreams don't block each other: picture is improving here while compute still stalls.

Recorded on 1.0.2.1 with the four fail-fast writes NOPed; per-build counts only, no assets.

**@⁠HrHd** on GitHub · 2026-11-24 15:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7136658697) Reproduction of the world hang on `testers/black-scene-u5-645` (`b6e67d3`), so it is not stale-branch noise: 6.1 min in, two device removals, death at a submission carrying compute dispatches, reached frame 7143 first. Same signature as on `main` + a hand-picked stack — 28-list submission, ~33 s, `0x887A0004`, no breadcrumbs in a release build. So the wall is systemic and not caused by any one stack. Two things that do change the picture, both already in this tree's orbit: - `VICTORY_SHADER_LOOP_LIMIT=64` moved the death from 6–8 min to **18 min, zero removals**, at 2–3 s/frame. Capping loop trip counts only matters if something spins, so the stall is a loop or a barrier wait, not codegen: with the whole retail pack, **every compute program that emits also validates** (2442/2442), and vertex/pixel leaves 84 and mesh 69 real validator errors, none of them on compute. - `TdrDelay`/`TdrDdiDelay` at 30 s turns the old whole-desktop freeze into a clean `device removed` and a dead process. At the default 300 s, or with `TdrLevel=0` (#1054), the same stall wedges the machine. The black picture is separate and does clear on this branch — flat-coloured, textures present, over a pink cast. So the two workstreams don't block each other: picture is improving here while compute still stalls. Recorded on 1.0.2.1 with the four fail-fast writes NOPed; per-build counts only, no assets.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 15:50 UTC · original

An offline look at question 1 (is the 1440p → 4K step a title pass, and are its shaders among the missing ones), and one concrete thing to grep a black frame's log for.

What was run. victory translate <shader archive> --host-lanes 32-32 --validate --list, CPU only, over my local copy of the title's shader archive (25,889 programs). Trees: integration/testers at 2b1a569 (update 4), and update 5 (92bc27b) with further merges on top. Nothing was run in the title, so everything below says what translates, not what a frame does. Hashes are the 16 hex digits the run log prints (compute <hash>).

1. The upscale and output passes are title shaders, and they are not missing. The archive has temporal resolve and sharpen compute programs, spatial-upscale pixel programs, and the post-effect, composite, tone-map and blit families. Of the 406 programs I could place in tiled lighting, exposure, anti-aliasing and upscale, post effects, composite, tone map and blit, all but 8 validate for a 32-lane host at update 4, and every upscale, temporal resolve, composite, tone-map and blit program is among those that validate. So the 4K step itself is unlikely to be an untranslated shader.

2. What is missing on a 32-lane host is the shadow term. 19 of the 20 programs of the cascade-shadow tiled render family, and 6 of 11 of its classify family, do not translate: console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves. This is the same at update 4 and with update 5.

the 25 hashes

tiled render: 191ecaed66eea3b1 65de113e23fa4fdd be6ce5d849d51127 804b342cb4b9d1e9 ab5455fc6abb804f 922e1d0ee1e19a85 31d703207b51549a 240cb516c1af0bc3 1d44a723bdebbf27 ce79e9eba7ae0348 466ec41d3f9d24c0 20b78ee12ecdb57d 56f3bf2d9388e5a7 d7db57731ada919b f133e35efed2a48a fa0bd10a35bfef3c b4b0427232707598 abd7a22106898c66 4b57ec4af6de25fe

classify: 0c028454b58543f0 eab96ed5d1684967 eae3498e6553afa8 67353810417f6c19 b8f3f7979d6bbc50 4e9b58cc637d9272

The title does create pipelines for them: 14 of the 19 and 3 of the 6 are in the list of 103 compute pipelines #817 saw refused on main on an RTX 4060 Ti. (Of those 103, 82 validate offline on the testers' tree for a 32-lane host; the 21 that don't are these 17 plus 4 others.)

A local branch that runs a group of several console waves as one host group per wave brings the tiled render family from 19 untranslated to 1 offline. It is not in the testers' tree yet, and I have not run it in the title.

3. Smaller gaps in the same chain, same trees:

  • two colour-downsample programs of the average-luminance (exposure) family: 23d507cbb6a22e86, b0095eb50222e808 (an address not from a root parameter; they validate with the #645 changes, not in the tree yet);
  • the anti-aliasing frame-statistics program e535cfd7baac93b8 and two shadow-mask denoise variants a7ea75e2653e54d1, 0ea6fac38d096770 (an LDS write of bytes or halves, the subject of #571);
  • the ray-tracing passes (shadow rays, ray-traced directional shadows, traced indirect lighting), which need the BVH work and are a separate matter. The remaining few are video-luminance and water programs.

What I can't tell from here, and what a log can: whether a frame whose shadow term was never written comes out black, or merely unlit. That is a guess until someone sees it. For a black world frame on an NVIDIA card, the useful check is whether the hashes in 2 and 3 appear in the lines for dropped dispatches (a dispatch without a host pipeline dropped, or the untranslated-shader warning), and which of them write a 2560x1440 target. On a 64-lane host (RDNA) the reason in 2 does not apply, so a black 4K output there needs another cause; I have not run the count for 64-lane hosts.

If anyone posts a list of dropped or refused hashes from a world frame, I can say which family each belongs to and whether it translates on which tree.

Local title data was used for the counts above: counts, hashes and refusal reasons only, no shader code. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 15:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7136693838) An offline look at question 1 (is the 1440p → 4K step a title pass, and are its shaders among the missing ones), and one concrete thing to grep a black frame's log for. **What was run.** `victory translate <shader archive> --host-lanes 32-32 --validate --list`, CPU only, over my local copy of the title's shader archive (25,889 programs). Trees: `integration/testers` at `2b1a569` (update 4), and update 5 (`92bc27b`) with further merges on top. Nothing was run in the title, so everything below says what translates, not what a frame does. Hashes are the 16 hex digits the run log prints (`compute <hash>`). **1. The upscale and output passes are title shaders, and they are not missing.** The archive has temporal resolve and sharpen compute programs, spatial-upscale pixel programs, and the post-effect, composite, tone-map and blit families. Of the 406 programs I could place in tiled lighting, exposure, anti-aliasing and upscale, post effects, composite, tone map and blit, all but 8 validate for a 32-lane host at update 4, and every upscale, temporal resolve, composite, tone-map and blit program is among those that validate. So the 4K step itself is unlikely to be an untranslated shader. **2. What is missing on a 32-lane host is the shadow term.** 19 of the 20 programs of the cascade-shadow tiled render family, and 6 of 11 of its classify family, do not translate: `console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves`. This is the same at update 4 and with update 5. <details><summary>the 25 hashes</summary> tiled render: `191ecaed66eea3b1` `65de113e23fa4fdd` `be6ce5d849d51127` `804b342cb4b9d1e9` `ab5455fc6abb804f` `922e1d0ee1e19a85` `31d703207b51549a` `240cb516c1af0bc3` `1d44a723bdebbf27` `ce79e9eba7ae0348` `466ec41d3f9d24c0` `20b78ee12ecdb57d` `56f3bf2d9388e5a7` `d7db57731ada919b` `f133e35efed2a48a` `fa0bd10a35bfef3c` `b4b0427232707598` `abd7a22106898c66` `4b57ec4af6de25fe` classify: `0c028454b58543f0` `eab96ed5d1684967` `eae3498e6553afa8` `67353810417f6c19` `b8f3f7979d6bbc50` `4e9b58cc637d9272` </details> The title does create pipelines for them: 14 of the 19 and 3 of the 6 are in the list of 103 compute pipelines #817 saw refused on `main` on an RTX 4060 Ti. (Of those 103, 82 validate offline on the testers' tree for a 32-lane host; the 21 that don't are these 17 plus 4 others.) A local branch that runs a group of several console waves as one host group per wave brings the tiled render family from 19 untranslated to 1 offline. It is not in the testers' tree yet, and I have not run it in the title. **3. Smaller gaps in the same chain, same trees:** - two colour-downsample programs of the average-luminance (exposure) family: `23d507cbb6a22e86`, `b0095eb50222e808` (`an address not from a root parameter`; they validate with the #645 changes, not in the tree yet); - the anti-aliasing frame-statistics program `e535cfd7baac93b8` and two shadow-mask denoise variants `a7ea75e2653e54d1`, `0ea6fac38d096770` (`an LDS write of bytes or halves`, the subject of #571); - the ray-tracing passes (shadow rays, ray-traced directional shadows, traced indirect lighting), which need the BVH work and are a separate matter. The remaining few are video-luminance and water programs. **What I can't tell from here**, and what a log can: whether a frame whose shadow term was never written comes out black, or merely unlit. That is a guess until someone sees it. For a black world frame on an NVIDIA card, the useful check is whether the hashes in 2 and 3 appear in the lines for dropped dispatches (`a dispatch without a host pipeline dropped`, or the untranslated-shader warning), and which of them write a 2560x1440 target. On a 64-lane host (RDNA) the reason in 2 does not apply, so a black 4K output there needs another cause; I have not run the count for 64-lane hosts. If anyone posts a list of dropped or refused hashes from a world frame, I can say which family each belongs to and whether it translates on which tree. Local title data was used for the counts above: counts, hashes and refusal reasons only, no shader code. AI-assisted.
Author
Owner

@⁠hazben on GitHub · 2026-11-24 16:02 UTC · original

AI-assisted (Claude Code). Measured on my own machine with my own copy of 1.0.2.1. Counts and hashes only; nothing from the game is attached.

This answers "black or merely unlit" from world frames, on a tree where the cascade-shadow tiled render does run and the classify programs don't.

Machine: RTX 4070 SUPER 12 GB (32-lane waves), driver 621.14, i7-12700K, 32 GB, Windows 11 26200.

Tree: r4tedx testers/indirect-wave-dispatch at a857b636. It already has 3205701e, "groups of several console waves run as one host group per wave". On top of it:

  • Vaximous's zero-element buffer views made null (the #912 branch);
  • realhenners' fix/buffer-copy-states at c99e429 (the newer #334);
  • local diagnostics only: scripted input, a NaN/Inf/zero count for dumped targets, and dumps timed from world entry.

Settings:

  • diagnostics build with VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=256 and VICTORY_D3D12_DRED=1;
  • three compute programs skipped with VICTORY_SKIP_PIPELINES (28918b7150a7aad5, caa78b8ca62bc3d6, 4ddd6f9702fab2a7) to avoid an access violation about 50 s into the world.

With these settings one run held the world for 9.5 min with no device removal. The dumps below are from a second run, which I closed by hand after 6 min.

Your hashes in the world frames' log:

  • Tiled render: 18 of the 19 translated, got a host pipeline and ran, and none was dropped. 4b57ec4af6de25fe was never bound.

  • Classify: three were bound, refused and dropped 1 to 2 times per frame, with console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves:

    • 0c028454b58543f0 (CS_ShadowUnifiedClearRaster);
    • eae3498e6553afa8 (CS_CalcRasterClassificationListCounts);
    • b8f3f7979d6bbc50 (CS_WriteRasterClassificationResults).

    The other three were never bound.

  • Section 3: 23d507cbb6a22e86, b0095eb50222e808, e535cfd7baac93b8 and 0ea6fac38d096770 translated and ran. a7ea75e2653e54d1 was never bound.

What the frames hold (VICTORY_DUMP_TARGETS, six frames between about 1 and 5 min after world entry):

  • The G-buffer is full. The 2560x1440 targets in formats 28, 24 and 87 show the whole prologue set: people, picnic tables, the excavator and power lines.
  • Every 2560x1440 HDR target is exactly zero. That's four R16G16B16A16_FLOAT and two or three R11G11B10_FLOAT per frame: every value is 0, with no NaN and no Inf, in every dumped frame.
  • The full-screen lighting pass is not dropped. All 60 of its pipelines, over vertex shader 72c739b61097456d, were created and bound.
  • The presented 3840x2160 frame is a flat, near-white field in a letterbox, not zero. So our output differs from the one in this issue.

So on this tree the lighting pass runs and writes zero. Where the lit colour should be, the frame is black, not just missing its shadows.

That doesn't isolate the classify programs, though. In the same frames these lighting inputs are dropped too:

  • Ray tracing (an address not from a root parameter):
    • shadowmask:CS_TraceShadowRays_Checkerboard: 559d9f0184e15fe3;
    • the four rtdirectionalshadows:CS_RTDistantShadowTrace*_Tiled: 17829ac71aab4e8d, a1b20bc47e3c9597, afeea48bbb9913ad and e8c962358d862e3f;
    • deferred_tiled:CS_LaserLightShadowRaytracing: 32ed072b9f845048.
  • deferred_lighting:CS_ComputeInfiniteRRIntensity: e18931c72af42e46, refused with a whole-wave section of a wave64 on a host without 64-lane waves.
  • indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays: 39f0e9aeb156a61c, refused with a descriptor chosen by control flow.

Next here: a port of #638's VICTORY_PRODUCERS (the pairing of readers with dropped writers) onto this tree, to see which of these the lighting pass actually reads.

**@⁠hazben** on GitHub · 2026-11-24 16:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137022170) *AI-assisted (Claude Code). Measured on my own machine with my own copy of 1.0.2.1. Counts and hashes only; nothing from the game is attached.* This answers "black or merely unlit" from world frames, on a tree where the cascade-shadow tiled render **does** run and the classify programs don't. **Machine:** RTX 4070 SUPER 12 GB (32-lane waves), driver 621.14, i7-12700K, 32 GB, Windows 11 26200. **Tree:** r4tedx `testers/indirect-wave-dispatch` at `a857b636`. It already has `3205701e`, "groups of several console waves run as one host group per wave". On top of it: - Vaximous's zero-element buffer views made null (the #912 branch); - realhenners' `fix/buffer-copy-states` at `c99e429` (the newer #334); - local diagnostics only: scripted input, a NaN/Inf/zero count for dumped targets, and dumps timed from world entry. **Settings:** - diagnostics build with `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=256` and `VICTORY_D3D12_DRED=1`; - three compute programs skipped with `VICTORY_SKIP_PIPELINES` (`28918b7150a7aad5`, `caa78b8ca62bc3d6`, `4ddd6f9702fab2a7`) to avoid an access violation about 50 s into the world. With these settings one run held the world for 9.5 min with no device removal. The dumps below are from a second run, which I closed by hand after 6 min. **Your hashes in the world frames' log:** - **Tiled render:** 18 of the 19 translated, got a host pipeline and ran, and none was dropped. `4b57ec4af6de25fe` was never bound. - **Classify:** three were bound, refused and dropped 1 to 2 times per frame, with `console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves`: - `0c028454b58543f0` (CS_ShadowUnifiedClearRaster); - `eae3498e6553afa8` (CS_CalcRasterClassificationListCounts); - `b8f3f7979d6bbc50` (CS_WriteRasterClassificationResults). The other three were never bound. - **Section 3:** `23d507cbb6a22e86`, `b0095eb50222e808`, `e535cfd7baac93b8` and `0ea6fac38d096770` translated and ran. `a7ea75e2653e54d1` was never bound. **What the frames hold** (`VICTORY_DUMP_TARGETS`, six frames between about 1 and 5 min after world entry): - **The G-buffer is full.** The 2560x1440 targets in formats 28, 24 and 87 show the whole prologue set: people, picnic tables, the excavator and power lines. - **Every 2560x1440 HDR target is exactly zero.** That's four R16G16B16A16_FLOAT and two or three R11G11B10_FLOAT per frame: every value is 0, with no NaN and no Inf, in every dumped frame. - **The full-screen lighting pass is not dropped.** All 60 of its pipelines, over vertex shader `72c739b61097456d`, were created and bound. - **The presented 3840x2160 frame is a flat, near-white field in a letterbox, not zero.** So our output differs from the one in this issue. So on this tree the lighting pass runs and writes zero. Where the lit colour should be, the frame is black, not just missing its shadows. That doesn't isolate the classify programs, though. In the same frames these lighting inputs are dropped too: - **Ray tracing** (`an address not from a root parameter`): - `shadowmask:CS_TraceShadowRays_Checkerboard`: `559d9f0184e15fe3`; - the four `rtdirectionalshadows:CS_RTDistantShadowTrace*_Tiled`: `17829ac71aab4e8d`, `a1b20bc47e3c9597`, `afeea48bbb9913ad` and `e8c962358d862e3f`; - `deferred_tiled:CS_LaserLightShadowRaytracing`: `32ed072b9f845048`. - **`deferred_lighting:CS_ComputeInfiniteRRIntensity`:** `e18931c72af42e46`, refused with `a whole-wave section of a wave64 on a host without 64-lane waves`. - **`indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays`:** `39f0e9aeb156a61c`, refused with `a descriptor chosen by control flow`. Next here: a port of #638's `VICTORY_PRODUCERS` (the pairing of readers with dropped writers) onto this tree, to see which of these the lighting pass actually reads.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 16:04 UTC · original

@⁠hazben thank you, that settles it for this tree: the lighting pass runs and the HDR targets are exactly zero, so it is black and not just unlit, and the shadow render alone was not the cause.

One thing from the disassembly that may help order the list before the producer pairing is ported. e18931c72af42e46 (refused, a whole-wave section of a wave64 on a host without 64-lane waves) loops over a light list, sums three per-lane terms over the whole wave, and then one lane stores a single 16-byte record: the summed colour divided by its luminance, and that luminance times 0.001. So its whole output is one small record that later passes can only read as a scale and a tint. If the lighting pass multiplies by it, a record that was never written would give exactly zero everywhere, with no NaN, which is what your dumps show. That is a reading of the program, not a measurement: I have not seen which pass reads that buffer. With the pairing, the buffer it writes (a 16-byte-stride UAV) is the first thing I would look for among the lighting pass's inputs.

The ray-tracing producers in your list all stop at the same place offline (they read the acceleration structure through an address the tracer does not follow), and the three classify programs and this one are wave64 forms that are being worked on.

Offline disassembly of my local copy was used for the description above; no shader code is quoted. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 16:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137069818) @⁠hazben thank you, that settles it for this tree: the lighting pass runs and the HDR targets are exactly zero, so it is black and not just unlit, and the shadow render alone was not the cause. One thing from the disassembly that may help order the list before the producer pairing is ported. `e18931c72af42e46` (refused, `a whole-wave section of a wave64 on a host without 64-lane waves`) loops over a light list, sums three per-lane terms over the whole wave, and then one lane stores a single 16-byte record: the summed colour divided by its luminance, and that luminance times 0.001. So its whole output is one small record that later passes can only read as a scale and a tint. If the lighting pass multiplies by it, a record that was never written would give exactly zero everywhere, with no NaN, which is what your dumps show. That is a reading of the program, not a measurement: I have not seen which pass reads that buffer. With the pairing, the buffer it writes (a 16-byte-stride UAV) is the first thing I would look for among the lighting pass's inputs. The ray-tracing producers in your list all stop at the same place offline (they read the acceleration structure through an address the tracer does not follow), and the three classify programs and this one are wave64 forms that are being worked on. Offline disassembly of my local copy was used for the description above; no shader code is quoted. AI-assisted.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 16:10 UTC · original

@⁠r4tedx A traced world frame answers question 1 for an RTX 2080: the 1440p to 4K step is a title draw, it runs, and it writes the presented 3840x2160 image. Its input is black. The black comes from before the composite.

Setup: RTX 2080 (32-lane), driver 616.56, Series X, loop limit 32. JMAN730's fork + #493 + #189 (d0fd9bf, Wave32 mode) + #206 + #667 + #704, 2^18 dynamic slots (#747). Per-op trace plus target dumps of world frame 1950: 6,218 ops ran, 1,507 were dropped.

The end of the frame, in recording order:

pass reads writes state
CS_TAA2_Resolve (df11dcd0…) 2560x1440 f10 not traced ran
PS_CompositeNMB (pixel 6318f669e4f17d65) 2560x1440 f10, bloom, exposure 2560x1440 f24 ran
PS_TAA2_SpatialUpscaleWithDithering (pixel 4f4ec7b16673362f) 2560x1440 f24 3840x2160 f28 (the presented image) ran

Values in the dumps of that frame:

  • every 2560x1440 f10 and f26 target dumped: exactly 0.0;
  • the composite's f24: 0 to 4 out of 1023, grey;
  • the 3840x2160 output: 0 to 2 out of 255, mean 0.34, about a third of the pixels non-zero.

The f24 and the output keep those ranges in two later runs (frames 2200 and 3200, with #878 and #489 added). At frame 1550 of the traced run, the composite held a flat light blue instead, like the grey-blue I reported on #747.

So the faint noise in the black output looks like that draw's dithering over a black input. Your count and the trace agree: the output passes are there, and here they also run.

The other, all-zero 3840x2160 f28 is a different resource. A separate rectangle draw (vertex 0602c2384acbb3b2, pixel a78d088fa55aa495, a plain textured quad bound since the first frames) samples it into the presented image. No op in the traced frame writes it. It looks like an empty UI layer rather than the scene.

Your hashes on this card (the 25 in section 2 and the 5 in section 3; both columns are offline, DXIL validated, and both stacks also have #878, #489 and #294/#709):

#189 Wave32 stack #439 (bf0f951) + your shader/wave-per-group (7ae51da), 32-32
tiled render (19) 8 validate, 11 refused (a cross-lane wave operation in divergent control flow) 18 validate, 1 refused (4b57ec4af6de25fe, more than 64 threads)
classify (6) 2 validate, 4 refused (same reason) 6 refused (more than 64 threads)
23d507cbb6a22e86, b0095eb50222e808 refused (an address not from a root parameter) same
e535cfd7baac93b8, a7ea75e2653e54d1, 0ea6fac38d096770 validate refused (an LDS write of bytes or halves)

In the traced frame, none of the 19 tiled-render programs shows up at all, run or dropped. Of your list, the dropped ones are eae3498e6553afa8, b8f3f7979d6bbc50 and the two exposure programs.

What that frame drops in the lighting setup:

program dispatch #189 Wave32 stack #439 stack, offline
tiled_lighting:CS_MaterialTilesInitial bad01f53f53248e5 160x90x1 (1440p in 16x16 tiles) cross-lane, divergent validates
tiled_lighting:CS_ClusterLightsWorldSpace d3e5b737ea7cc150 5x5x30 cross-lane, divergent validates
tiled_lighting:CS_PrescalarizeLightLoop 11eeb27c2d15980d 40x23x1 a descriptor's address or format read as data same
shader_binning_utils:CS_GenerateShaderBinOffsets 8dd8d739047fe557 257x1x1, 6 times cross-lane, divergent validates

On e18931c72af42e46 (your 16:04 comment): on this #189 Wave32 stack, deferred_lighting:CS_ComputeInfiniteRRIntensity translates (offline it validates here, while it's refused on the #439 stack with a whole-wave section…) and it runs in the traced frame: one 1x1x1 dispatch whose UAV is a 16-byte buffer. The HDR targets are still exactly 0.0 in that frame. So either the record exists but holds a wrong value under #189's whole-wave emulation (a zero luminance would do it), or the zero comes from somewhere else. I can't read the record's value from target dumps. If anyone has a buffer readback switch, that one 16-byte buffer would settle it.

I haven't shown that these make the HDR targets zero. By name they set up the tiles and lights to shade, so I'd look at them before the shadow term.

One limit of an offline count: 360 of the 923 compute dispatches dropped in that frame belong to programs that aren't in the shader archive (for example 3b90165a77d95cdf, c42a31951201f9a0, 5062bc7a48e842f8, 5279ae36796c31fc). I can post the full list of dropped hashes with counts if you want to place the rest.

AI-assisted (Claude Code): the runs, trace and log analysis were automated. The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 16:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137245464) @⁠r4tedx A traced world frame answers question 1 for an RTX 2080: **the 1440p to 4K step is a title draw, it runs, and it writes the presented 3840x2160 image. Its input is black.** The black comes from before the composite. Setup: RTX 2080 (32-lane), driver 616.56, Series X, loop limit 32. JMAN730's fork + #493 + #189 (`d0fd9bf`, Wave32 mode) + #206 + #667 + #704, 2^18 dynamic slots (#747). Per-op trace plus target dumps of world frame 1950: 6,218 ops ran, 1,507 were dropped. **The end of the frame, in recording order:** | pass | reads | writes | state | |---|---|---|---| | `CS_TAA2_Resolve` (`df11dcd0…`) | 2560x1440 f10 | not traced | ran | | `PS_CompositeNMB` (pixel `6318f669e4f17d65`) | 2560x1440 f10, bloom, exposure | 2560x1440 **f24** | ran | | `PS_TAA2_SpatialUpscaleWithDithering` (pixel `4f4ec7b16673362f`) | 2560x1440 **f24** | **3840x2160 f28** (the presented image) | ran | **Values in the dumps of that frame:** - every 2560x1440 f10 and f26 target dumped: exactly 0.0; - the composite's f24: 0 to 4 out of 1023, grey; - the 3840x2160 output: 0 to 2 out of 255, mean 0.34, about a third of the pixels non-zero. The f24 and the output keep those ranges in two later runs (frames 2200 and 3200, with #878 and #489 added). At frame 1550 of the traced run, the composite held a flat light blue instead, like the grey-blue I reported on #747. So the faint noise in the black output looks like that draw's dithering over a black input. Your count and the trace agree: the output passes are there, and here they also run. The other, all-zero 3840x2160 f28 is a different resource. A separate rectangle draw (vertex `0602c2384acbb3b2`, pixel `a78d088fa55aa495`, a plain textured quad bound since the first frames) samples it into the presented image. No op in the traced frame writes it. It looks like an empty UI layer rather than the scene. **Your hashes on this card** (the 25 in section 2 and the 5 in section 3; both columns are offline, DXIL validated, and both stacks also have #878, #489 and #294/#709): | | #189 Wave32 stack | #439 (`bf0f951`) + your `shader/wave-per-group` (`7ae51da`), 32-32 | |---|---|---| | tiled render (19) | 8 validate, 11 refused (`a cross-lane wave operation in divergent control flow`) | **18 validate**, 1 refused (`4b57ec4af6de25fe`, more than 64 threads) | | classify (6) | 2 validate, 4 refused (same reason) | 6 refused (more than 64 threads) | | `23d507cbb6a22e86`, `b0095eb50222e808` | refused (`an address not from a root parameter`) | same | | `e535cfd7baac93b8`, `a7ea75e2653e54d1`, `0ea6fac38d096770` | validate | refused (`an LDS write of bytes or halves`) | In the traced frame, none of the 19 tiled-render programs shows up at all, run or dropped. Of your list, the dropped ones are `eae3498e6553afa8`, `b8f3f7979d6bbc50` and the two exposure programs. **What that frame drops in the lighting setup:** | program | dispatch | #189 Wave32 stack | #439 stack, offline | |---|---|---|---| | `tiled_lighting:CS_MaterialTilesInitial` `bad01f53f53248e5` | 160x90x1 (1440p in 16x16 tiles) | cross-lane, divergent | validates | | `tiled_lighting:CS_ClusterLightsWorldSpace` `d3e5b737ea7cc150` | 5x5x30 | cross-lane, divergent | validates | | `tiled_lighting:CS_PrescalarizeLightLoop` `11eeb27c2d15980d` | 40x23x1 | `a descriptor's address or format read as data` | same | | `shader_binning_utils:CS_GenerateShaderBinOffsets` `8dd8d739047fe557` | 257x1x1, 6 times | cross-lane, divergent | validates | **On `e18931c72af42e46` (your 16:04 comment):** on this #189 Wave32 stack, `deferred_lighting:CS_ComputeInfiniteRRIntensity` translates (offline it validates here, while it's refused on the #439 stack with `a whole-wave section…`) and **it runs** in the traced frame: one `1x1x1` dispatch whose UAV is a 16-byte buffer. The HDR targets are still exactly 0.0 in that frame. So either the record exists but holds a wrong value under #189's whole-wave emulation (a zero luminance would do it), or the zero comes from somewhere else. I can't read the record's value from target dumps. If anyone has a buffer readback switch, that one 16-byte buffer would settle it. I haven't shown that these make the HDR targets zero. By name they set up the tiles and lights to shade, so I'd look at them before the shadow term. One limit of an offline count: 360 of the 923 compute dispatches dropped in that frame belong to programs that aren't in the shader archive (for example `3b90165a77d95cdf`, `c42a31951201f9a0`, `5062bc7a48e842f8`, `5279ae36796c31fc`). I can post the full list of dropped hashes with counts if you want to place the rest. *AI-assisted (Claude Code): the runs, trace and log analysis were automated. The hardware, title copy and runs are the user's.*
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 16:14 UTC · original

@⁠hazben a GPU-safety note on testers/indirect-wave-dispatch (a857b636), the branch you ran.

That branch has an indirect-dispatch argument pass for split console waves (831cdb3, SPLIT_DISPATCH in crates/victory-gpu/src/indirect.rs). A review probe on our side drove a related pass with 6,000 active records plus buffer growth. It aborted 3 of 3 times on an RTX 5070, with nvlddmkm event 153 and no full driver reset, and completed on a Radeon iGPU and on WARP. The suspect is the budget loop that both passes share: it retries a compare-exchange after a plain load of the budget, and has no other exit. A plain load of that buffer can keep returning the same stale value.

Your run went through, and the title may never reach that many records in one pass. Still, until the fix is on the branch, please treat a GPU timeout, device removal or event 153 on NVIDIA with this branch as possibly this, and say so if you see one.

The fix is committed locally: each retry takes the value the last exchange returned, and the retries are bounded, so a record that runs out of them is refused. It is waiting for its test run (WARP first, then the RTX 5070, small workload). I'll push it to the branch and say so here once that passes.

The title was not used in the probe or the fix's tests.

AI-assisted

**@⁠r4tedx** on GitHub · 2026-11-24 16:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137352170) @⁠hazben a GPU-safety note on `testers/indirect-wave-dispatch` (`a857b636`), the branch you ran. That branch has an indirect-dispatch argument pass for split console waves (`831cdb3`, `SPLIT_DISPATCH` in `crates/victory-gpu/src/indirect.rs`). A review probe on our side drove a related pass with 6,000 active records plus buffer growth. It aborted 3 of 3 times on an RTX 5070, with nvlddmkm event 153 and no full driver reset, and completed on a Radeon iGPU and on WARP. The suspect is the budget loop that both passes share: it retries a compare-exchange after a plain load of the budget, and has no other exit. A plain load of that buffer can keep returning the same stale value. Your run went through, and the title may never reach that many records in one pass. Still, until the fix is on the branch, please treat a GPU timeout, device removal or event 153 on NVIDIA with this branch as possibly this, and say so if you see one. The fix is committed locally: each retry takes the value the last exchange returned, and the retries are bounded, so a record that runs out of them is refused. It is waiting for its test run (WARP first, then the RTX 5070, small workload). I'll push it to the branch and say so here once that passes. The title was not used in the probe or the fix's tests. AI-assisted
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 16:19 UTC · original

Same result on AMD/Wine, so the 2560×1440 scene is not NVIDIA-specific.

  • Setup: RX 9060 XT (RDNA4, RADV 26.3.1), Arch Linux, kernel 6.18.x; Wine 11.22, DXVK 3.1.1 dxgi, vkd3d-proton 3.2.0 (Proton Experimental DLLs); package 1.0.2.1, blake3 b99f876b….
  • Tree: r4tedx integration/testers @da605bc, diag build (--profile diag --features diagnostics), VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_CAPTURE + VICTORY_DUMP_TARGETS=1 at frames 1500–2200.
  • First world frame captured: 1800. Sampled pixel statistics (every 64 px, RGB):
target min max mean
2560×1440 f87 0 253 161.9
2560×1440 f28 0 255 167.4
2560×1440 f24 68 171 126.7
3840×2160 f28 0 0 0.0
presented frame 1800 0 0 0.0

Earlier presented frames have content (1500 mean 129, 1600 52, 1700 69 — loading art); frame 1800 onward is zero. So rasterisation reaches the 1440p scene on RDNA4 too, and the 2160p output target and presented plane stay empty — the same 1440p→2160p/present gap you describe, not an NVIDIA artefact.

No game screenshots attached (numbers only). Windows not tested here.

**@⁠DaviTostes** on GitHub · 2026-11-24 16:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137488175) Same result on **AMD/Wine**, so the 2560×1440 scene is not NVIDIA-specific. - **Setup:** RX 9060 XT (RDNA4, RADV 26.3.1), Arch Linux, kernel 6.18.x; Wine 11.22, DXVK 3.1.1 `dxgi`, vkd3d-proton 3.2.0 (Proton Experimental DLLs); package 1.0.2.1, blake3 `b99f876b…`. - **Tree:** r4tedx `integration/testers` @`da605bc`, diag build (`--profile diag --features diagnostics`), `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_CAPTURE` + `VICTORY_DUMP_TARGETS=1` at frames 1500–2200. - **First world frame captured: 1800.** Sampled pixel statistics (every 64 px, RGB): | target | min | max | mean | |---|---:|---:|---:| | 2560×1440 f87 | 0 | 253 | **161.9** | | 2560×1440 f28 | 0 | 255 | **167.4** | | 2560×1440 f24 | 68 | 171 | **126.7** | | 3840×2160 f28 | 0 | 0 | **0.0** | | presented frame 1800 | 0 | 0 | **0.0** | Earlier presented frames have content (1500 mean 129, 1600 52, 1700 69 — loading art); frame 1800 onward is zero. So rasterisation reaches the 1440p scene on RDNA4 too, and the 2160p output target and presented plane stay empty — the same 1440p→2160p/present gap you describe, not an NVIDIA artefact. No game screenshots attached (numbers only). Windows not tested here.
Author
Owner

@⁠tike411 on GitHub · 2026-11-24 16:20 UTC · original

RTX 5080, NVIDIA 621.24, Windows 11 26300.9974, Series X title 1.0.2.1.

Black-frame shaders. I matched the 30 compute hashes in the original request against two local runs at shader loop limit 32. Both builds first bound the same 25 hashes at world entry and subsequently logged a translation refusal for each.

Family Refused hashes from the list
Tiled cascade-shadow render 18/19, all except 4b57ec4af6de25fe
Cascade-shadow classify 3/6: 0c028454b58543f0, eae3498e6553afa8, b8f3f7979d6bbc50
Exposure downsample 2/2: 23d507cbb6a22e86, b0095eb50222e808
AA frame stats / shadow-mask denoise 2/3: e535cfd7baac93b8, 0ea6fac38d096770
  • Ordinary presentation (ffe310e + #493 c48b240, #206 05981dd, #189 b472733, DRED on). First bind was at frame 1047. Frame 1750 showed the movement/camera prompt over a black 3D background. In the 6.9-second reporting interval containing that frame, the top dropped compute dispatches averaged 196/frame for e30970f1727063fd, 124 for b6df66af105d8b2d and 88 for 3b90165a77d95cdf. These are interval averages.
  • 1440p diagnostic presentation (r4tedx/VIctory@92bc27b + #530, with local display/capture changes). First bind was at frame 4641. Of the 25 refused hashes, 19 also appeared by name in periodic drop summaries. Of 11 sampled world images, six were black, three showed streets and two showed people in false colour. The INFO logs do not map an individual refused dispatch to a 2560×1440 output resource.

For the lighting-buffer question, e18931c72af42e46 translated and got a host pipeline on the #189 stack. On the #530 stack it was refused for a whole-wave section of wave64 and appeared at 0.5 dropped dispatches/frame in one reporting interval. We have no readback of the 16-byte record’s value.

Prologue load crash on r4tedx/VIctory@b6e67d3. Two fresh-cache runs used the same unchanged title executable and settings, normal presentation and DRED off. At loop limit 64 the process lasted 59.44 s, and at 32 it lasted 78.56 s. Both showed the loading illustrations, then went dark before we captured a 3D scene. Both logged device removal after submitting one command list, with reason 0x887A0001 (DXGI_ERROR_INVALID_CALL) and process exit 0x887A0005. The Windows System log contained no nvlddmkm 153 or Display 4101 event between 16:05:31 and 16:09:04 UTC. The 4060 Ti report used a different title executable.

Collected on the tester’s machine and analyzed with OpenAI Codex (GPT-6).

**@⁠tike411** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137509277) RTX 5080, NVIDIA 621.24, Windows 11 26300.9974, Series X title 1.0.2.1. **Black-frame shaders.** I matched the 30 compute hashes in [the original request](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) against two local runs at shader loop limit 32. Both builds first bound the same 25 hashes at world entry and subsequently logged a translation refusal for each. | Family | Refused hashes from the list | | --- | --- | | Tiled cascade-shadow render | 18/19, all except `4b57ec4af6de25fe` | | Cascade-shadow classify | 3/6: `0c028454b58543f0`, `eae3498e6553afa8`, `b8f3f7979d6bbc50` | | Exposure downsample | 2/2: `23d507cbb6a22e86`, `b0095eb50222e808` | | AA frame stats / shadow-mask denoise | 2/3: `e535cfd7baac93b8`, `0ea6fac38d096770` | - **Ordinary presentation** (`ffe310e` + #493 `c48b240`, #206 `05981dd`, #189 `b472733`, DRED on). First bind was at frame 1047. Frame 1750 showed the movement/camera prompt over a black 3D background. In the 6.9-second reporting interval containing that frame, the top dropped compute dispatches averaged 196/frame for `e30970f1727063fd`, 124 for `b6df66af105d8b2d` and 88 for `3b90165a77d95cdf`. These are interval averages. - **1440p diagnostic presentation** (`r4tedx/VIctory@92bc27b` + #530, with local display/capture changes). First bind was at frame 4641. Of the 25 refused hashes, 19 also appeared by name in periodic drop summaries. Of 11 sampled world images, six were black, three showed streets and two showed people in false colour. The INFO logs do not map an individual refused dispatch to a 2560×1440 output resource. For the [lighting-buffer question](https://git.gtahub.st/github/Marvisak--VIctory/issues/841), `e18931c72af42e46` translated and got a host pipeline on the #189 stack. On the #530 stack it was refused for a whole-wave section of wave64 and appeared at 0.5 dropped dispatches/frame in one reporting interval. We have no readback of the 16-byte record’s value. **Prologue load crash on `r4tedx/VIctory@b6e67d3`.** Two fresh-cache runs used the same unchanged title executable and settings, normal presentation and DRED off. At loop limit 64 the process lasted 59.44 s, and at 32 it lasted 78.56 s. Both showed the loading illustrations, then went dark before we captured a 3D scene. Both logged device removal after submitting one command list, with reason `0x887A0001` (`DXGI_ERROR_INVALID_CALL`) and process exit `0x887A0005`. The Windows System log contained no `nvlddmkm` 153 or `Display` 4101 event between 16:05:31 and 16:09:04 UTC. The [4060 Ti report](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) used a different title executable. Collected on the tester’s machine and analyzed with OpenAI Codex (GPT-6).
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 16:22 UTC · original

The count for a 64-lane host, which I owed from my first comment, and what it would take to split the remaining candidates.

Run: the same offline count with --host-lanes 32-64 (CPU only, local copy of the shader archive, 25,889 programs; the tree is update 5 with the #645 changes, so close to but not the current integration/testers). 689 programs don't validate against 734 for a 32-lane host: 45 more compute programs validate, none fewer.

In the lighting families on a 64-lane host (shadows, tiled and deferred lighting, exposure, indirect lighting, anti-aliasing, post effects: 560 programs), 77 don't validate, and 63 of those are the ray-tracing readers (an address not from a root parameter). Every program hazben saw refused for a wave64 reason on the RTX 4070 SUPER validates here: e18931c72af42e46 and the three classify programs, with the whole cascade-shadow render and classify families and tiled lighting. What is left besides ray tracing is small: three byte/half LDS writes (#571), four addresses joined by a phi, three whole-wave steps, and 39f0e9aeb156a61c (a descriptor chosen by control flow).

So an RDNA dump would separate the two explanations. If on a 64-lane card the 2560x1440 HDR targets (R16G16B16A16_FLOAT, R11G11B10_FLOAT) are also exactly zero while the G-buffer is full, the cause is not one of the wave64 programs, and the ray-tracing producers or 39f0e9aeb156a61c are what is left. If they hold a lit image there, the wave64 programs are the cause on NVIDIA. @⁠mpDom, if you still have the RX 6750 XT setup: VICTORY_DUMP_TARGETS=1 with a few VICTORY_CAPTURE_FRAMES inside the prologue, and the target values log lines for the 2560x1440 float targets, would answer it. The target values line prints the lowest and highest value of each dumped float target, so no image needs to be shared.

Nothing was run in the title here. Local title data was used for the count: counts, hashes and refusal reasons only. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 16:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137565196) The count for a 64-lane host, which I owed from my first comment, and what it would take to split the remaining candidates. **Run:** the same offline count with `--host-lanes 32-64` (CPU only, local copy of the shader archive, 25,889 programs; the tree is update 5 with the #645 changes, so close to but not the current `integration/testers`). 689 programs don't validate against 734 for a 32-lane host: 45 more compute programs validate, none fewer. **In the lighting families on a 64-lane host** (shadows, tiled and deferred lighting, exposure, indirect lighting, anti-aliasing, post effects: 560 programs), 77 don't validate, and 63 of those are the ray-tracing readers (`an address not from a root parameter`). Every program hazben saw refused for a wave64 reason on the RTX 4070 SUPER validates here: `e18931c72af42e46` and the three classify programs, with the whole cascade-shadow render and classify families and tiled lighting. What is left besides ray tracing is small: three byte/half LDS writes (#571), four addresses joined by a phi, three whole-wave steps, and `39f0e9aeb156a61c` (`a descriptor chosen by control flow`). **So an RDNA dump would separate the two explanations.** If on a 64-lane card the 2560x1440 HDR targets (R16G16B16A16_FLOAT, R11G11B10_FLOAT) are also exactly zero while the G-buffer is full, the cause is not one of the wave64 programs, and the ray-tracing producers or `39f0e9aeb156a61c` are what is left. If they hold a lit image there, the wave64 programs are the cause on NVIDIA. @⁠mpDom, if you still have the RX 6750 XT setup: `VICTORY_DUMP_TARGETS=1` with a few `VICTORY_CAPTURE_FRAMES` inside the prologue, and the `target values` log lines for the 2560x1440 float targets, would answer it. The `target values` line prints the lowest and highest value of each dumped float target, so no image needs to be shared. Nothing was run in the title here. Local title data was used for the count: counts, hashes and refusal reasons only. AI-assisted.
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-24 16:24 UTC · original

Linux cross-link that may help question 1: on vkd3d(-proton) hosts the same "picture never reaches the output" story fails one step earlier — at swap-chain creation, with a fault, right after the first present. Symbolized chain from our deterministic repro (Proton 11.0, RTX 6000 Ada, same build b99f876b…, 6/5 runs across two vkd3d builds, WARP and native):

victory_gpu::host::Host::present (host.rs:1600)
  → presenter (host.rs:1699)
    → IDXGIFactory::CreateSwapChainForHwnd
      → dxgi → libvkd3d-1.dll+0x3fbd0  ← 0xc0000005 read 0xffffffffffffffff (bundled build: +0x3e7b0 read 0x0)

Full detail in #829 (…#issuecomment-7135404931), including the note that the title's Breakpad then dies inside Wine's dbghelp, which is what the top-level report shows.

So there are now two independent "output path" failure modes: this one (Windows/native: the 2560x1440 scene renders, the 3840x2160 target stays zero, presents black) and ours (Linux/vkd3d: the 3840x2160 swap-chain object never survives creation). If the 3840x2160 target is created through the same factory call that faults on our side, your question 1's "platform present-plane path" and our fault could be the same subsystem seen from two sides — worth checking on your side whether the 3840x2160 target's creation correlates with the second CreateSwapChainForHwnd/output-model transition in the trace. Also for the record: 6 compute pipelines refused with 0x8007000E plus the heap cap at 1,000,000 (wants 1,245,184) reproduces concerns raised in #829's environment discussion, and 27 of your 182 untranslated being wave64 lanes > 64 matches the wave64 tail our side flags for NVIDIA hosts too.

Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-24 16:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137616214) Linux cross-link that may help question 1: on vkd3d(-proton) hosts the same "picture never reaches the output" story fails one step earlier — at swap-chain creation, with a fault, right after the first present. Symbolized chain from our deterministic repro (Proton 11.0, RTX 6000 Ada, same build `b99f876b…`, 6/5 runs across two vkd3d builds, WARP and native): ``` victory_gpu::host::Host::present (host.rs:1600) → presenter (host.rs:1699) → IDXGIFactory::CreateSwapChainForHwnd → dxgi → libvkd3d-1.dll+0x3fbd0 ← 0xc0000005 read 0xffffffffffffffff (bundled build: +0x3e7b0 read 0x0) ``` Full detail in #829 (`…#issuecomment-7135404931`), including the note that the title's Breakpad then dies inside Wine's `dbghelp`, which is what the top-level report shows. So there are now two independent "output path" failure modes: this one (Windows/native: the 2560x1440 scene renders, the 3840x2160 target stays zero, presents black) and ours (Linux/vkd3d: the 3840x2160 swap-chain object never survives creation). If the 3840x2160 target is created through the same factory call that faults on our side, your question 1's "platform present-plane path" and our fault could be the same subsystem seen from two sides — worth checking on your side whether the 3840x2160 target's creation correlates with the second `CreateSwapChainForHwnd`/output-model transition in the trace. Also for the record: 6 compute pipelines refused with `0x8007000E` plus the heap cap at 1,000,000 (wants 1,245,184) reproduces concerns raised in #829's environment discussion, and 27 of your 182 untranslated being `wave64 lanes > 64` matches the wave64 tail our side flags for NVIDIA hosts too. Written with an AI assistant.
Author
Owner

@⁠tike411 on GitHub · 2026-11-24 16:28 UTC · original

@⁠bittertea0323 The reference list is still available in r4tedx’s original comment. Expand “the 25 hashes” in section 2 for the shadow programs. Section 3 has the other five. All 30 are also below, one per line, for the offline comparison.

I rechecked the two RTX 5080 runs in our report. In both logs the two exposure hashes 23d507cbb6a22e86 and b0095eb50222e808 failed with an address not from a root parameter. Those are two candidates for your largest refusal class.

The same 18 tiled-shadow and 3 classify hashes gave different reasons across our builds. The #189 stack reported a cross-lane wave operation in divergent control flow. 92bc27b + #530 reported a wave64 group exceeding 64 threads. Matching on (stage, hash) first would preserve these cases despite the different messages. If you post your deduplicated stage/hash list, we can return the exact intersection. The reason per hash would also let us compare the failures.

30 reference compute hashes
191ecaed66eea3b1
65de113e23fa4fdd
be6ce5d849d51127
804b342cb4b9d1e9
ab5455fc6abb804f
922e1d0ee1e19a85
31d703207b51549a
240cb516c1af0bc3
1d44a723bdebbf27
ce79e9eba7ae0348
466ec41d3f9d24c0
20b78ee12ecdb57d
56f3bf2d9388e5a7
d7db57731ada919b
f133e35efed2a48a
fa0bd10a35bfef3c
b4b0427232707598
abd7a22106898c66
4b57ec4af6de25fe
0c028454b58543f0
eab96ed5d1684967
eae3498e6553afa8
67353810417f6c19
b8f3f7979d6bbc50
4e9b58cc637d9272
23d507cbb6a22e86
b0095eb50222e808
e535cfd7baac93b8
a7ea75e2653e54d1
0ea6fac38d096770

AI-assisted log comparison with OpenAI Codex on the tester’s machine.

**@⁠tike411** on GitHub · 2026-11-24 16:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137720330) @⁠bittertea0323 The reference list is still available in [r4tedx’s original comment](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). Expand “the 25 hashes” in section 2 for the shadow programs. Section 3 has the other five. All 30 are also below, one per line, for the offline comparison. I rechecked the two RTX 5080 runs in [our report](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). In **both** logs the two exposure hashes `23d507cbb6a22e86` and `b0095eb50222e808` failed with `an address not from a root parameter`. Those are two candidates for your largest refusal class. The same 18 tiled-shadow and 3 classify hashes gave different reasons across our builds. The #189 stack reported `a cross-lane wave operation in divergent control flow`. `92bc27b` + #530 reported a wave64 group exceeding 64 threads. Matching on `(stage, hash)` first would preserve these cases despite the different messages. If you post your deduplicated stage/hash list, we can return the exact intersection. The reason per hash would also let us compare the failures. <details><summary>30 reference compute hashes</summary> ```text 191ecaed66eea3b1 65de113e23fa4fdd be6ce5d849d51127 804b342cb4b9d1e9 ab5455fc6abb804f 922e1d0ee1e19a85 31d703207b51549a 240cb516c1af0bc3 1d44a723bdebbf27 ce79e9eba7ae0348 466ec41d3f9d24c0 20b78ee12ecdb57d 56f3bf2d9388e5a7 d7db57731ada919b f133e35efed2a48a fa0bd10a35bfef3c b4b0427232707598 abd7a22106898c66 4b57ec4af6de25fe 0c028454b58543f0 eab96ed5d1684967 eae3498e6553afa8 67353810417f6c19 b8f3f7979d6bbc50 4e9b58cc637d9272 23d507cbb6a22e86 b0095eb50222e808 e535cfd7baac93b8 a7ea75e2653e54d1 0ea6fac38d096770 ``` </details> AI-assisted log comparison with OpenAI Codex on the tester’s machine.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 16:28 UTC · original

@⁠hazben the fix is on testers/indirect-wave-dispatch now: head e234090, a fast-forward from a857b636.

e234090 bounds the split dispatch's budget loop. Each retry takes the value the last exchange returned, never a plain load, and after 1024 retries the record is refused. Tests at that head: the split-dispatch test (records and count copied on the GPU, counted and uncounted dispatches in one list, checked outputs and unchanged inputs) passes on the default adapter (RTX 5070) and in a run with WARP requested. The 6,000-record probe that hung the RTX 5070 has not been rerun against it.

The same push also brings the branch's other new commits:

  • translation of the title's single-stream geometry programs (all 195 validate offline);
  • loads at a buffer descriptor's base plus a constant;
  • a console-flow guard for groups of several console waves;
  • a mask-dword rule, which I reverted in the same push, so it changes nothing.

The title was not used in these tests.

AI-assisted

**@⁠r4tedx** on GitHub · 2026-11-24 16:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137720836) @⁠hazben the fix is on `testers/indirect-wave-dispatch` now: head `e234090`, a fast-forward from `a857b636`. `e234090` bounds the split dispatch's budget loop. Each retry takes the value the last exchange returned, never a plain load, and after 1024 retries the record is refused. Tests at that head: the split-dispatch test (records and count copied on the GPU, counted and uncounted dispatches in one list, checked outputs and unchanged inputs) passes on the default adapter (RTX 5070) and in a run with WARP requested. The 6,000-record probe that hung the RTX 5070 has not been rerun against it. The same push also brings the branch's other new commits: - translation of the title's single-stream geometry programs (all 195 validate offline); - loads at a buffer descriptor's base plus a constant; - a console-flow guard for groups of several console waves; - a mask-dword rule, which I reverted in the same push, so it changes nothing. The title was not used in these tests. AI-assisted
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-24 16:37 UTC · original

From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super). No game data involved.

Update: the copy-back and copy-into-title changes from the numbers above are now a PR, #1215 (copy back 1.5 s -> 0.13 s per world frame). The snapshot/compare on a persistent pool of copy threads is a follow-up on top of #440 + #497: https://github.com/LooperSalty/VIctory/tree/perf/copy-pool-stacked (see my comment on #497).

Testing tip for iterating: --console series-s gives about +50 % fps in the world (3.1-3.3 fps vs 2.0 on the same tree) with the same picture symptom, so it is a cheaper way to A/B changes. Leaving VICTORY_D3D12_DRED unset matters even more (it costs about 2.5x).

**@⁠LooperSalty** on GitHub · 2026-11-24 16:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7137966547) From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super). No game data involved. Update: the copy-back and copy-into-title changes from the numbers above are now a PR, #1215 (copy back 1.5 s -> 0.13 s per world frame). The snapshot/compare on a persistent pool of copy threads is a follow-up on top of #440 + #497: https://github.com/LooperSalty/VIctory/tree/perf/copy-pool-stacked (see my comment on #497). Testing tip for iterating: `--console series-s` gives about +50 % fps in the world (3.1-3.3 fps vs 2.0 on the same tree) with the same picture symptom, so it is a cheaper way to A/B changes. Leaving `VICTORY_D3D12_DRED` unset matters even more (it costs about 2.5x).
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-24 16:39 UTC · original

Linux/NVIDIA data point for the deduped-list request (#829's resolution landed; we're now running clean on Linux — stock DXVK 3.1.1 dxgi.dll is the key, details in #829).

Two runs on this rig (Proton 11.0 wine, self-built vkd3d-proton master d3d12/d3d12core, stock DXVK 3.1.1 dxgi, RTX 6000 Ada, same build b99f876b…, VICTORY_PRESENT_1440P=1): 240 s + 300 s, zero exceptions, frame 4096+/5500+, 30.0 fps steady, at the first-boot account-picker overlay (captured: correct legend text, letterboxed, stable).

Program refusals at our depth: none — no not converted/refused-shader lines in either log; everything the title asked for through the account-picker stage translated and validated. So our (stage, hash) list is empty so far; we don't reach the 182-program tail until the world asks (the pre-creation pair is the designed fallback, as established above).

Host-side refusals we do log (vkd3d-proton master on NVIDIA, counts over 240 s):

  • no host pipeline library: pipelines are not kept (once) — no pipeline cache on this host, cold-compiles throughout;
  • host view heap capped at 1000000 error=Invalid parameter. (0x80070057) count=1245184 (once) — same 1,000,000 cap as the Windows reports;
  • view the host does not allow unordered=true format=53 (repeated);
  • no host texture … width: 2560, height: 1440, format: 86 (the scene target, same refusal class MD5Visual cites on native).

Per LooperSalty's tips: VICTORY_D3D12_DRED unset for all runs above. We'll post the world-stage (stage, hash) refusals when scripted input carries the title into the prologue — capturing frames every ~15 s now, so a Linux picture-vs-black datapoint for this thread is close.

Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-24 16:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138017109) Linux/NVIDIA data point for the deduped-list request (#829's resolution landed; we're now running clean on Linux — stock DXVK 3.1.1 `dxgi.dll` is the key, details in #829). Two runs on this rig (Proton 11.0 wine, self-built vkd3d-proton master `d3d12/d3d12core`, stock DXVK 3.1.1 dxgi, RTX 6000 Ada, same build `b99f876b…`, `VICTORY_PRESENT_1440P=1`): 240 s + 300 s, **zero exceptions**, frame 4096+/5500+, 30.0 fps steady, at the first-boot account-picker overlay (captured: correct legend text, letterboxed, stable). **Program refusals at our depth: none** — no `not converted`/refused-shader lines in either log; everything the title asked for through the account-picker stage translated and validated. So our `(stage, hash)` list is empty so far; we don't reach the 182-program tail until the world asks (the pre-creation pair is the designed fallback, as established above). **Host-side refusals we do log** (vkd3d-proton master on NVIDIA, counts over 240 s): - `no host pipeline library: pipelines are not kept` (once) — no pipeline cache on this host, cold-compiles throughout; - `host view heap capped at 1000000 error=Invalid parameter. (0x80070057) count=1245184` (once) — same 1,000,000 cap as the Windows reports; - `view the host does not allow unordered=true format=53` (repeated); - `no host texture … width: 2560, height: 1440, format: 86` (the scene target, same refusal class MD5Visual cites on native). Per LooperSalty's tips: `VICTORY_D3D12_DRED` unset for all runs above. We'll post the world-stage `(stage, hash)` refusals when scripted input carries the title into the prologue — capturing frames every ~15 s now, so a Linux picture-vs-black datapoint for this thread is close. Written with an AI assistant.
Author
Owner

@⁠ghost on GitHub · 2026-11-24 16:40 UTC · original

AI-assisted (Claude Code). Measured on my own machine and my own 1.0.2.1 copy; counts only, no captures.

Some measurements on why the output stays zero, from an RTX 5080 (32-lane waves, view heap capped at 1,000,000), Windows 11 26300, Ryzen 7 9700X, 64 GB, Series X mode, diag build.

Tree. Not integration/testers: an older integration of main (the #414 set) plus #641, #413, #432, #439, #489, #500, #546, #591, and local changes named below. So read these as one more route, not as a run of the tester tree.

1. The lit scene target is exactly zero, not just the 4K output

The 2560x1440 R16G16B16A16_FLOAT target that tiled lighting draws into is all zero at the end of every world frame (no NaN, no infinities), while the G-buffer targets beside it hold the scene. A copy of that target taken right after each enabled tiled-lighting draw is zero too, so nothing clears it later. Everything downstream (upscale, composite) then has nothing to show, which would explain a zero 3840x2160 target without any of those passes being wrong.

2. Tiled lighting is drawn as rectangle lists placed by vertex number

VS_TiledLighting has no vertex buffer: tile = SV_VertexID / 3, corner = SV_VertexID % 3, 720 vertices per draw (240 tiles of a 20x12 grid), through ExecuteIndirect. expand_rects and the GPU expansion (#282, #346) make the fourth corner from vertex buffers, so these draws have nothing to expand. With #346's behaviour they ran with twice the vertices and vertex numbers the shader does not expect. I opened #1020 for this (a generated geometry stage completes the rectangle). Per enabled lighting draw, from a pipeline-statistics query around it:

draw geometry stage in → out after clipping pixel invocations
no-directional-light variant 240 → 480 120–140 740,000–900,000
directional-light variant 240 → 480 0 0

The indirect arguments of these draws are written by the CPU. About 90 material classes each have a draw; in the opening scene 4 have instance count 1 (standard and standard-wetness, each with and without directional light).

3. Albedo was zero for a separate reason: material textures read by direct heap index

The G-buffer albedo target was zero where geometry was drawn. The G-buffer pixel shaders load their texture descriptors from the resource heap at indices read from a material record (seven indices at a byte offset passed in a root constant, in the large material buffer). Those slots hold placed block-compressed textures. With #413 they were still not made when drawn: for 60 materials drawn late in the world, only the shared 4x4 defaults and one array had host views. My reading is that the sweep goes over all placed slots (about 67,000 here) in index order under the 4,096-texture cap, so it does not reach what the scene uses. Making the seven slots a material names when its draw is bound (a local hack tied to this record layout, not a PR) filled the albedo target: characters, ground, buildings, the picnic table. #641 was needed as well; without it partly streamed textures were skipped.

4. With 2 and 3 in, lighting still writes zero, and here is where it stops

  • The directional variant draws no tiles because its vertex stage keeps a tile only where a 20x12 R8_UNORM tile texture is non-zero. tiled_lighting:CS_ShadowRevealTiles writes that texture, and it is all zero.
  • Upstream of it: cascadeshadows_classify (3 compute programs) → shadowmask:CS_GenerateShadowMasks_* → CS_ShadowRevealTiles. The three cascadeshadows_classify programs are refused here with console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves.
  • Forcing that tile texture to read 1 (a diagnostic switch) makes the directional variant draw 40 tiles and run about 650,000 pixel invocations per frame. It still writes zero. So at least one more input is missing after the tile texture.
  • One candidate ruled out: the 16-byte buffer whose second value multiplies every lighting term at the end of the pixel stage holds [1.0, 1.0, 8.0, 0.125].
  • The no-directional variant shades about a fifth of the screen and writes zero as well. I have not traced which input makes it zero.

5. Three trees on this card

Offline, host compute pipelines created (victory translate --validate --pipelines) out of the 51 compute programs my tree still refuses in the world:

tree created
main ffe310e 0
integration/testers da605bc 8
try/wave64 71180ff, VICTORY_WAVE64_EMULATE=emulate (Agility exports off, Windows 11) 5

None creates the three cascadeshadows_classify pipelines. In the title, try/wave64 in emulate mode reached the world and logged 669 untranslated shaders and 633–1,031 draws per frame in a 3-minute run (cut short on my side, not by a device removal); my tree logs 126 and about 2,500. That 669 agrees with the 679 Proudnoob4 reported on #1086.

What I can offer

The two diagnostics behind sections 1 and 2 are small and I can open PRs for them if useful: a copy of a target taken right after a named pixel shader's draw, and a pipeline-statistics query around it. They answer "did this draw shade anything" in one run.

**@⁠ghost** on GitHub · 2026-11-24 16:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138022878) *AI-assisted (Claude Code). Measured on my own machine and my own 1.0.2.1 copy; counts only, no captures.* Some measurements on why the output stays zero, from an **RTX 5080** (32-lane waves, view heap capped at 1,000,000), Windows 11 26300, Ryzen 7 9700X, 64 GB, Series X mode, diag build. **Tree.** Not `integration/testers`: an older integration of `main` (the #414 set) plus #641, #413, #432, #439, #489, #500, #546, #591, and local changes named below. So read these as one more route, not as a run of the tester tree. ### 1. The lit scene target is exactly zero, not just the 4K output The 2560x1440 `R16G16B16A16_FLOAT` target that tiled lighting draws into is all zero at the end of every world frame (no NaN, no infinities), while the G-buffer targets beside it hold the scene. A copy of that target taken right after each enabled tiled-lighting draw is zero too, so nothing clears it later. Everything downstream (upscale, composite) then has nothing to show, which would explain a zero 3840x2160 target without any of those passes being wrong. ### 2. Tiled lighting is drawn as rectangle lists placed by vertex number `VS_TiledLighting` has no vertex buffer: tile = `SV_VertexID / 3`, corner = `SV_VertexID % 3`, 720 vertices per draw (240 tiles of a 20x12 grid), through `ExecuteIndirect`. `expand_rects` and the GPU expansion (#282, #346) make the fourth corner from vertex buffers, so these draws have nothing to expand. With #346's behaviour they ran with twice the vertices and vertex numbers the shader does not expect. I opened #1020 for this (a generated geometry stage completes the rectangle). Per enabled lighting draw, from a pipeline-statistics query around it: | draw | geometry stage in → out | after clipping | pixel invocations | |---|---|---|---| | no-directional-light variant | 240 → 480 | 120–140 | 740,000–900,000 | | directional-light variant | 240 → 480 | 0 | 0 | The indirect arguments of these draws are written by the CPU. About 90 material classes each have a draw; in the opening scene 4 have instance count 1 (standard and standard-wetness, each with and without directional light). ### 3. Albedo was zero for a separate reason: material textures read by direct heap index The G-buffer albedo target was zero where geometry was drawn. The G-buffer pixel shaders load their texture descriptors from the resource heap at indices read from a material record (seven indices at a byte offset passed in a root constant, in the large material buffer). Those slots hold placed block-compressed textures. With #413 they were still not made when drawn: for 60 materials drawn late in the world, only the shared 4x4 defaults and one array had host views. My reading is that the sweep goes over all placed slots (about 67,000 here) in index order under the 4,096-texture cap, so it does not reach what the scene uses. Making the seven slots a material names when its draw is bound (a local hack tied to this record layout, not a PR) filled the albedo target: characters, ground, buildings, the picnic table. #641 was needed as well; without it partly streamed textures were skipped. ### 4. With 2 and 3 in, lighting still writes zero, and here is where it stops - The directional variant draws no tiles because its vertex stage keeps a tile only where a 20x12 `R8_UNORM` tile texture is non-zero. `tiled_lighting:CS_ShadowRevealTiles` writes that texture, and it is all zero. - Upstream of it: `cascadeshadows_classify` (3 compute programs) → `shadowmask:CS_GenerateShadowMasks_*` → `CS_ShadowRevealTiles`. The three `cascadeshadows_classify` programs are refused here with *console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves*. - Forcing that tile texture to read 1 (a diagnostic switch) makes the directional variant draw 40 tiles and run about 650,000 pixel invocations per frame. It still writes zero. So at least one more input is missing after the tile texture. - One candidate ruled out: the 16-byte buffer whose second value multiplies every lighting term at the end of the pixel stage holds `[1.0, 1.0, 8.0, 0.125]`. - The no-directional variant shades about a fifth of the screen and writes zero as well. I have not traced which input makes it zero. ### 5. Three trees on this card Offline, host compute pipelines created (`victory translate --validate --pipelines`) out of the 51 compute programs my tree still refuses in the world: | tree | created | |---|---| | `main` `ffe310e` | 0 | | `integration/testers` `da605bc` | 8 | | `try/wave64` `71180ff`, `VICTORY_WAVE64_EMULATE=emulate` (Agility exports off, Windows 11) | 5 | None creates the three `cascadeshadows_classify` pipelines. In the title, `try/wave64` in emulate mode reached the world and logged 669 untranslated shaders and 633–1,031 draws per frame in a 3-minute run (cut short on my side, not by a device removal); my tree logs 126 and about 2,500. That 669 agrees with the 679 Proudnoob4 reported on #1086. ### What I can offer The two diagnostics behind sections 1 and 2 are small and I can open PRs for them if useful: a copy of a target taken right after a named pixel shader's draw, and a pipeline-statistics query around it. They answer "did this draw shade anything" in one run.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 16:45 UTC · original

@⁠r4tedx Two measurements on e18931c72af42e46 (CS_ComputeInfiniteRRIntensity), RTX 2080, same #189 Wave32 stack as above:

  1. Its 16-byte record is all zero. I added a diagnostic that reads a shader's UAV buffer from title memory when its dispatch is traced. In every traced world frame, the record was [0.0, 0.0, 0.0, 0.0] (raw words all 0x00000000), although the program runs every frame.
  2. A stand-in record doesn't light the scene. I skipped the program and wrote [1.0, 1.0, 1.0, 1.0] into the same buffer in title memory before each skipped dispatch. In the world dumps, every 2560x1440 R16G16B16A16_FLOAT (5 per frame) and R11G11B10_FLOAT (4 per frame) target is still exactly zero, and the presented frame is still black.

So on this card that record alone isn't what zeroes the HDR. One caveat: I wrote the stand-in to title memory and rely on VIctory's usual refresh of the GPU copy from title writes, which I haven't checked for this buffer.

Something else that fits "exactly zero, no NaN": the auto-exposure chain.

  • avgLuminanceCompute:ColorDownsampleInitCS (23d507cbb6a22e86) and ColorDownsampleCS (b0095eb50222e808) are refused here with an address not from a root parameter, and both are dropped every frame.
  • The rest of the chain runs: the depth-weighted histogram, ComputeAverageDepthWeightedLuminanceFromHistogramCS, ComputeLuxCompressionInfo.
  • If the lighting writes pre-exposed values, an exposure that starts at zero (or goes to zero from a zero average luminance) keeps the HDR at exactly zero from then on, sky included.

I'm reading those passes' outputs now and will report what they hold.

AI-assisted (Claude Code): the diagnostics, runs and analysis were automated. The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 16:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138156435) @⁠r4tedx Two measurements on `e18931c72af42e46` (CS_ComputeInfiniteRRIntensity), RTX 2080, same #189 Wave32 stack as above: 1. **Its 16-byte record is all zero.** I added a diagnostic that reads a shader's UAV buffer from title memory when its dispatch is traced. In every traced world frame, the record was `[0.0, 0.0, 0.0, 0.0]` (raw words all `0x00000000`), although the program runs every frame. 2. **A stand-in record doesn't light the scene.** I skipped the program and wrote `[1.0, 1.0, 1.0, 1.0]` into the same buffer in title memory before each skipped dispatch. In the world dumps, every 2560x1440 `R16G16B16A16_FLOAT` (5 per frame) and `R11G11B10_FLOAT` (4 per frame) target is still exactly zero, and the presented frame is still black. So on this card that record alone isn't what zeroes the HDR. One caveat: I wrote the stand-in to title memory and rely on VIctory's usual refresh of the GPU copy from title writes, which I haven't checked for this buffer. Something else that fits "exactly zero, no NaN": the auto-exposure chain. - `avgLuminanceCompute:ColorDownsampleInitCS` (`23d507cbb6a22e86`) and `ColorDownsampleCS` (`b0095eb50222e808`) are refused here with `an address not from a root parameter`, and both are dropped every frame. - The rest of the chain runs: the depth-weighted histogram, `ComputeAverageDepthWeightedLuminanceFromHistogramCS`, `ComputeLuxCompressionInfo`. - If the lighting writes pre-exposed values, an exposure that starts at zero (or goes to zero from a zero average luminance) keeps the HDR at exactly zero from then on, sky included. I'm reading those passes' outputs now and will report what they hold. *AI-assisted (Claude Code): the diagnostics, runs and analysis were automated. The hardware, title copy and runs are the user's.*
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-24 16:46 UTC · original

Linux reaches the menu system — clean renders. With scripted input (VICTORY_KEYS Enter cadence; --features diagnostics build + VICTORY_CAPTURE) the title walked from account picker to the in-game menus on Linux/Proton (same stack as our 240 s run above): the legal-notices page renders pixel-clean — selectable list, selection highlight bar, full copyright body text legible word-for-word, correct Xbox button prompts, no garbage:

linux-menu-frame-3300

(frame 3300, ~110 s in; 24 capture points from frame 1 on, account-picker overlay at 120, menus from ~900.)

After the menus, frame rate collapses at the prologue hand-off (capture point frame 4200+ never reached within 310 s) — consistent with the per-frame copy-back cost quantified above (1.5 s/frame) and addressed by #1215; that's our next test point. Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138178605) **Linux reaches the menu system — clean renders.** With scripted input (`VICTORY_KEYS` Enter cadence; `--features diagnostics` build + `VICTORY_CAPTURE`) the title walked from account picker to the in-game menus on Linux/Proton (same stack as our 240 s run above): the legal-notices page renders **pixel-clean** — selectable list, selection highlight bar, full copyright body text legible word-for-word, correct Xbox button prompts, no garbage: ![linux-menu-frame-3300](https://gist.githubusercontent.com/cobrajet302gt/62b2e2f930ba520e5efb0b7bfb1e678d/raw/frame-3300-linux-menu.png) (frame 3300, ~110 s in; 24 capture points from frame 1 on, account-picker overlay at 120, menus from ~900.) After the menus, frame rate collapses at the prologue hand-off (capture point frame 4200+ never reached within 310 s) — consistent with the per-frame copy-back cost quantified above (1.5 s/frame) and addressed by #1215; that's our next test point. Written with an AI assistant.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 16:53 UTC · original

@⁠NuraadGit thank you for measuring it. So the record is zero where the program is refused or runs split, and a stand-in does not light the scene: that takes e18931c72af42e46 off the top of the list, with your caveat about the refresh of the GPU copy noted.

On the exposure chain, one cross-check from this thread: in hazben's frames above (RTX 4070 SUPER, a branch with the #645 changes) both colour-downsample programs, 23d507cbb6a22e86 and b0095eb50222e808, translated and ran every frame, and every 2560x1440 float target was still exactly zero. So those two being dropped on your stack is real, but it is not sufficient on its own either. What an exposure that latched at zero would need is a look at the values the chain holds, which is what you are reading; the histogram and average-luminance outputs on a tree where the downsample runs would be the cleaner sample.

For the two programs themselves: offline they stop at an address not from a root parameter without the #645 changes (address tracing in resource tracking) and validate with them; I have not looked at which address shape it is. Those changes are on r4tedx testers/indirect-wave-dispatch and are on their way into integration/testers.

Putting this thread's measurements side by side, the lit target stays zero with each of these in place separately: the shadow tiled render (hazben), the exposure downsample (hazben), a stand-in for the intensity record (you), the rectangle geometry stage and the material textures (Gargalindis). What no run here has had yet is all of them together with the three shadow classify programs.

No title data in this comment beyond the hashes already posted above. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 16:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138362361) @⁠NuraadGit thank you for measuring it. So the record is zero where the program is refused or runs split, and a stand-in does not light the scene: that takes `e18931c72af42e46` off the top of the list, with your caveat about the refresh of the GPU copy noted. On the exposure chain, one cross-check from this thread: in hazben's frames above (RTX 4070 SUPER, a branch with the #645 changes) both colour-downsample programs, `23d507cbb6a22e86` and `b0095eb50222e808`, translated and ran every frame, and every 2560x1440 float target was still exactly zero. So those two being dropped on your stack is real, but it is not sufficient on its own either. What an exposure that latched at zero would need is a look at the values the chain holds, which is what you are reading; the histogram and average-luminance outputs on a tree where the downsample runs would be the cleaner sample. For the two programs themselves: offline they stop at `an address not from a root parameter` without the #645 changes (address tracing in resource tracking) and validate with them; I have not looked at which address shape it is. Those changes are on r4tedx `testers/indirect-wave-dispatch` and are on their way into `integration/testers`. Putting this thread's measurements side by side, the lit target stays zero with each of these in place separately: the shadow tiled render (hazben), the exposure downsample (hazben), a stand-in for the intensity record (you), the rectangle geometry stage and the material textures (Gargalindis). What no run here has had yet is all of them together with the three shadow classify programs. No title data in this comment beyond the hashes already posted above. AI-assisted.
Author
Owner

@⁠likecrank-dotcom on GitHub · 2026-11-24 15:22 UTC · original · edited 2026-11-24 16:54 UTC

RTX 5060 Ti 8 GB follow-up: Windows 11, Ryzen 5 3600, 32 GB, NVIDIA621.14, retail1.0.2.1, Series X. Windows TDR settings unchanged. No concurrent builds/GPU tests during title runs.

The shader/render baseline for these runs is mpDom d6897facd92d6dd7f1a0d5177cf84e3d95a4951b. Later local commits add optional input/capture/preview diagnostics; they do not repair normal final lighting.

Run/source Outcome
1440p fallback,8a814b5 Manually closed860.4s. Codex saw buildings, windows, balconies/cables and intro credits in the game window, noisy false colours and stretched triangles; intermittent black.
Repeat,ec83015 Self-terminated816.7s, title breakpoint+0x5149aec, Prestream, INSTANCE_LIST45000/45000. User screenshot shows recognisable doors; user confirms a couple of appearances alternating with black,1–2min before closure.
RTV-only presentation,99ce284 Self-terminated518.7s, same breakpoint/pool. Fifteen sampled final frames after world transition contain no readable scene; unsampled flashes not excluded. No later input after startup Enter presses.
cat4blep colour/depth preview port,b806ad8 Self-terminated610.7s, same breakpoint/pool, game frame1251, Paused Yes. User screenshots show poles, wires, tyres and a human model; Codex independently inspected presented-colour frame1866 with the model/street geometry and frame1855 with intro credits.
Same b806ad8 binary,PSO_WAIT_MS=5000 Self-terminated636.6s, same breakpoint/pool, game frame1571, Paused No, BUILDING22182/22500. User supplied multiple human models, including one with distinct flat skin/clothing colours, and explicitly identifies these as the introductory cutscene with no control.

The last two runs have no logged GPU removal. The wait override did not prevent the repeated pool/Prestream stop. Cache contents evolved, so their durations are not a controlled timing comparison. All these results still have no confirmed character control. W/right-stick diagnostic holds were released; frame changes alone may be cutscene motion or target selection.

Preview source: github.com/likecrank-dotcom/VIctory@b806ad8750 . Ported cat4blep519c2c0/45e524c over ec83015, retaining multi-plane compositor/depth twins/buffer states. Settings-only fixture without Player progress; loop limit32, NO_WATCHDOG=1, PREVIEW_SCENE_COLOR=1, PREVIEW_SCENE_DEPTH=1; PRESENT_1440P and DUMP_TARGETS disabled. The native black-frame probe remains before preview and may report black while the diagnostic window is visible. The settings fixture does not reliably skip legal setup; the transition must be observed.

New optional recorder: github.com/likecrank-dotcom/VIctory@ebb1077 . VICTORY_CAPTURE_PREVIEW=1 with VICTORY_CAPTURE folder archives each newly selected preview source after its present returns S_OK. It retains128 normalized, half-size RGB PNGs with matching sequence/source/present-frame/time/resource/format metadata. These are source previews before swap-chain resizing, separate from periodic final-frame captures. No additional GPU readback for this archive: it uses preview pixels already on the CPU. Existing GPU suite85 passed/0 failed/1 ignored; a separate129-update retention/PNG/metadata regression passed. Runtime check saved five readable menu-preview PNG/JSON pairs,0 archive errors; harness stopped at255.6s, still on legal setup. This checks the recorder, not world stability. Debug layer remains unavailable on this host.

No game assets, shader binaries, screenshots, raw dumps or full logs uploaded. AI-assisted: OpenAI Codex performed integration, builds, capture inspection and analysis; the hardware owner provided the explicitly identified screenshots and cutscene observations.

**@⁠likecrank-dotcom** on GitHub · 2026-11-24 15:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135920259) · edited 2026-11-24 16:54 UTC RTX 5060 Ti 8 GB follow-up: Windows 11, Ryzen 5 3600, 32 GB, NVIDIA621.14, retail1.0.2.1, Series X. Windows TDR settings unchanged. No concurrent builds/GPU tests during title runs. The shader/render baseline for these runs is mpDom d6897facd92d6dd7f1a0d5177cf84e3d95a4951b. Later local commits add optional input/capture/preview diagnostics; they do not repair normal final lighting. | Run/source | Outcome | | --- | --- | | 1440p fallback,8a814b5 | Manually closed860.4s. Codex saw buildings, windows, balconies/cables and intro credits in the game window, noisy false colours and stretched triangles; intermittent black. | | Repeat,ec83015 | Self-terminated816.7s, title breakpoint+0x5149aec, Prestream, INSTANCE_LIST45000/45000. User screenshot shows recognisable doors; user confirms a couple of appearances alternating with black,1–2min before closure. | | RTV-only presentation,99ce284 | Self-terminated518.7s, same breakpoint/pool. Fifteen sampled final frames after world transition contain no readable scene; unsampled flashes not excluded. No later input after startup Enter presses. | | cat4blep colour/depth preview port,b806ad8 | Self-terminated610.7s, same breakpoint/pool, game frame1251, Paused Yes. User screenshots show poles, wires, tyres and a human model; Codex independently inspected presented-colour frame1866 with the model/street geometry and frame1855 with intro credits. | | Same b806ad8 binary,PSO_WAIT_MS=5000 | Self-terminated636.6s, same breakpoint/pool, game frame1571, Paused No, BUILDING22182/22500. User supplied multiple human models, including one with distinct flat skin/clothing colours, and explicitly identifies these as the introductory cutscene with no control. | The last two runs have no logged GPU removal. The wait override did not prevent the repeated pool/Prestream stop. Cache contents evolved, so their durations are not a controlled timing comparison. All these results still have **no confirmed character control**. W/right-stick diagnostic holds were released; frame changes alone may be cutscene motion or target selection. Preview source: https://github.com/likecrank-dotcom/VIctory/tree/b806ad875099c327edafd38f5540c4ae5bdf2f34 . Ported cat4blep519c2c0/45e524c over ec83015, retaining multi-plane compositor/depth twins/buffer states. Settings-only fixture without Player progress; loop limit32, NO_WATCHDOG=1, PREVIEW_SCENE_COLOR=1, PREVIEW_SCENE_DEPTH=1; PRESENT_1440P and DUMP_TARGETS disabled. The native black-frame probe remains before preview and may report black while the diagnostic window is visible. The settings fixture does not reliably skip legal setup; the transition must be observed. New optional recorder: https://github.com/likecrank-dotcom/VIctory/tree/ebb1077 . VICTORY_CAPTURE_PREVIEW=1 with VICTORY_CAPTURE folder archives each newly selected preview source after its present returns S_OK. It retains128 normalized, half-size RGB PNGs with matching sequence/source/present-frame/time/resource/format metadata. These are source previews before swap-chain resizing, separate from periodic final-frame captures. No additional GPU readback for this archive: it uses preview pixels already on the CPU. Existing GPU suite85 passed/0 failed/1 ignored; a separate129-update retention/PNG/metadata regression passed. Runtime check saved five readable menu-preview PNG/JSON pairs,0 archive errors; harness stopped at255.6s, still on legal setup. This checks the recorder, not world stability. Debug layer remains unavailable on this host. No game assets, shader binaries, screenshots, raw dumps or full logs uploaded. AI-assisted: OpenAI Codex performed integration, builds, capture inspection and analysis; the hardware owner provided the explicitly identified screenshots and cutscene observations.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 16:55 UTC · original

Follow-up on the exposure idea above: ruled out on this card. The passes that run write real values (first 16 bytes of each UAV buffer, from title memory, in the traced world frames):

  • ComputeLuxCompressionInfo (441d01cd75dc5d5d): [1.0, 1.0, 8.0, 0.125].
  • ComputeAverageDepthWeightedLuminanceFromHistogramCS (e622b718b6d9b057): [0.1, 0.2, -3.3219, 1.0]. -3.3219 is log2(0.1), which looks like a luminance floor (the HDR it measures is zero).

So the exposure isn't zero, and a pre-exposure multiply can't explain exactly-zero HDR.

That leaves the lighting setup from my table above as the better fit here. In the traced frame these are all dropped:

  • tiled_lighting:CS_MaterialTilesInitial (bad01f53, 160x90x1);
  • CS_ClusterLightsWorldSpace (d3e5b737);
  • CS_PrescalarizeLightLoop (11eeb27c);
  • shader_binning_utils:CS_GenerateShaderBinOffsets (8dd8d739, 6 dispatches).

If no tiles are classified, the tiled lighting pass shades nothing, and its target keeps its clear value: exactly 0.0, sky included, no NaN. The first, second and fourth validate on #439 (offline), so a #439 stack with JMAN730's descriptor fixes is my next title run. 11eeb27c is refused on both stacks (a descriptor's address or format read as data).

AI-assisted (Claude Code): the diagnostics and runs were automated. The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 16:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138416641) Follow-up on the exposure idea above: **ruled out on this card.** The passes that run write real values (first 16 bytes of each UAV buffer, from title memory, in the traced world frames): - `ComputeLuxCompressionInfo` (`441d01cd75dc5d5d`): `[1.0, 1.0, 8.0, 0.125]`. - `ComputeAverageDepthWeightedLuminanceFromHistogramCS` (`e622b718b6d9b057`): `[0.1, 0.2, -3.3219, 1.0]`. -3.3219 is log2(0.1), which looks like a luminance floor (the HDR it measures is zero). So the exposure isn't zero, and a pre-exposure multiply can't explain exactly-zero HDR. That leaves the lighting setup from my table above as the better fit here. In the traced frame these are all dropped: - `tiled_lighting:CS_MaterialTilesInitial` (`bad01f53`, `160x90x1`); - `CS_ClusterLightsWorldSpace` (`d3e5b737`); - `CS_PrescalarizeLightLoop` (`11eeb27c`); - `shader_binning_utils:CS_GenerateShaderBinOffsets` (`8dd8d739`, 6 dispatches). If no tiles are classified, the tiled lighting pass shades nothing, and its target keeps its clear value: exactly 0.0, sky included, no NaN. The first, second and fourth validate on #439 (offline), so a #439 stack with JMAN730's descriptor fixes is my next title run. `11eeb27c` is refused on both stacks (`a descriptor's address or format read as data`). *AI-assisted (Claude Code): the diagnostics and runs were automated. The hardware, title copy and runs are the user's.*
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 17:04 UTC · original

@⁠NuraadGit the full hashes of the four, and where each stands offline for a 32-lane host on integration/testers (local copy of the shader archive, counts and reasons only):

program hash update 4 (2b1a569) update 9 (94e0ea5)
material tiles, initial bad01f53f53248e5 validates validates
light clustering, world space d3e5b737ea7cc150 validates validates
shader bin offsets 8dd8d739047fe557 validates validates
light-loop prescalarize 11eeb27c2d15980d validates a descriptor's address or format read as data

So the fourth is refused on our tree too now. The likely cause is upstream 3dd467c (a phi that only another read phi consumes is live): before it, a value without a DXIL form that reached a read through two joins was taken for dead and replaced by zero. On our tree a build with only that rule switched off got back every program lost when main was merged in, but I have not confirmed it for this one program, and I have not disassembled it yet. Whether it really reads that descriptor word, or the join only carries a leftover, is what I am looking at next.

The same change costs the tree 147 programs since update 4 in my count (108 a lane mask read as data, 20 the first half of an interpolation, the rest descriptor and scalar-memory reads as data): mostly the skinned ped and transform mesh programs and the deferred ped and vehicle pixel programs. If those draws are dropped as untranslated programs are, a run on a current tree would show fewer characters in the G-buffer than one on update 4 or 5; that is an expectation from the count, not something I have seen in a frame.

AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 17:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138656007) @⁠NuraadGit the full hashes of the four, and where each stands offline for a 32-lane host on `integration/testers` (local copy of the shader archive, counts and reasons only): | program | hash | update 4 (`2b1a569`) | update 9 (`94e0ea5`) | |---|---|---|---| | material tiles, initial | `bad01f53f53248e5` | validates | validates | | light clustering, world space | `d3e5b737ea7cc150` | validates | validates | | shader bin offsets | `8dd8d739047fe557` | validates | validates | | light-loop prescalarize | `11eeb27c2d15980d` | validates | `a descriptor's address or format read as data` | So the fourth is refused on our tree too now. The likely cause is upstream `3dd467c` (a phi that only another read phi consumes is live): before it, a value without a DXIL form that reached a read through two joins was taken for dead and replaced by zero. On our tree a build with only that rule switched off got back every program lost when `main` was merged in, but I have not confirmed it for this one program, and I have not disassembled it yet. Whether it really reads that descriptor word, or the join only carries a leftover, is what I am looking at next. The same change costs the tree 147 programs since update 4 in my count (108 `a lane mask read as data`, 20 `the first half of an interpolation`, the rest descriptor and scalar-memory reads as data): mostly the skinned ped and transform mesh programs and the deferred ped and vehicle pixel programs. If those draws are dropped as untranslated programs are, a run on a current tree would show fewer characters in the G-buffer than one on update 4 or 5; that is an expectation from the count, not something I have seen in a frame. AI-assisted.
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 17:05 UTC · original

Recorded result from AMD/Wine, including a working target selector, since the earlier AMD data here only confirmed the 1440p scene exists.

Setup: RX 9060 XT (RDNA4, RADV 26.3.1), Arch, Wine 11.22, DXVK 3.1.1 dxgi, vkd3d-proton 3.2.0; r4tedx integration/testers @da605bc, diag build, VICTORY_SHADER_LOOP_LIMIT=32; package 1.0.2.1, blake3 b99f876b…; VICTORY_CAPTURE + VICTORY_DUMP_TARGETS=1 at frames 1500–2200.

At frame 1800 there are 8 candidate 2560×1440 colour targets (formats 28/29/87/91). Sampling every 64 px:

first-write order format resource mean
0–5 28 various 3–12
6 87 0x18466c9820 160.6
7 28 0x184a6322b0 166.2

The 3840×2160 f28 target and the presented frame-1800 are both mean 0.0, as you reported.

The branch's VICTORY_PRESENT_1440P picks the latest target, which on this run was a G-buffer/normal target (normals/character on screen, mean ~72), not the scene. I added a local selector by first-write order (VICTORY_PRESENT_1440P_INDEX) and presenting candidate #7 (f28) puts the world on screen: presented mean 144.9, with terrain/road, a motorcycle and a character — the same scene target your dumps show.

Two caveats from the A/B:

  • selecting by resource address does not survive a new run (same address gave a black frame);
  • selecting by format alone is not enough (87 → normals/personage).

So a content probe (or a stable first-write index) plus the #211 compositor looks like the way to make the fallback usable. Not tested: Windows, other frames/builds, longer sessions (world is 0.2 fps and hits #774). No game screenshots attached.

**@⁠DaviTostes** on GitHub · 2026-11-24 17:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138681170) Recorded result from **AMD/Wine**, including a working target selector, since the earlier AMD data here only confirmed the 1440p scene exists. **Setup:** RX 9060 XT (RDNA4, RADV 26.3.1), Arch, Wine 11.22, DXVK 3.1.1 `dxgi`, vkd3d-proton 3.2.0; r4tedx `integration/testers` @`da605bc`, diag build, `VICTORY_SHADER_LOOP_LIMIT=32`; package 1.0.2.1, blake3 `b99f876b…`; `VICTORY_CAPTURE` + `VICTORY_DUMP_TARGETS=1` at frames 1500–2200. **At frame 1800 there are 8 candidate 2560×1440 colour targets** (formats 28/29/87/91). Sampling every 64 px: | first-write order | format | resource | mean | |---:|---:|---|---:| | 0–5 | 28 | various | 3–12 | | **6** | **87** | `0x18466c9820` | **160.6** | | **7** | **28** | `0x184a6322b0` | **166.2** | The 3840×2160 `f28` target and the presented `frame-1800` are both mean 0.0, as you reported. **The branch's `VICTORY_PRESENT_1440P` picks the *latest* target**, which on this run was a G-buffer/normal target (normals/character on screen, mean ~72), not the scene. I added a local selector by **first-write order** (`VICTORY_PRESENT_1440P_INDEX`) and presenting candidate **#7** (f28) puts the world on screen: presented mean **144.9**, with terrain/road, a motorcycle and a character — the same scene target your dumps show. Two caveats from the A/B: - selecting by **resource address** does not survive a new run (same address gave a black frame); - selecting by **format alone** is not enough (87 → normals/personage). So a content probe (or a stable first-write index) plus the #211 compositor looks like the way to make the fallback usable. Not tested: Windows, other frames/builds, longer sessions (world is 0.2 fps and hits #774). No game screenshots attached.
Author
Owner

@⁠awab128 on GitHub · 2026-11-24 17:07 UTC · original

RTX 4060 Laptop (8 GB, 32-lane waves): e18931c72af42e46 really translated (no stand-in), and three of the light-setup programs running; HDR targets still exactly zero

Two data points for @⁠NuraadGit's and @⁠r4tedx's latest, from a tree where these programs run rather than being skipped. Both point the same way: still zero.

Machine: RTX 4060 Laptop 8 GB, driver 32.0.16.2135, i9-13900HX, 32 GB, Windows 11 26300. Own copy of 1.0.2.1.

Tree: r4tedx integration/testers update 7 (7288907) + #783 (61474f6) + #878 (7ab94ab) + PR #953 (c42cbb0) + #916 (8cb0222), plus the change below. Diagnostics build, VICTORY_SHADER_LOOP_LIMIT=32, no VICTORY_PRESENT_1440P, no DRED, VICTORY_DUMP_TARGETS=1.

1. CS_ComputeInfiniteRRIntensity translated, not stood in

This removes the caveat about the GPU copy's refresh. e18931c72af42e46 has threads: [32, 1, 1]: a wave64 program with no upper half. On a 32-lane host I let such programs take the console flow without halves: one host wave is the whole console wave, wave_size 32. Before, they stopped with a whole-wave section of a wave64 on a host without 64-lane waves. The whole-wave reduction is exact: the console's pattern (s_or_saveexec_b64 -1, v_cndmask with the identity on inactive lanes, DPP + permlanex16, v_readlane … 32) adds the identity for the absent upper lanes.

  • Offline (--host-lanes 32-32, whole archive), exactly three programs change outcome, all from refused to emitted: CS_ComputeInfiniteRRIntensity, LuminanceFromHDRBinkCS (8ab9a11c) and ShallowWaterSim:CS_GenerateDisturbOverlappingPairs. Compute goes 2297 → 2300, and nothing else moves.
  • Both lighting programs validate and get pipelines on the RTX 4060.
  • A GPU test next to whole_wave_sections_in_partial_groups_still_stop (48 threads still stops) gives exact 32- and 20-thread whole-wave sums on the RTX 4060.
  • In the world, e18931c72af42e46 gets a host pipeline and is bound from frame 1699 on.

The change is one local commit; I can put it on a fork if it is useful.

2. The light-setup programs from NuraadGit's list, on this tree

program hash here
material tiles, initial bad01f53f53248e5 translated, bound
light clustering, world space d3e5b737ea7cc150 translated, bound
shader bin offsets 8dd8d739047fe557 translated, bound
light-loop prescalarize 11eeb27c2d15980d refused: a descriptor's address or format read as data
colour downsample (exposure) 23d507cbb6a22e86, b0095eb50222e808 refused: an address not from a root parameter

Result

Targets were dumped every 10 frames from frame 1700 to 1840 (15 frames, sampled every 4 px):

target per frame max value non-zero
2560x1440 f10 (R16G16B16A16_FLOAT) 4-5 0 0 %
2560x1440 f26 (R11G11B10_FLOAT) 3-5 0 0 %
1280x720 f26 6-9 0 0 %
3840x2160 f28 (output) 1-2 2 / 255 27-42 %

So with the intensity record written by the real program, and with material tiles, light clustering and shader bins running, the lit targets are still exactly zero.

In the same run these are still refused:

  • 11eeb27c2d15980d (prescalarize);
  • the two colour downsamples;
  • the RT producers (559d9f0184e15fe3, 17829ac71aab4e8d, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f, 32ed072b9f845048);
  • 39f0e9aeb156a61c;
  • the three classify programs (0c028454b58543f0, eae3498e6553afa8, b8f3f7979d6bbc50).

Of NuraadGit's light-setup four, that leaves prescalarize as the one not yet run alongside the others.

Counts, hashes and pixel statistics only; no game data attached. AI-assisted (Claude Code); builds and runs on my machine.

**@⁠awab128** on GitHub · 2026-11-24 17:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138712553) **RTX 4060 Laptop (8 GB, 32-lane waves): `e18931c72af42e46` really translated (no stand-in), and three of the light-setup programs running; HDR targets still exactly zero** Two data points for @⁠NuraadGit's and @⁠r4tedx's latest, from a tree where these programs run rather than being skipped. Both point the same way: still zero. **Machine:** RTX 4060 Laptop 8 GB, driver 32.0.16.2135, i9-13900HX, 32 GB, Windows 11 26300. Own copy of 1.0.2.1. **Tree:** r4tedx `integration/testers` update 7 (`7288907`) + #783 (`61474f6`) + #878 (`7ab94ab`) + PR #953 (`c42cbb0`) + #916 (`8cb0222`), plus the change below. Diagnostics build, `VICTORY_SHADER_LOOP_LIMIT=32`, no `VICTORY_PRESENT_1440P`, no DRED, `VICTORY_DUMP_TARGETS=1`. ### 1. `CS_ComputeInfiniteRRIntensity` translated, not stood in This removes the caveat about the GPU copy's refresh. `e18931c72af42e46` has `threads: [32, 1, 1]`: a wave64 program with no upper half. On a 32-lane host I let such programs take the console flow *without* halves: one host wave is the whole console wave, `wave_size` 32. Before, they stopped with `a whole-wave section of a wave64 on a host without 64-lane waves`. The whole-wave reduction is exact: the console's pattern (`s_or_saveexec_b64 -1`, `v_cndmask` with the identity on inactive lanes, DPP + `permlanex16`, `v_readlane … 32`) adds the identity for the absent upper lanes. - Offline (`--host-lanes 32-32`, whole archive), exactly three programs change outcome, all from refused to emitted: `CS_ComputeInfiniteRRIntensity`, `LuminanceFromHDRBinkCS` (`8ab9a11c`) and `ShallowWaterSim:CS_GenerateDisturbOverlappingPairs`. Compute goes 2297 → 2300, and nothing else moves. - Both lighting programs validate and get pipelines on the RTX 4060. - A GPU test next to `whole_wave_sections_in_partial_groups_still_stop` (48 threads still stops) gives exact 32- and 20-thread whole-wave sums on the RTX 4060. - In the world, `e18931c72af42e46` gets a host pipeline and is bound from frame 1699 on. The change is one local commit; I can put it on a fork if it is useful. ### 2. The light-setup programs from NuraadGit's list, on this tree | program | hash | here | |---|---|---| | material tiles, initial | `bad01f53f53248e5` | translated, bound | | light clustering, world space | `d3e5b737ea7cc150` | translated, bound | | shader bin offsets | `8dd8d739047fe557` | translated, bound | | light-loop prescalarize | `11eeb27c2d15980d` | refused: `a descriptor's address or format read as data` | | colour downsample (exposure) | `23d507cbb6a22e86`, `b0095eb50222e808` | refused: `an address not from a root parameter` | ### Result Targets were dumped every 10 frames from frame 1700 to 1840 (15 frames, sampled every 4 px): | target | per frame | max value | non-zero | |---|---|---|---| | 2560x1440 f10 (R16G16B16A16_FLOAT) | 4-5 | 0 | 0 % | | 2560x1440 f26 (R11G11B10_FLOAT) | 3-5 | 0 | 0 % | | 1280x720 f26 | 6-9 | 0 | 0 % | | 3840x2160 f28 (output) | 1-2 | 2 / 255 | 27-42 % | So with the intensity record written by the real program, and with material tiles, light clustering and shader bins running, the lit targets are still exactly zero. In the same run these are still refused: - `11eeb27c2d15980d` (prescalarize); - the two colour downsamples; - the RT producers (`559d9f0184e15fe3`, `17829ac71aab4e8d`, `a1b20bc47e3c9597`, `afeea48bbb9913ad`, `e8c962358d862e3f`, `32ed072b9f845048`); - `39f0e9aeb156a61c`; - the three classify programs (`0c028454b58543f0`, `eae3498e6553afa8`, `b8f3f7979d6bbc50`). Of NuraadGit's light-setup four, that leaves prescalarize as the one not yet run alongside the others. Counts, hashes and pixel statistics only; no game data attached. AI-assisted (Claude Code); builds and runs on my machine.
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-24 17:10 UTC · original

RTX 4070 (12 GB, 32-lane waves), Windows 11, title 1.0.2.1. Diagnostics builds of main ffe310e plus the PRs below, one world run each (600 s limit, ~470–500 s in the world), VICTORY_SHADER_LOOP_LIMIT=64. Targets dumped 20/60/120 frames after the world's first gather pass, plus a local writer trace (which command writes each 3840x2160 / 2560x1440 target, and whether it was recorded or dropped, and why). Dumped float/10-bit targets are scaled by their largest value, so "white" in a PNG can be a near-black target; the values below are the real maxima.

Where the image is lost, step by step

Build 4070 pipelines refused Device removed Lighting accumulation (2560x1440 RGBA16F) 3840x2160 output
older local stack (before ffe310e, root-SRV and view fixes; for reference) 138 no (8 min) near zero flat grey + lens flare
+ #493 + #439 (with #223/#233/#320) + #116 + #876, and the first commit of #1019 0 yes, 3–7 s after CS_ComputeHitDetectionSkinnedResults (eeed82b877b44b5f) first binds, in that dispatch 0.0 (180 of 181 tiled-lighting draws dropped) near black + subtitles
same without #876 0 yes, same place same same
+ #984 + #1019 0 no (499 s in the world; the pass ran from its first bind to the end of the run, 5–6 min) 0.0 lit streaks
+ #949 0 no 0.0 (dynamic-slot drops 151 → 8; #688 instead: 210, no gain) —
+ #949 + #346 0 no exactly 0.0 with all 181 writers recorded dark
+ #949 + #282 0 no not lit; the draws are recorded (0 drops) dark
+ #949 + #1020 0 no exactly 0.0; 633 VS_TiledLighting + TL_PS_* draws recorded, topology 17, no vertex buffer, full viewport light grey + horizon glow

What each step showed:

  1. On this stack #876 does not change this picture: the G-buffer is already full without it, and the device removal happens with and without it. (It may matter on other cards or trees; this is only the 4070 here.)
  2. #984 + #1019 remove the hang in CS_ComputeHitDetectionSkinnedResults on the 4070. Without #984 the same stack hangs in that dispatch every run.
  3. Dynamic descriptor slots: with 2^16 dynamic slots under NVIDIA's 1,000,000 cap the tiled lighting and several composite passes are dropped ("no dynamic descriptor slots for its tables"). #949 removes almost all of those drops here; #688 does not.
  4. Indirect rectangle lists (#255): after #949 the remaining 180 tiled-lighting draws drop as "rectangle topology (an indirect draw is not expanded)". #346, #282 and #1020 all get them recorded, with 0 drops.
  5. The lighting target still stays zero, with every tiled-lighting draw recorded. The upscale path itself works: PS_TAA2_SpatialUpscaleWithDithering reads the 2560x1440 composite and reproduces it at 3840x2160; the composite is already dark (max 58/1023).

Still open on this card (all have owners)

  • deferred_lighting:CS_ComputeInfiniteRRIntensity (e18931c72af42e46): refused on the #439 stack ("a whole-wave section of a wave64 on a host without 64-lane waves"); #189 translates it. Forcing its record does not light the scene (NuraadGit, above).
  • 43 wave64 programs in groups of more than 64 threads, including all 18 cascadeshadows_rendering:CS_ShadowRenderTiled* and the cascadeshadows_classify programs: not translated by #439, #189 or the wave64-emulation branch (the next step of the #439 line, per its description).
  • avgLuminanceCompute:ColorDownsampleInitCS / ColorDownsampleCS (23d507cbb6a22e86, b0095eb50222e808): "an address not from a root parameter" (the class #1198 addresses).

What the tiled-lighting draws read that nothing wrote (writer trace, main + the stack above + #1020)

With all 181–274 tiled-lighting draws recorded, the 2560x1440 lighting target stays exactly 0.0. Their inputs whose only writer this frame was dropped or untranslated:

Input Read by Its writer Why it does not run here
3 KB buffer all 180 TL_PS_* draws CS_LaserLightShadowRaytracing (32ed072b9f845048) "an address not from a root parameter"; with #1198 it also needs the #439 console flow (it keeps a per-wave stack of node + lane mask in VGPR lanes)
230 KB buffer 102 CS_ShadowRenderTiledMiscHairAlphaPPPC wave64 group of more than 64 threads
16-byte buffer 24 CS_ComputeInfiniteRRIntensity (e18931c72af42e46) wave64 whole-wave section (#189 translates it)
small buffer 6 CS_ScreenProbes_ActivateRays (39f0e9ae…) "a descriptor chosen by control flow"

The 20x12 R8 tile mask the directional variants read is exactly zero here too (as Gargalindis found), although on this stack the classify / reveal / shadow-mask passes are recorded; one classify pass (CS_ShadowTileBalanceRTCost) is dropped ("a descriptor read only as data"). No tiled-lighting draw reads the auto-exposure output.

Offline, at 32 lanes:

  • CS_LaserLightShadowRaytracing emits and validates with #439's stack + #1198. On main, #1198 alone and with #298, #1084, #660, #265 or #728's branch stops at "a lane mask holding lanes elsewhere read as data"; #269 / #878 get it to "a lane-mask join of an untracked mask".
  • avgLuminanceCompute:ColorDownsampleInitCS / ColorDownsampleCS emit and validate with #1198 + #1225 (s_getpc_b64 code table).
  • #1225 together with #1198 breaks CS_LaserLightShadowRaytracing again ("an address read from the first lane of a per-lane value"): #1225 reclassifies every address read through v_readfirstlane, including the BVH node address that #1198 accepted. Details in a review on #1225.

Next on this card: a world run with #1198 on top (it conflicts with this stack on the GPU side: draw.rs, descriptor/host.rs, HostHeap::raw_uav_at).

No game data in this comment; counts, shader names and hashes from local runs only.

**@⁠SantannaCarlos** on GitHub · 2026-11-24 17:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7138795121) RTX 4070 (12 GB, 32-lane waves), Windows 11, title 1.0.2.1. Diagnostics builds of `main` `ffe310e` plus the PRs below, one world run each (600 s limit, ~470–500 s in the world), `VICTORY_SHADER_LOOP_LIMIT=64`. Targets dumped 20/60/120 frames after the world's first gather pass, plus a local writer trace (which command writes each 3840x2160 / 2560x1440 target, and whether it was recorded or dropped, and why). Dumped float/10-bit targets are scaled by their largest value, so "white" in a PNG can be a near-black target; the values below are the real maxima. ## Where the image is lost, step by step | Build | 4070 pipelines refused | Device removed | Lighting accumulation (2560x1440 RGBA16F) | 3840x2160 output | |---|---|---|---|---| | older local stack (before `ffe310e`, root-SRV and view fixes; for reference) | 138 | no (8 min) | near zero | flat grey + lens flare | | + #493 + #439 (with #223/#233/#320) + #116 + #876, and the first commit of #1019 | 0 | yes, 3–7 s after `CS_ComputeHitDetectionSkinnedResults` (eeed82b877b44b5f) first binds, in that dispatch | 0.0 (180 of 181 tiled-lighting draws dropped) | near black + subtitles | | same without #876 | 0 | yes, same place | same | same | | + #984 + #1019 | 0 | **no** (499 s in the world; the pass ran from its first bind to the end of the run, 5–6 min) | 0.0 | lit streaks | | + #949 | 0 | no | 0.0 (dynamic-slot drops 151 → 8; #688 instead: 210, no gain) | — | | + #949 + #346 | 0 | no | **exactly 0.0** with all 181 writers recorded | dark | | + #949 + #282 | 0 | no | not lit; the draws are recorded (0 drops) | dark | | + #949 + #1020 | 0 | no | **exactly 0.0**; 633 `VS_TiledLighting` + `TL_PS_*` draws recorded, topology 17, no vertex buffer, full viewport | light grey + horizon glow | What each step showed: 1. **On this stack #876 does not change this picture:** the G-buffer is already full without it, and the device removal happens with and without it. (It may matter on other cards or trees; this is only the 4070 here.) 2. **#984 + #1019 remove the hang** in `CS_ComputeHitDetectionSkinnedResults` on the 4070. Without #984 the same stack hangs in that dispatch every run. 3. **Dynamic descriptor slots:** with 2^16 dynamic slots under NVIDIA's 1,000,000 cap the tiled lighting and several composite passes are dropped ("no dynamic descriptor slots for its tables"). #949 removes almost all of those drops here; #688 does not. 4. **Indirect rectangle lists (#255):** after #949 the remaining 180 tiled-lighting draws drop as "rectangle topology (an indirect draw is not expanded)". #346, #282 and #1020 all get them recorded, with 0 drops. 5. **The lighting target still stays zero**, with every tiled-lighting draw recorded. The upscale path itself works: `PS_TAA2_SpatialUpscaleWithDithering` reads the 2560x1440 composite and reproduces it at 3840x2160; the composite is already dark (max 58/1023). ## Still open on this card (all have owners) - `deferred_lighting:CS_ComputeInfiniteRRIntensity` (e18931c72af42e46): refused on the #439 stack ("a whole-wave section of a wave64 on a host without 64-lane waves"); #189 translates it. Forcing its record does not light the scene (NuraadGit, above). - 43 wave64 programs in groups of more than 64 threads, including all 18 `cascadeshadows_rendering:CS_ShadowRenderTiled*` and the `cascadeshadows_classify` programs: not translated by #439, #189 or the wave64-emulation branch (the next step of the #439 line, per its description). - `avgLuminanceCompute:ColorDownsampleInitCS` / `ColorDownsampleCS` (23d507cbb6a22e86, b0095eb50222e808): "an address not from a root parameter" (the class #1198 addresses). ## What the tiled-lighting draws read that nothing wrote (writer trace, `main` + the stack above + #1020) With all 181–274 tiled-lighting draws recorded, the 2560x1440 lighting target stays exactly 0.0. Their inputs whose only writer this frame was dropped or untranslated: | Input | Read by | Its writer | Why it does not run here | |---|---|---|---| | 3 KB buffer | all 180 `TL_PS_*` draws | `CS_LaserLightShadowRaytracing` (32ed072b9f845048) | "an address not from a root parameter"; with #1198 it also needs the #439 console flow (it keeps a per-wave stack of node + lane mask in VGPR lanes) | | 230 KB buffer | 102 | `CS_ShadowRenderTiledMiscHairAlphaPPPC` | wave64 group of more than 64 threads | | 16-byte buffer | 24 | `CS_ComputeInfiniteRRIntensity` (e18931c72af42e46) | wave64 whole-wave section (#189 translates it) | | small buffer | 6 | `CS_ScreenProbes_ActivateRays` (39f0e9ae…) | "a descriptor chosen by control flow" | The 20x12 R8 tile mask the directional variants read is exactly zero here too (as Gargalindis found), although on this stack the classify / reveal / shadow-mask passes are recorded; one classify pass (`CS_ShadowTileBalanceRTCost`) is dropped ("a descriptor read only as data"). No tiled-lighting draw reads the auto-exposure output. Offline, at 32 lanes: - `CS_LaserLightShadowRaytracing` emits and validates with #439's stack + #1198. On `main`, #1198 alone and with #298, #1084, #660, #265 or #728's branch stops at "a lane mask holding lanes elsewhere read as data"; #269 / #878 get it to "a lane-mask join of an untracked mask". - `avgLuminanceCompute:ColorDownsampleInitCS` / `ColorDownsampleCS` emit and validate with #1198 + #1225 (`s_getpc_b64` code table). - **#1225 together with #1198 breaks `CS_LaserLightShadowRaytracing` again** ("an address read from the first lane of a per-lane value"): #1225 reclassifies every address read through `v_readfirstlane`, including the BVH node address that #1198 accepted. Details in a review on #1225. Next on this card: a world run with #1198 on top (it conflicts with this stack on the GPU side: `draw.rs`, `descriptor/host.rs`, `HostHeap::raw_uav_at`). No game data in this comment; counts, shader names and hashes from local runs only.
Author
Owner

@⁠Doffi4 on GitHub · 2026-11-24 17:31 UTC · original

AI-assisted testing: I independently reproduced the single-plane swap-chain result on native Windows using the public follow-up head ea38ddfcbe08ea2df0d1ca112d4250f21e56a966 from mpDom/VIctory#1, with local test-only instrumentation.

Windows 11 25H2 x64, Rust 1.98.1, debug + diagnostics, VICTORY_PRESENT_1440P=1. Radeon 780M (32.0.32029.2010), GeForce RTX 5060 Laptop (32.0.16.2101) and WARP: 3 passed, 0 skipped, 0 failed.

I extended the branch's synthetic fallback test with two single-plane presents and read the actual DXGI back buffer before each flip. On every adapter the completed red target produced 2560×1440 RGBA [255, 0, 0, 255] in all 3,686,400 pixels. Presenting the same 3840×2160 primary again without a new candidate produced RGBA [0, 0, 0, 255] in all 8,294,400 pixels. Both DXGI Present calls returned S_OK. The existing fixture also exercised its reset-list, overlay and small-primary cases, but the new pixel assertions apply only to the single-plane pair.

This corroborates the Wine result on native Windows. No game files were used. The test does not identify the title pass that should write the 4K primary.

**@⁠Doffi4** on GitHub · 2026-11-24 17:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139335107) AI-assisted testing: I independently reproduced the single-plane swap-chain result on native Windows using the public follow-up head `ea38ddfcbe08ea2df0d1ca112d4250f21e56a966` from mpDom/VIctory#1, with local test-only instrumentation. Windows 11 25H2 x64, Rust 1.98.1, debug + diagnostics, `VICTORY_PRESENT_1440P=1`. Radeon 780M (32.0.32029.2010), GeForce RTX 5060 Laptop (32.0.16.2101) and WARP: 3 passed, 0 skipped, 0 failed. I extended the branch's synthetic fallback test with two single-plane presents and read the actual DXGI back buffer before each flip. On every adapter the completed red target produced 2560×1440 RGBA [255, 0, 0, 255] in all 3,686,400 pixels. Presenting the same 3840×2160 primary again without a new candidate produced RGBA [0, 0, 0, 255] in all 8,294,400 pixels. Both DXGI Present calls returned S_OK. The existing fixture also exercised its reset-list, overlay and small-primary cases, but the new pixel assertions apply only to the single-plane pair. This corroborates the [Wine result](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1143) on native Windows. No game files were used. The test does not identify the title pass that should write the 4K primary.
Author
Owner

@⁠ChruutvoLuzi on GitHub · 2026-11-24 17:32 UTC · original

A target pick that needs no index, from an RTX 4090 (driver 621.01, Windows 11 26200): r4tedx integration/testers update 9 (94e0ea5) with #1267 merged, diagnostics build, DRED off, VICTORY_PRESENT_1440P=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_NO_WATCHDOG=1.

On this tree the window went black a few minutes into the world, once frames reached about 4,700 draws. The fallback presents the last 2560x1440 colour target bound, and there that was an empty one, as in @⁠rocobalt1's recording and @⁠DaviTostes's table above.

I changed the pick to the 2560x1440 colour target with the most draws this frame. The draw path already loops over the bound render targets for every draw, mesh dispatch and indirect draw (prepare_for in draw.rs). There it now counts one draw for each candidate that is bound, and take_1440p_target presents the candidate with the highest count. Ties go to the last one bound, so a frame without draws behaves as before.

Over 13 minutes in the world with no device removal, it chose the same target in every frame except three stretches of 3 to 10 s, where the best candidate had 0 or 1 draws (black for those seconds). That target took about 1,750 to 2,000 of about 4,100 draws per frame. It shows objects in false colour (poles, power lines, a fence, a trash can, a car outline) but no ground or buildings. I had no target dump in this run, so I can't say whether it is the target DaviTostes found as #7. The pick needs no index per run and doesn't depend on resource addresses. Holding the previous pick while the best candidate has almost no draws should remove the black stretches; I haven't tried that yet.

The change (diagnostics builds only)
diff --git a/crates/victory-gpu/src/capture.rs b/crates/victory-gpu/src/capture.rs
index d9226db..24efc83 100644
--- a/crates/victory-gpu/src/capture.rs
+++ b/crates/victory-gpu/src/capture.rs
@@ -208,24 +208,56 @@ pub(crate) fn save_read_back(
 static TARGETS: std::sync::Mutex<Vec<(usize, std::sync::Arc<crate::resource::HostTexture>)>> =
     std::sync::Mutex::new(Vec::new());
 
-/// With `VICTORY_PRESENT_1440P` set: the latest `2560x1440` color render target
-/// (`f28`/`f29`/`f87`/`f91`) written during the current frame, substituted as
-/// plane 0 at present time when the title's `3840x2160` upscale pass outputs zero.
-static LAST_1440P: std::sync::Mutex<Option<std::sync::Arc<crate::resource::HostTexture>>> =
-    std::sync::Mutex::new(None);
+/// A `2560x1440` color render target bound this frame, with the draws made
+/// into it.
+type Candidate = (usize, std::sync::Arc<crate::resource::HostTexture>, u32);
+
+/// With `VICTORY_PRESENT_1440P` set: the `2560x1440` color render targets
+/// (`f28`/`f29`/`f87`/`f91`) bound during the current frame, the last bound
+/// at the end. The one with the most draws is substituted as plane 0 at
+/// present time when the title's `3840x2160` upscale pass outputs zero. (The
+/// last one bound is often a later pass's target, empty in the world.)
+static CANDIDATES_1440P: std::sync::Mutex<Vec<Candidate>> = std::sync::Mutex::new(Vec::new());
 
 fn present_1440p_on() -> bool {
     static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
     *ON.get_or_init(|| std::env::var_os("VICTORY_PRESENT_1440P").is_some())
 }
 
-/// Takes the latest `2560x1440` color render target noted this frame, if
-/// `VICTORY_PRESENT_1440P` is enabled.
+/// Counts a draw into the bound render targets `targets`, for
+/// `VICTORY_PRESENT_1440P`.
+pub(crate) fn note_draw(targets: &[usize]) {
+    if !present_1440p_on() || targets.is_empty() {
+        return;
+    }
+    let mut candidates = CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner());
+    for (resource, _, draws) in candidates.iter_mut() {
+        if targets.contains(resource) {
+            *draws += 1;
+        }
+    }
+}
+
+/// Takes the `2560x1440` color render target with the most draws this frame
+/// (the last bound of equals), if `VICTORY_PRESENT_1440P` is enabled.
 pub(crate) fn take_1440p_target() -> Option<std::sync::Arc<crate::resource::HostTexture>> {
+    use std::sync::atomic::{AtomicU32, AtomicUsize, Ordering::Relaxed};
     if !present_1440p_on() {
         return None;
     }
-    LAST_1440P.lock().unwrap_or_else(|e| e.into_inner()).take()
+    let candidates = std::mem::take(&mut *CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner()));
+    // `max_by_key` returns the last of equals.
+    let (resource, copy, draws) = candidates.into_iter().max_by_key(|&(_, _, n)| n)?;
+    static SHOWN: AtomicUsize = AtomicUsize::new(0);
+    static CHANGES: AtomicU32 = AtomicU32::new(0);
+    if SHOWN.swap(resource, Relaxed) != resource && CHANGES.fetch_add(1, Relaxed) < 32 {
+        tracing::info!(
+            resource = format_args!("{resource:#x}"),
+            draws,
+            "VICTORY_PRESENT_1440P: showing the 2560x1440 target with the most draws"
+        );
+    }
+    Some(copy)
 }
 
 fn dump_on() -> bool {
@@ -249,7 +281,12 @@ pub(crate) fn note_target(resource: crate::object::This) {
             && d.Height == 1440
             && matches!(d.Format.0, 28 | 29 | 87 | 91)
         {
-            *LAST_1440P.lock().unwrap_or_else(|e| e.into_inner()) = Some(copy);
+            let mut candidates = CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner());
+            let entry = match candidates.iter().position(|&(r, _, _)| r == resource as usize) {
+                Some(i) => candidates.remove(i),
+                None => (resource as usize, copy, 0),
+            };
+            candidates.push(entry);
         }
     }
     if !dump_on() || !listed(crate::queue::presented() + 1) {
diff --git a/crates/victory-gpu/src/draw.rs b/crates/victory-gpu/src/draw.rs
index 275f4c6..5865b30 100644
--- a/crates/victory-gpu/src/draw.rs
+++ b/crates/victory-gpu/src/draw.rs
@@ -626,6 +626,8 @@ impl State {
         if self.depth != 0 {
             crate::list::ensure_state(list, self.depth as This, DEPTH_WRITE);
         }
+        #[cfg(feature = "diagnostics")]
+        crate::capture::note_draw(&self.targets);
         true
     }
 

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 17:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139353851) A target pick that needs no index, from an RTX 4090 (driver 621.01, Windows 11 26200): r4tedx `integration/testers` update 9 (`94e0ea5`) with #1267 merged, diagnostics build, DRED off, `VICTORY_PRESENT_1440P=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_NO_WATCHDOG=1`. On this tree the window went black a few minutes into the world, once frames reached about 4,700 draws. The fallback presents the last 2560x1440 colour target bound, and there that was an empty one, as in @⁠rocobalt1's recording and @⁠DaviTostes's table above. I changed the pick to **the 2560x1440 colour target with the most draws this frame**. The draw path already loops over the bound render targets for every draw, mesh dispatch and indirect draw (`prepare_for` in `draw.rs`). There it now counts one draw for each candidate that is bound, and `take_1440p_target` presents the candidate with the highest count. Ties go to the last one bound, so a frame without draws behaves as before. Over 13 minutes in the world with no device removal, it chose the same target in every frame except three stretches of 3 to 10 s, where the best candidate had 0 or 1 draws (black for those seconds). That target took about 1,750 to 2,000 of about 4,100 draws per frame. It shows objects in false colour (poles, power lines, a fence, a trash can, a car outline) but no ground or buildings. I had no target dump in this run, so I can't say whether it is the target DaviTostes found as #7. The pick needs no index per run and doesn't depend on resource addresses. Holding the previous pick while the best candidate has almost no draws should remove the black stretches; I haven't tried that yet. <details><summary>The change (diagnostics builds only)</summary> ```diff diff --git a/crates/victory-gpu/src/capture.rs b/crates/victory-gpu/src/capture.rs index d9226db..24efc83 100644 --- a/crates/victory-gpu/src/capture.rs +++ b/crates/victory-gpu/src/capture.rs @@ -208,24 +208,56 @@ pub(crate) fn save_read_back( static TARGETS: std::sync::Mutex<Vec<(usize, std::sync::Arc<crate::resource::HostTexture>)>> = std::sync::Mutex::new(Vec::new()); -/// With `VICTORY_PRESENT_1440P` set: the latest `2560x1440` color render target -/// (`f28`/`f29`/`f87`/`f91`) written during the current frame, substituted as -/// plane 0 at present time when the title's `3840x2160` upscale pass outputs zero. -static LAST_1440P: std::sync::Mutex<Option<std::sync::Arc<crate::resource::HostTexture>>> = - std::sync::Mutex::new(None); +/// A `2560x1440` color render target bound this frame, with the draws made +/// into it. +type Candidate = (usize, std::sync::Arc<crate::resource::HostTexture>, u32); + +/// With `VICTORY_PRESENT_1440P` set: the `2560x1440` color render targets +/// (`f28`/`f29`/`f87`/`f91`) bound during the current frame, the last bound +/// at the end. The one with the most draws is substituted as plane 0 at +/// present time when the title's `3840x2160` upscale pass outputs zero. (The +/// last one bound is often a later pass's target, empty in the world.) +static CANDIDATES_1440P: std::sync::Mutex<Vec<Candidate>> = std::sync::Mutex::new(Vec::new()); fn present_1440p_on() -> bool { static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new(); *ON.get_or_init(|| std::env::var_os("VICTORY_PRESENT_1440P").is_some()) } -/// Takes the latest `2560x1440` color render target noted this frame, if -/// `VICTORY_PRESENT_1440P` is enabled. +/// Counts a draw into the bound render targets `targets`, for +/// `VICTORY_PRESENT_1440P`. +pub(crate) fn note_draw(targets: &[usize]) { + if !present_1440p_on() || targets.is_empty() { + return; + } + let mut candidates = CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner()); + for (resource, _, draws) in candidates.iter_mut() { + if targets.contains(resource) { + *draws += 1; + } + } +} + +/// Takes the `2560x1440` color render target with the most draws this frame +/// (the last bound of equals), if `VICTORY_PRESENT_1440P` is enabled. pub(crate) fn take_1440p_target() -> Option<std::sync::Arc<crate::resource::HostTexture>> { + use std::sync::atomic::{AtomicU32, AtomicUsize, Ordering::Relaxed}; if !present_1440p_on() { return None; } - LAST_1440P.lock().unwrap_or_else(|e| e.into_inner()).take() + let candidates = std::mem::take(&mut *CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner())); + // `max_by_key` returns the last of equals. + let (resource, copy, draws) = candidates.into_iter().max_by_key(|&(_, _, n)| n)?; + static SHOWN: AtomicUsize = AtomicUsize::new(0); + static CHANGES: AtomicU32 = AtomicU32::new(0); + if SHOWN.swap(resource, Relaxed) != resource && CHANGES.fetch_add(1, Relaxed) < 32 { + tracing::info!( + resource = format_args!("{resource:#x}"), + draws, + "VICTORY_PRESENT_1440P: showing the 2560x1440 target with the most draws" + ); + } + Some(copy) } fn dump_on() -> bool { @@ -249,7 +281,12 @@ pub(crate) fn note_target(resource: crate::object::This) { && d.Height == 1440 && matches!(d.Format.0, 28 | 29 | 87 | 91) { - *LAST_1440P.lock().unwrap_or_else(|e| e.into_inner()) = Some(copy); + let mut candidates = CANDIDATES_1440P.lock().unwrap_or_else(|e| e.into_inner()); + let entry = match candidates.iter().position(|&(r, _, _)| r == resource as usize) { + Some(i) => candidates.remove(i), + None => (resource as usize, copy, 0), + }; + candidates.push(entry); } } if !dump_on() || !listed(crate::queue::presented() + 1) { diff --git a/crates/victory-gpu/src/draw.rs b/crates/victory-gpu/src/draw.rs index 275f4c6..5865b30 100644 --- a/crates/victory-gpu/src/draw.rs +++ b/crates/victory-gpu/src/draw.rs @@ -626,6 +626,8 @@ impl State { if self.depth != 0 { crate::list::ensure_state(list, self.depth as This, DEPTH_WRITE); } + #[cfg(feature = "diagnostics")] + crate::capture::note_draw(&self.targets); true } ``` </details> AI-assisted (Claude Code).
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 17:32 UTC · original

Native Windows, RX 9070 XT (RDNA4): the lighting-setup programs run and the HDR accumulation is still exactly zero

First RDNA4 data in this thread on native Windows (our earlier AMD data was Wine/vkd3d; the RX 6750 XT report here is RDNA2). Measurement only, no new theory.

Tree. The surviving stack from #59 — ffe310e + #452 + #431 + #67 + #584 + #493 (head 7bce296) — with #180 and #1084 merged on top (test head 450b889, both merge clean). Diagnostics build, debug layer + DRED + per-frame trace + target dumps at presented frames 1650/1750/1850. Two clean runs, 885 s and 468 s in-world at ~1 fps, zero device removals. 339 distinct shader refusals in the run.

Where the picture stands at world frame 1750 (target dumps, sampled):

  • The world is drawn: the 6-MRT g-buffer pass (2560x1440 f27/f28/f34) runs 150+ times and holds the scene, as do two dense 2560x1440 targets (f87 mean 136/255, f28 mean 152/255).
  • Every f10 (RGBA16F) target dump at 2560x1440 and 1280x720 is exactly zero — these dumps normalize float formats by their own maximum, so a non-zero maximum would have appeared as content. Zero means zero.
  • The presented 3840x2160 plane is black: mean 0.4/255, only HUD-like pixels.
  • Our frame-tail per-draw trace independently reproduces @⁠NuraadGit's pass identification: PS_TAA2_SpatialUpscaleWithDithering (pixel 4f4ec7b16673362f) reads a 2560x1440 f24 plus a placed 64x64 f56 LUT and writes the presented 4K target, and it runs every frame — never refused, never dropped. One difference from the RTX 2080 report: our two dumped 2560x1440 f24 targets are not near-zero (means 127/1023 and 72/1023, vs 0-4/1023 there).

The new datum. Per-shader translation lines from the same run, for the programs this thread has been chasing:

  • CS_MaterialTilesInitial bad01f53f53248e5 — translated, never dropped
  • CS_ClusterLightsWorldSpace d3e5b737ea7cc150 — translated, never dropped
  • CS_GenerateShaderBinOffsets 8dd8d739047fe557 — translated, never dropped
  • CS_ComputeInfiniteRRIntensity e18931c72af42e46 — translated, never dropped
  • CS_PrescalarizeLightLoop 11eeb27c2d15980d — refused: a descriptor's address or format read as data (the only one of the five not running here; matches r4tedx's update-9 offline status for it)
  • both composite passes 6318f669e4f17d65 and 4f4ec7b16673362f — translated.

So on a third machine family, with four of the five lighting-setup programs running and the RR record translated, the HDR accumulation is still exactly zero — consistent with @⁠awab128's NVIDIA negative rather than with the dropped-setup-programs explanation. Our remaining in-world refusal set is the lane-mask and SGPR-address families, not lighting setup: the zero-HDR cause, if it is a refused shader, is not among the programs this thread has eliminated so far.

AI-assisted (Hermes Agent). Counts, hashes and pixel statistics only; no game assets attached.

**@⁠KingKaom** on GitHub · 2026-11-24 17:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139359204) **Native Windows, RX 9070 XT (RDNA4): the lighting-setup programs run and the HDR accumulation is still exactly zero** First RDNA4 data in this thread on native Windows (our earlier AMD data was Wine/vkd3d; the RX 6750 XT report here is RDNA2). Measurement only, no new theory. **Tree.** The surviving stack from [#59](https://git.gtahub.st/github/Marvisak--VIctory/issues/59) — `ffe310e` + #452 + #431 + #67 + #584 + #493 (head `7bce296`) — with #180 and #1084 merged on top (test head `450b889`, both merge clean). Diagnostics build, debug layer + DRED + per-frame trace + target dumps at presented frames 1650/1750/1850. Two clean runs, 885 s and 468 s in-world at ~1 fps, zero device removals. 339 distinct shader refusals in the run. **Where the picture stands at world frame 1750 (target dumps, sampled):** - The world is drawn: the 6-MRT g-buffer pass (2560x1440 f27/f28/f34) runs 150+ times and holds the scene, as do two dense 2560x1440 targets (f87 mean 136/255, f28 mean 152/255). - Every f10 (RGBA16F) target dump at 2560x1440 and 1280x720 is **exactly zero** — these dumps normalize float formats by their own maximum, so a non-zero maximum would have appeared as content. Zero means zero. - The presented 3840x2160 plane is black: mean 0.4/255, only HUD-like pixels. - Our frame-tail per-draw trace independently reproduces @⁠NuraadGit's pass identification: `PS_TAA2_SpatialUpscaleWithDithering` (pixel `4f4ec7b16673362f`) reads a 2560x1440 f24 plus a placed 64x64 f56 LUT and writes the presented 4K target, and it **runs every frame** — never refused, never dropped. One difference from the RTX 2080 report: our two dumped 2560x1440 f24 targets are not near-zero (means 127/1023 and 72/1023, vs 0-4/1023 there). **The new datum.** Per-shader translation lines from the same run, for the programs this thread has been chasing: - `CS_MaterialTilesInitial` `bad01f53f53248e5` — translated, never dropped - `CS_ClusterLightsWorldSpace` `d3e5b737ea7cc150` — translated, never dropped - `CS_GenerateShaderBinOffsets` `8dd8d739047fe557` — translated, never dropped - `CS_ComputeInfiniteRRIntensity` `e18931c72af42e46` — translated, never dropped - `CS_PrescalarizeLightLoop` `11eeb27c2d15980d` — refused: `a descriptor's address or format read as data` (the only one of the five not running here; matches r4tedx's update-9 offline status for it) - both composite passes `6318f669e4f17d65` and `4f4ec7b16673362f` — translated. So on a third machine family, with four of the five lighting-setup programs running and the RR record translated, the HDR accumulation is still exactly zero — consistent with @⁠awab128's NVIDIA negative rather than with the dropped-setup-programs explanation. Our remaining in-world refusal set is the lane-mask and SGPR-address families, not lighting setup: the zero-HDR cause, if it is a refused shader, is not among the programs this thread has eliminated so far. *AI-assisted (Hermes Agent). Counts, hashes and pixel statistics only; no game assets attached.*
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-24 17:35 UTC · original

Addendum, same 4070 setup, with #1198 on top of the stack above (#439 line, no #1225): CS_LaserLightShadowRaytracing now translates, runs before every tiled-lighting draw and writes the 3 KB buffer they all read, and the lighting target is still exactly 0.0. So that pass is not what keeps it dark here. What the tiled-lighting draws still read unwritten:

  • the directional variants draw no tiles: the 20x12 reveal mask they read stays zero, and the cascade-shadow chain that feeds it (CS_ShadowRenderTiled*, CS_ShadowUnifiedClearRaster) is refused here (wave64 in groups of more than 64 threads);
  • the other variants multiply by the 16-byte record from CS_ComputeInfiniteRRIntensity (not translated on the #439 stack; #189 translates it) and read the hair shadow buffer from CS_ShadowRenderTiledMiscHairAlphaPPPC (same refusal).

In this run #1198 also took the world from 0.5–0.6 to 0.2 fps on this card (one run).

**@⁠SantannaCarlos** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139419825) Addendum, same 4070 setup, with #1198 on top of the stack above (#439 line, no #1225): `CS_LaserLightShadowRaytracing` now translates, runs before every tiled-lighting draw and writes the 3 KB buffer they all read, and the lighting target is still exactly 0.0. So that pass is not what keeps it dark here. What the tiled-lighting draws still read unwritten: - the directional variants draw no tiles: the 20x12 reveal mask they read stays zero, and the cascade-shadow chain that feeds it (`CS_ShadowRenderTiled*`, `CS_ShadowUnifiedClearRaster`) is refused here (wave64 in groups of more than 64 threads); - the other variants multiply by the 16-byte record from `CS_ComputeInfiniteRRIntensity` (not translated on the #439 stack; #189 translates it) and read the hair shadow buffer from `CS_ShadowRenderTiledMiscHairAlphaPPPC` (same refusal). In this run #1198 also took the world from 0.5–0.6 to 0.2 fps on this card (one run).
Author
Owner

@⁠MichonGoddijn231849 on GitHub · 2026-11-24 17:39 UTC · original

The list of dropped and refused hashes from a world frame you asked for, plus what happened when I ran #645's shaders on an RTX 5080.

Setup: RTX 5080 16 GB (32-lane waves), driver 610.74, Ryzen 5 7600, 32 GB RAM, Windows 11 build 26200, retail 1.0.2.1. Diagnostics builds (--profile diag --features diagnostics).

1. Hashes from your section 2 and 3 that do not translate in a world run

Tree: mpDom's pr/present-1440p-fallback at d6897fa (your integration stack plus VICTORY_PRESENT_1440P), VICTORY_SHADER_LOOP_LIMIT=32. The world draws (street scene in the 2560x1440 targets, 1,300-1,800 draws per frame, about 1 fps); 111 shaders untranslated in total. 24 of your 30 are among them:

  • cascade-shadow tiled render, 18 of 19: 191ecaed66eea3b1 1d44a723bdebbf27 20b78ee12ecdb57d 240cb516c1af0bc3 31d703207b51549a 466ec41d3f9d24c0 56f3bf2d9388e5a7 65de113e23fa4fdd 804b342cb4b9d1e9 922e1d0ee1e19a85 ab5455fc6abb804f abd7a22106898c66 b4b0427232707598 be6ce5d849d51127 ce79e9eba7ae0348 d7db57731ada919b f133e35efed2a48a fa0bd10a35bfef3c
  • classify, 3 of 6: 0c028454b58543f0 b8f3f7979d6bbc50 eae3498e6553afa8
  • both families with console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves
  • exposure: 23d507cbb6a22e86, b0095eb50222e808 (an address not from a root parameter)
  • AA frame statistics: e535cfd7baac93b8 (an LDS write of bytes or halves)

2. With #645 (your testers/black-scene-u5-645) the three shaders translate, and the device is removed when they are first used

Merged onto d6897fa, 23d507cbb6a22e86, b0095eb50222e808 and e535cfd7baac93b8 translate (9 untranslated shaders at that point instead of 111). Their first bind is at frame ~2,390 on the story loading screen, and about 0.1 s later the device is removed with 0x887A0001 (DXGI_ERROR_INVALID_CALL), in every run.

The D3D12 debug layer (VICTORY_D3D12_DEBUG=1) names the call:

ID3D12Device::CreateUnorderedAccessView: The Dimensions of the View are invalid ... Assuming StructureByeStride 16,
FirstElement (value = 2600856) must be between 0 and the maximum offset of the Buffer, 11403263, inclusively.
With the current FirstElement, NumElements (value = 0) must be between 1 and 8802408, inclusively ...
ID3D12Device::RemoveDevice: ... DXGI_ERROR_INVALID_CALL

So a title descriptor of an empty range reaches CreateUnorderedAccessView with NumElements = 0. Leaving such views out in descriptor/host.rs (buffer_uav and, the same way, buffer_srv) fixes it here:

if buffer.NumElements == 0 {
    let first = buffer.FirstElement;
    once!(first, "unordered buffer view of zero elements left out");
    return None;
}

With that guard the run gets past the loading screen into the world (the guard fired once, first=2599336).

A bisect over testers/black-scene-u5-645 (with the launcher's run judged by "world reached" vs "device removed") first blamed 81284f4 (the s_buffer descriptor-data merge). That merge also makes shaders of this group translate and hits the same invalid call. d0e14cb (#645 on 6f1c30b, without the s_buffer merge) crashes the same way, so the zero-element view is the cause, not either merge.

3. With #645 merged, the wave64 mesh hang from #778 comes back

With the guard, about a minute into the world (opening credits) the device is removed with DXGI_ERROR_DEVICE_HUNG. DRED: list stopped at command 346 of 373, DispatchMesh 3, mesh 51ff151f75cd5759, pixel 7fe75645c406cac6 (the pair in #778's run A). d6897fa alone with the same VICTORY_SHADER_LOOP_LIMIT=32 does not hang there (about 6 minutes in the world). I didn't find which part of the #645 branch's base brings it back.

4. shader/wave-per-group does not merge onto d6897fa

About 80 conflict hunks across emit/lower.rs, emit/mod.rs, structure.rs and the tests (the other wave64 stack), so I could not run the tiled-shadow fix in the title.

Counts, hashes and log lines only; no game data. AI-assisted (Claude Code); the runs, logs and the debug-layer message are from my own machine.

**@⁠MichonGoddijn231849** on GitHub · 2026-11-24 17:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139514534) The list of dropped and refused hashes from a world frame you asked for, plus what happened when I ran #645's shaders on an RTX 5080. **Setup:** RTX 5080 16 GB (32-lane waves), driver 610.74, Ryzen 5 7600, 32 GB RAM, Windows 11 build 26200, retail 1.0.2.1. Diagnostics builds (`--profile diag --features diagnostics`). ### 1. Hashes from your section 2 and 3 that do not translate in a world run Tree: mpDom's `pr/present-1440p-fallback` at `d6897fa` (your integration stack plus `VICTORY_PRESENT_1440P`), `VICTORY_SHADER_LOOP_LIMIT=32`. The world draws (street scene in the 2560x1440 targets, 1,300-1,800 draws per frame, about 1 fps); 111 shaders untranslated in total. 24 of your 30 are among them: - cascade-shadow tiled render, 18 of 19: `191ecaed66eea3b1` `1d44a723bdebbf27` `20b78ee12ecdb57d` `240cb516c1af0bc3` `31d703207b51549a` `466ec41d3f9d24c0` `56f3bf2d9388e5a7` `65de113e23fa4fdd` `804b342cb4b9d1e9` `922e1d0ee1e19a85` `ab5455fc6abb804f` `abd7a22106898c66` `b4b0427232707598` `be6ce5d849d51127` `ce79e9eba7ae0348` `d7db57731ada919b` `f133e35efed2a48a` `fa0bd10a35bfef3c` - classify, 3 of 6: `0c028454b58543f0` `b8f3f7979d6bbc50` `eae3498e6553afa8` - both families with `console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves` - exposure: `23d507cbb6a22e86`, `b0095eb50222e808` (`an address not from a root parameter`) - AA frame statistics: `e535cfd7baac93b8` (`an LDS write of bytes or halves`) ### 2. With #645 (your `testers/black-scene-u5-645`) the three shaders translate, and the device is removed when they are first used Merged onto `d6897fa`, `23d507cbb6a22e86`, `b0095eb50222e808` and `e535cfd7baac93b8` translate (9 untranslated shaders at that point instead of 111). Their first bind is at frame ~2,390 on the story loading screen, and about 0.1 s later the device is removed with `0x887A0001` (DXGI_ERROR_INVALID_CALL), in every run. The D3D12 debug layer (`VICTORY_D3D12_DEBUG=1`) names the call: ``` ID3D12Device::CreateUnorderedAccessView: The Dimensions of the View are invalid ... Assuming StructureByeStride 16, FirstElement (value = 2600856) must be between 0 and the maximum offset of the Buffer, 11403263, inclusively. With the current FirstElement, NumElements (value = 0) must be between 1 and 8802408, inclusively ... ID3D12Device::RemoveDevice: ... DXGI_ERROR_INVALID_CALL ``` So a title descriptor of an empty range reaches `CreateUnorderedAccessView` with `NumElements = 0`. Leaving such views out in `descriptor/host.rs` (`buffer_uav` and, the same way, `buffer_srv`) fixes it here: ```rust if buffer.NumElements == 0 { let first = buffer.FirstElement; once!(first, "unordered buffer view of zero elements left out"); return None; } ``` With that guard the run gets past the loading screen into the world (the guard fired once, `first=2599336`). A bisect over `testers/black-scene-u5-645` (with the launcher's run judged by "world reached" vs "device removed") first blamed `81284f4` (the s_buffer descriptor-data merge). That merge also makes shaders of this group translate and hits the same invalid call. `d0e14cb` (#645 on `6f1c30b`, without the s_buffer merge) crashes the same way, so the zero-element view is the cause, not either merge. ### 3. With #645 merged, the wave64 mesh hang from #778 comes back With the guard, about a minute into the world (opening credits) the device is removed with `DXGI_ERROR_DEVICE_HUNG`. DRED: list stopped at command 346 of 373, `DispatchMesh` 3, mesh `51ff151f75cd5759`, pixel `7fe75645c406cac6` (the pair in #778's run A). `d6897fa` alone with the same `VICTORY_SHADER_LOOP_LIMIT=32` does not hang there (about 6 minutes in the world). I didn't find which part of the #645 branch's base brings it back. ### 4. `shader/wave-per-group` does not merge onto `d6897fa` About 80 conflict hunks across `emit/lower.rs`, `emit/mod.rs`, `structure.rs` and the tests (the other wave64 stack), so I could not run the tiled-shadow fix in the title. Counts, hashes and log lines only; no game data. AI-assisted (Claude Code); the runs, logs and the debug-layer message are from my own machine.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 17:42 UTC · original

@⁠MichonGoddijn231849 thank you, that is the run this branch needed and both failures are useful. What I can say to each from here:

2, the zero-element view. Agreed on the cause and on your reading of the bisect. The same guard is in integration/testers since update 9 (94e0ea5): buffer_srv and buffer_uav in descriptor/host.rs leave out a view of no elements (it came in with #193's later changes). testers/black-scene-u5-645 predates that and does not have it, so that branch should not be used for title runs as it stands; the #645 changes are being moved onto update 9, where the guard is already present.

3, the mesh hang. I can't locate this from here. Two facts that narrow it a little: mesh 51ff151f75cd5759 and pixel 7fe75645c406cac6 already validate offline on the tree without the #645 branch, so they are not newly translated by it, and the #645 commits themselves only touch address tracing for buffer accesses. The branch's base differs from d6897fa by more than #645, though: root arguments read from the spill table (#489), root UAVs as bounded tables (#294), indirect rectangle draws (#346), #704 and the scalar-buffer descriptor data. Each of those makes draws or dispatches run that were dropped before. If you have the time for one more point, testers/black-scene-u5 (903500f, without the scalar-buffer merge and without #645) against d6897fa would say whether it is in that first group. I have not reproduced it and will not claim a cause.

4, wave-per-group. It is not in integration/testers yet (update 9 is the head); it is being merged there now, on the tree's own wave64 stack, so the tiled-shadow programs should be testable from the tree rather than through a manual merge.

Your list in 1 matches the offline status exactly (18 of the 19 render programs, the three classify programs that are bound, the two exposure programs and the frame-statistics one), which is a good sign that the offline count describes what the title asks for.

No title data here beyond the hashes already in this thread. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 17:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139586267) @⁠MichonGoddijn231849 thank you, that is the run this branch needed and both failures are useful. What I can say to each from here: **2, the zero-element view.** Agreed on the cause and on your reading of the bisect. The same guard is in `integration/testers` since update 9 (`94e0ea5`): `buffer_srv` and `buffer_uav` in `descriptor/host.rs` leave out a view of no elements (it came in with #193's later changes). `testers/black-scene-u5-645` predates that and does not have it, so that branch should not be used for title runs as it stands; the #645 changes are being moved onto update 9, where the guard is already present. **3, the mesh hang.** I can't locate this from here. Two facts that narrow it a little: mesh `51ff151f75cd5759` and pixel `7fe75645c406cac6` already validate offline on the tree without the #645 branch, so they are not newly translated by it, and the #645 commits themselves only touch address tracing for buffer accesses. The branch's base differs from `d6897fa` by more than #645, though: root arguments read from the spill table (#489), root UAVs as bounded tables (#294), indirect rectangle draws (#346), #704 and the scalar-buffer descriptor data. Each of those makes draws or dispatches run that were dropped before. If you have the time for one more point, `testers/black-scene-u5` (`903500f`, without the scalar-buffer merge and without #645) against `d6897fa` would say whether it is in that first group. I have not reproduced it and will not claim a cause. **4, wave-per-group.** It is not in `integration/testers` yet (update 9 is the head); it is being merged there now, on the tree's own wave64 stack, so the tiled-shadow programs should be testable from the tree rather than through a manual merge. Your list in 1 matches the offline status exactly (18 of the 19 render programs, the three classify programs that are bound, the two exposure programs and the frame-statistics one), which is a good sign that the offline count describes what the title asks for. No title data here beyond the hashes already in this thread. AI-assisted.
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-24 17:58 UTC · original

@⁠r4tedx Native Windows Series S follow-up on the desktop RTX 5070 Ti (621.24, Windows 11 26300.9974, title 1.0.2.1). Diagnostics builds with loop cap 32, normal presentation, DRED off, and the same four culling hashes skipped as in my update 9 run.

  • 94e0ea5 + 05c7cbb. Six whole-wave tests passed. e18931c72af42e46 changed from refused to translated with a D3D12 compute PSO in the live title. At frame 1210 the credits and subtitle were visible over black. All three captured 720p/1080p RGB float targets (formats 10 and 26) had raw low/high of 0.0. The 18 bound tiled-render hashes and the three bound classify hashes from this thread were still refused. 11eeb27c2d15980d was still refused.
  • e234090 + f7db493 + 05c7cbb. Offline validation on the title archive emitted and validated 18 tiled-render programs. CS_ShadowUnifiedClearRaster still refused the multi-wave group. Two live runs, the second with the cache copied from the first, ended with title access violations at about 48 s and 45 s. Neither yielded a comparable mission frame.
  • Update 9 with the short-wave and multi-wave changes isolated. The 30 shader split tests and the synthetic indirect-argument test passed. One live run also ended with a title access violation at about 58 s, before capturing a comparable mission frame. The failing instruction alone does not locate the producer of the bad data.

AI-assisted (Codex and Claude). Statistics, revisions and shader identifiers only.

**@⁠SkillIssueXO** on GitHub · 2026-11-24 17:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7139966953) @⁠r4tedx Native Windows Series S follow-up on the desktop RTX 5070 Ti (621.24, Windows 11 26300.9974, title 1.0.2.1). Diagnostics builds with loop cap 32, normal presentation, DRED off, and the same four culling hashes skipped as in [my update 9 run](https://git.gtahub.st/github/Marvisak--VIctory/issues/293). - **`94e0ea5` + [`05c7cbb`](https://github.com/r4tedx/VIctory/commit/05c7cbb161f320e2fc25918a234c5978f86ed23a).** Six whole-wave tests passed. `e18931c72af42e46` changed from refused to translated with a D3D12 compute PSO in the live title. At frame 1210 the credits and subtitle were visible over black. All three captured 720p/1080p RGB float targets (formats 10 and 26) had raw low/high of 0.0. The 18 bound tiled-render hashes and the three bound classify hashes from this thread were still refused. `11eeb27c2d15980d` was still refused. - **[`e234090`](https://github.com/r4tedx/VIctory/commit/e2340906048d456972c6a7439143643688397432) + `f7db493` + `05c7cbb`.** Offline validation on the title archive emitted and validated 18 tiled-render programs. `CS_ShadowUnifiedClearRaster` still refused the multi-wave group. Two live runs, the second with the cache copied from the first, ended with title access violations at about 48 s and 45 s. Neither yielded a comparable mission frame. - **Update 9 with the short-wave and multi-wave changes isolated.** The 30 shader split tests and the synthetic indirect-argument test passed. One live run also ended with a title access violation at about 58 s, before capturing a comparable mission frame. The failing instruction alone does not locate the producer of the bad data. AI-assisted (Codex and Claude). Statistics, revisions and shader identifiers only.
Author
Owner

@⁠Rezwo on GitHub · 2026-11-24 18:01 UTC · original

@⁠SantannaCarlos, in your RTX 4070 trace the reveal pass was recorded but directional lighting still read an all-zero 20×12 mask. The CrossOver report also reports the upstream shadow masks are already zero on that build.

If you still have the 4070 trace, does it include one matching frame with the CS_ShadowRevealTiles dispatch and the first directional VS_TiledLighting draw that reads its output? A frame/submission number, matching output/read resource IDs, and whether the shadow mask input immediately before the dispatch and the 20×12 output immediately after it were zero would be enough, if those stats were captured. That would distinguish a zero upstream input from a nonzero input producing an empty tile mask on this build. No new run, full log, captures, or game files needed.

AI-assisted (Codex).

**@⁠Rezwo** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140057488) @⁠SantannaCarlos, in your [RTX 4070 trace](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) the reveal pass was recorded but directional lighting still read an all-zero 20×12 mask. The [CrossOver report](https://git.gtahub.st/github/Marvisak--VIctory/issues/1128) also reports the upstream shadow masks are already zero on that build. If you still have the 4070 trace, does it include one matching frame with the `CS_ShadowRevealTiles` dispatch and the first directional `VS_TiledLighting` draw that reads its output? A frame/submission number, matching output/read resource IDs, and whether the shadow mask input immediately before the dispatch and the 20×12 output immediately after it were zero would be enough, if those stats were captured. That would distinguish a zero upstream input from a nonzero input producing an empty tile mask on this build. No new run, full log, captures, or game files needed. AI-assisted (Codex).
Author
Owner

@⁠ghost on GitHub · 2026-11-24 18:09 UTC · original

AI-assisted (Claude Code). Same machine as my comment above (RTX 5080, 32-lane waves, Windows 11); counts only, no captures.

A non-zero lighting target on a 32-lane card. Follow-up to my comment above and to @⁠SantannaCarlos's list of what the tiled-lighting draws read unwritten.

Result

At the 21st world frame of the opening scene, the tiled-lighting pass's second render target (2560x1440, DXGI format 42, the packed light accumulation the pixel stage exports as mrt1) holds about 706,000 non-zero pixels (largest value 0.35 read as float): a walking figure and light on scene surfaces. It was exactly zero in every earlier run here.

What is still zero: the pass's first target (2560x1440 R16G16B16A16_FLOAT), also in copies taken right after each lighting draw, and the presented frame (black with film grain). So the scene is not lit on screen yet.

What it took, on top of the tree described above

  1. #1020 (rectangle lists placed by vertex number), so the tiled-lighting draws cover their tiles.
  2. Wave64 programs in groups of several console waves, on a 32-lane host. This is the class @⁠SantannaCarlos counted as 43 programs that #439, #189 and the emulation branch do not translate (cascadeshadows_classify, cascadeshadows_rendering:CS_ShadowRenderTiled*). A local extension of #439's console flow translates them: the two-dword exchange between the halves of one console wave becomes a bounded meeting per console wave (per half: two value slots by exchange parity, a post count, a gave-up flag; a half posts, then polls the other half's count atomically up to a limit). In such groups LDS is ordered by the program's own s_barrier. On my set of 130 containers that still failed, pipelines created went from 2 to 28, none lost; all 27 "more than 64 threads" refusals are gone.
  3. #469 (twin texture for depth targets with unordered access), ported by hand onto this tree, for the shadow maps the compute passes write.
  4. ds_bpermute_b32 in 32-lane halves (as #573) for shadowmask:CS_GenerateShadowMasks_Checkerboard_NoHair, and a constant-index form of the code-table address for the two avgLuminanceCompute programs (the class #1198 addresses).

What the chain does with all of that in

Per-frame pipeline statistics on the directional lighting variant (TL_PS_PBR_MATERIAL_STANDARD), 720 vertices in:

  • world frames 1–19: 0 primitives after clipping (the 20x12 reveal mask is still zero);
  • from frame 20: 6, then 84, then 120 triangles, up to 737,000 pixel invocations per frame.

It alternates frame by frame with the no-directional variant. I do not know yet whether that is the title or an instability on my side.

Host-side buffer contents along the chain at the third traced world frame (non-zero dwords in the first 64 KiB of each host copy): classification tile counts 23 of 50, raster list counts 4 of 375, the two shadow-mask buffers 13,376 and 16,384 of 16,384. One caution for anyone tracing this: counting in title memory misleads, because what compute writes is only there after copy-back. I first read these as all zero for that reason.

Limits, stated plainly

  • Unverified output. The meeting between halves is checked by 8 hand-assembled GPU tests (96, 128 and 192 threads, compared with CPU values: 64-bit mask counts, first-lane reads, waves looping different numbers of times, LDS across a barrier). Whether the title's classification data is right is not established; the accumulation is noisy.
  • Scheduling assumption. It depends on the driver running the host waves of a group side by side. On the 5080 the halves stayed in step in every test (the wait was only exercised with an artificial delay). A host that runs one wave to its end first would end every wait at the limit: wrong values, no hang.
  • Not covered: 3-D groups of more than 64 threads with exchanges; float sums across halves; four tests in valu_tests fail on this tree and I have not yet confirmed they failed before the change.
  • Slow. World frames take 12–20 s here with the cascade passes running: about 13,000 title buffer copies per frame each flush the refresh batch (20 GB of write-watch checks per frame in copystat).

Next on my side

The pass that should combine the accumulation into scene colour (PS_SSSResolve, 12 indirect rectangle draws with the D16S8 target whose stencil a compute pass writes). And porting item 2 onto #439's branch as a PR, once the four tests are accounted for.

**@⁠ghost** on GitHub · 2026-11-24 18:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140234581) *AI-assisted (Claude Code). Same machine as my comment above (RTX 5080, 32-lane waves, Windows 11); counts only, no captures.* **A non-zero lighting target on a 32-lane card.** Follow-up to my comment above and to @⁠SantannaCarlos's list of what the tiled-lighting draws read unwritten. ### Result At the 21st world frame of the opening scene, the tiled-lighting pass's **second** render target (2560x1440, DXGI format 42, the packed light accumulation the pixel stage exports as `mrt1`) holds about **706,000 non-zero pixels** (largest value 0.35 read as float): a walking figure and light on scene surfaces. It was exactly zero in every earlier run here. What is still zero: the pass's **first** target (2560x1440 `R16G16B16A16_FLOAT`), also in copies taken right after each lighting draw, and the presented frame (black with film grain). So the scene is not lit on screen yet. ### What it took, on top of the tree described above 1. **#1020** (rectangle lists placed by vertex number), so the tiled-lighting draws cover their tiles. 2. **Wave64 programs in groups of several console waves, on a 32-lane host.** This is the class @⁠SantannaCarlos counted as 43 programs that #439, #189 and the emulation branch do not translate (`cascadeshadows_classify`, `cascadeshadows_rendering:CS_ShadowRenderTiled*`). A local extension of #439's console flow translates them: the two-dword exchange between the halves of one console wave becomes a bounded meeting per console wave (per half: two value slots by exchange parity, a post count, a gave-up flag; a half posts, then polls the other half's count atomically up to a limit). In such groups LDS is ordered by the program's own `s_barrier`. On my set of 130 containers that still failed, pipelines created went from 2 to 28, none lost; all 27 "more than 64 threads" refusals are gone. 3. **#469** (twin texture for depth targets with unordered access), ported by hand onto this tree, for the shadow maps the compute passes write. 4. `ds_bpermute_b32` in 32-lane halves (as #573) for `shadowmask:CS_GenerateShadowMasks_Checkerboard_NoHair`, and a constant-index form of the code-table address for the two `avgLuminanceCompute` programs (the class #1198 addresses). ### What the chain does with all of that in Per-frame pipeline statistics on the directional lighting variant (`TL_PS_PBR_MATERIAL_STANDARD`), 720 vertices in: - world frames 1–19: 0 primitives after clipping (the 20x12 reveal mask is still zero); - from frame 20: 6, then 84, then 120 triangles, up to 737,000 pixel invocations per frame. It alternates frame by frame with the no-directional variant. I do not know yet whether that is the title or an instability on my side. Host-side buffer contents along the chain at the third traced world frame (non-zero dwords in the first 64 KiB of each host copy): classification tile counts 23 of 50, raster list counts 4 of 375, the two shadow-mask buffers 13,376 and 16,384 of 16,384. One caution for anyone tracing this: counting in **title memory** misleads, because what compute writes is only there after copy-back. I first read these as all zero for that reason. ### Limits, stated plainly - **Unverified output.** The meeting between halves is checked by 8 hand-assembled GPU tests (96, 128 and 192 threads, compared with CPU values: 64-bit mask counts, first-lane reads, waves looping different numbers of times, LDS across a barrier). Whether the title's classification data is *right* is not established; the accumulation is noisy. - **Scheduling assumption.** It depends on the driver running the host waves of a group side by side. On the 5080 the halves stayed in step in every test (the wait was only exercised with an artificial delay). A host that runs one wave to its end first would end every wait at the limit: wrong values, no hang. - **Not covered:** 3-D groups of more than 64 threads with exchanges; float sums across halves; four tests in `valu_tests` fail on this tree and I have not yet confirmed they failed before the change. - **Slow.** World frames take 12–20 s here with the cascade passes running: about 13,000 title buffer copies per frame each flush the refresh batch (20 GB of write-watch checks per frame in `copystat`). ### Next on my side The pass that should combine the accumulation into scene colour (`PS_SSSResolve`, 12 indirect rectangle draws with the D16S8 target whose stencil a compute pass writes). And porting item 2 onto #439's branch as a PR, once the four tests are accounted for.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 18:20 UTC · original

Native Windows RDNA4 (RX 9070 XT): the most-drawn 2560x1440 present gives this box its first visible world — unlit and sparse, but real

Running @⁠ChruutvoLuzi's draw-counting pick (VICTORY_PRESENT_1440P + present the target with the most draws) on our machine, on a different tree than the integration one: ffe310e + #452 + #431 + #67 + #584 + #493 + #180 + #1084 (diagnostics build). The cherry-pick onto this tree needs ~25 lines adapting its present hook to a single-plane present path (the branch assumes the multi-plane refactor).

Measured at world frames 1650/1750/1850 (three captures, camera advances between them):

  • The presented picture is a sparse false-colour world: lamp post, overhead wires, a bin, a sign, road markings, the moon. No ground, no buildings — the same object inventory as the RTX 4090 report. Without the knob the same frames present pure black (our measurement earlier today).
  • The pick took a target with 2,111 of ~3,978 draws in the frame. Of 15 pick-change prints, 2 chose a 0-draw target — the black stretches the patch author predicted; the hold-previous-pick refinement is not tested by this run.
  • Frame cost is untouched: 1.1 fps in-world (735 ms/frame preparing, copies 618 ms / 375 MB). The knob changes what is presented, not the cost, and not the lighting: the HDR accumulation behind this picture is still exactly zero (our measurement above).
  • The run died at 390 s in-world with this box's known device-removed family (0x887A0006, 28-list submission, same breadcrumb compute as our last two runs), zero page faults — the survival variance already reported on #59, nothing new there.

AI-assisted (Hermes Agent). Captures, counts and log lines only.

**@⁠KingKaom** on GitHub · 2026-11-24 18:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140495272) **Native Windows RDNA4 (RX 9070 XT): the most-drawn 2560x1440 present gives this box its first visible world — unlit and sparse, but real** Running @⁠ChruutvoLuzi's draw-counting pick (`VICTORY_PRESENT_1440P` + present the target with the most draws) on our machine, on a different tree than the integration one: `ffe310e` + #452 + #431 + #67 + #584 + #493 + #180 + #1084 (diagnostics build). The cherry-pick onto this tree needs ~25 lines adapting its present hook to a single-plane present path (the branch assumes the multi-plane refactor). Measured at world frames 1650/1750/1850 (three captures, camera advances between them): - The presented picture is a sparse false-colour world: lamp post, overhead wires, a bin, a sign, road markings, the moon. No ground, no buildings — the same object inventory as the RTX 4090 report. Without the knob the same frames present pure black (our measurement earlier today). - The pick took a target with 2,111 of ~3,978 draws in the frame. Of 15 pick-change prints, 2 chose a 0-draw target — the black stretches the patch author predicted; the hold-previous-pick refinement is not tested by this run. - Frame cost is untouched: 1.1 fps in-world (735 ms/frame preparing, copies 618 ms / 375 MB). The knob changes what is presented, not the cost, and not the lighting: the HDR accumulation behind this picture is still exactly zero (our measurement above). - The run died at 390 s in-world with this box's known device-removed family (`0x887A0006`, 28-list submission, same breadcrumb compute as our last two runs), zero page faults — the survival variance already reported on #59, nothing new there. *AI-assisted (Hermes Agent). Captures, counts and log lines only.*
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-24 18:11 UTC · original · edited 2026-11-24 18:22 UTC

Follow-up to my earlier run. On the same RTX 5070 Ti (621.24), title 1.0.2.1, native Series S, I added a trace that records the first completed D3D12 submission for each split-wave dispatch. The test build uses update 9 plus the isolated wave changes (local 5d93b88), loop cap 32, the same four culling skips, and normal presentation.

  • With multi-wave translation scoped to the shadow chain, all 18 previously refused tiled-render pipelines completed indirect GPU submissions at frames 1261–1272. The game window still showed subtitles over black after those submissions. The run reached its 270-second limit without a crash. The same instrumented binary with unrestricted multi-wave translation passed the earlier crash point and completed GPU submissions for 13 tiled-shadow pipelines. Near frame 1312 (~254 s), it hit a different CPU access violation at title RVA 0x507c493. The faulting lookup used 0xffffffff as a table index, loaded from the record the title was decoding. The earlier failure was a near-null read at title RVA 0x4f42240. The source of the invalid record and any connection to GPU work are still unverified.
  • The same binary with multi-wave splitting disabled dropped all 18 eligible pipelines and recorded zero split-wave submissions. It still crashed close to frame 1202 at about 202 s, with a title access violation at RVA 0x521501a reading a reserved, uncommitted address. This control shows that a title access violation can occur without any split-wave GPU work.
  • The remaining classify passes need shared workgroup state. Both CS_ShadowUnifiedClear* variants use 16×16×1 threads, 512 bytes of LDS and one group barrier. The raster count and result passes use 1024×1×1 threads, 3,584 bytes of LDS and two or three group barriers. As an independent compiler check, XCL at b7aa9f3 created RTX compute PSOs offline with wave64 splitting for both unified clears and the raster count/result pair. This verifies PSO creation only. It complements Gargalindis’s live workgroup-preserving result.

AI-assisted (Codex and Claude). Counts, shader identifiers and behavior only.

**@⁠SkillIssueXO** on GitHub · 2026-11-24 18:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140300757) · edited 2026-11-24 18:22 UTC Follow-up to [my earlier run](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). On the same RTX 5070 Ti (621.24), title 1.0.2.1, native Series S, I added a trace that records the first completed D3D12 submission for each split-wave dispatch. The test build uses update 9 plus the isolated wave changes (local 5d93b88), loop cap 32, the same four culling skips, and normal presentation. - With multi-wave translation scoped to the shadow chain, all 18 previously refused tiled-render pipelines completed indirect GPU submissions at frames 1261–1272. The game window still showed subtitles over black after those submissions. The run reached its 270-second limit without a crash. The same instrumented binary with unrestricted multi-wave translation passed the earlier crash point and completed GPU submissions for 13 tiled-shadow pipelines. Near frame 1312 (~254 s), it hit a different CPU access violation at title RVA `0x507c493`. The faulting lookup used `0xffffffff` as a table index, loaded from the record the title was decoding. The earlier failure was a near-null read at title RVA `0x4f42240`. The source of the invalid record and any connection to GPU work are still unverified. - The same binary with multi-wave splitting disabled dropped all 18 eligible pipelines and recorded zero split-wave submissions. It still crashed close to frame 1202 at about 202 s, with a title access violation at RVA `0x521501a` reading a reserved, uncommitted address. This control shows that a title access violation can occur without any split-wave GPU work. - The remaining classify passes need shared workgroup state. Both `CS_ShadowUnifiedClear*` variants use 16×16×1 threads, 512 bytes of LDS and one group barrier. The raster count and result passes use 1024×1×1 threads, 3,584 bytes of LDS and two or three group barriers. As an independent compiler check, XCL at `b7aa9f3` created RTX compute PSOs offline with wave64 splitting for both unified clears and the raster count/result pair. This verifies PSO creation only. It complements [Gargalindis’s live workgroup-preserving result](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). AI-assisted (Codex and Claude). Counts, shader identifiers and behavior only.
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-24 18:24 UTC · original

@⁠Rezwo yes, from the latest 4070 run (the stack in the addendum above plus r4tedx's wave-per-group branch and a local indirect-dispatch patch, so the cascade-shadow passes are recorded too). Title frame 2879, 20 frames after the world's first gather, everything below recorded:

  • command #5314, CS_ShadowRevealTilesInitial (5741294cf872ffb9), dispatch 160x90x1 in list 0x26711ce7130: reads the 2560x1440 R8 shadow mask (format 61, object 0x2688dcc9400, title 0xfd9b20000) and a 2560x1440 format-41 target (title 0x1069e50000); writes a 160x90 R8 UAV (object 0x2688dcd0a20, title 0x101bc40000).
  • command #5315, CS_ShadowRevealTiles (f11c3ddeaeb7d602), dispatch 20x12x1, same list: reads that 160x90; writes the 20x12 R8 UAV (object 0x2688dcd0340, title 0x101bc10000).
  • first directional tiled-lighting draw reading the 20x12: command #5323 (list 0x26705a9ed50, first command), indirect kind 0, VS_TiledLighting 25ebc92075b62822 with TL_PS_PBR_MATERIAL_STANDARD 1cd9bc634417a981.

All three resources (the 2560x1440 mask, the 160x90 and the 20x12) are zero in every pixel. Caveat: our dumps are taken at the end of the frame (at present), not right before and after each dispatch, so this does not separate the two cases strictly. What the trace adds: the 2560x1440 mask has 19 writers in that frame (one dropped); the last is #4889, CS_ShadowRenderTiledMiscHairAlphaPPPC (indirect, recorded), and on this stack the classification passes before them that use LDS and a group barrier (CS_ShadowUnifiedClearRaster, CS_CalcRasterClassificationListCounts, CS_WriteRasterClassificationResults) are still refused. So the upstream input being zero is the likelier case here.

**@⁠SantannaCarlos** on GitHub · 2026-11-24 18:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140607439) @⁠Rezwo yes, from the latest 4070 run (the stack in the addendum above plus r4tedx's wave-per-group branch and a local indirect-dispatch patch, so the cascade-shadow passes are recorded too). Title frame 2879, 20 frames after the world's first gather, everything below recorded: - command #5314, `CS_ShadowRevealTilesInitial` (5741294cf872ffb9), dispatch 160x90x1 in list `0x26711ce7130`: reads the 2560x1440 R8 shadow mask (format 61, object `0x2688dcc9400`, title `0xfd9b20000`) and a 2560x1440 format-41 target (title `0x1069e50000`); writes a 160x90 R8 UAV (object `0x2688dcd0a20`, title `0x101bc40000`). - command #5315, `CS_ShadowRevealTiles` (f11c3ddeaeb7d602), dispatch 20x12x1, same list: reads that 160x90; writes the 20x12 R8 UAV (object `0x2688dcd0340`, title `0x101bc10000`). - first directional tiled-lighting draw reading the 20x12: command #5323 (list `0x26705a9ed50`, first command), indirect kind 0, `VS_TiledLighting` 25ebc92075b62822 with `TL_PS_PBR_MATERIAL_STANDARD` 1cd9bc634417a981. All three resources (the 2560x1440 mask, the 160x90 and the 20x12) are zero in every pixel. Caveat: our dumps are taken at the end of the frame (at present), not right before and after each dispatch, so this does not separate the two cases strictly. What the trace adds: the 2560x1440 mask has 19 writers in that frame (one dropped); the last is #4889, `CS_ShadowRenderTiledMiscHairAlphaPPPC` (indirect, recorded), and on this stack the classification passes before them that use LDS and a group barrier (`CS_ShadowUnifiedClearRaster`, `CS_CalcRasterClassificationListCounts`, `CS_WriteRasterClassificationResults`) are still refused. So the upstream input being zero is the likelier case here.
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 18:27 UTC · original

@⁠Gargalindis, on your next step (PS_SSSResolve and the D16S8 target whose stencil a compute pass writes): we hit that class on an RTX 3060 Ti and have it working. I think it is also why the tiled lighting draws pass nowhere even after #1020.

What main does. resource.rs host_texture drops UAV use from any depth target. descriptor/host.rs then turns the title's UAV on it into a null view, so every compute write to a depth or stencil plane is lost. The log line view the host does not allow unordered=true format=53 flags=2 prints once per call site, so it is easy to miss. In a traced world frame on our tree, 5 dispatches write 4 depth-family textures through 6 UAV bindings. The one that matters is the 2560x1440 console 16-bit depth + stencil (title format 118, host D24S8):

  • GenerateMaterialMasks (f0c91b4d2578f5bf) and CS_MaterialTilesInitial (bad01f53f53248e5) write it through an R16_UNORM view of plane 0, the per-pixel material id, and through an R8 view of plane 1.
  • The tiled-lighting PSOs bind it as DSV with DepthEnable=1, DepthWriteMask=0, DepthFunc=EQUAL, StencilEnable=0. A lighting quad lands only where the depth equals its material id.

With the writes dropped, the depth stays at its clear value, EQUAL fails everywhere, and the lighting targets stay exactly 0.

Two pieces beyond #469 / qntic's stencil twin (those cover D16/D32 depth and the stencil plane, not plane 0 of a D16S8 on a D24S8 host):

  1. A 16-bit twin for plane 0. The title's R16 view writes the twin, and a full-screen SV_Depth pass moves it into the depth before the next DSV/SRV use, with a compute pass for the other direction.
  2. Precision. On the console the EQUAL test is 16-bit. On a D24 host, a quad whose z is off k/65535 by half a 24-bit step misses. A host test shows draws at (k+0.25)/65535 pass nowhere on D24S8 and everywhere on D16. So the console's 16-bit depth + stencil formats (118–120) become host D16 with the stencil in its own R8 texture: stencil views and clears go there, depth views drop READ_ONLY_STENCIL, and the twin is copied with CopyResource. Nothing in the lighting PSOs tests the stencil. A draw that does is logged once.

Measured on our tree (RTX 3060 Ti, VICTORY_LOCAL_DEPTH_UAV=1 VICTORY_LOCAL_D16_DEPTH=1):

  • all four depth UAV kinds are served (unordered access view of a depth target ... served="twin");
  • the material depth holds ids on geometry and 65535 on sky;
  • the indirect-diffuse / reflection-denoise 2560x1440 R11G11B10F target gets content for the first time: about 16–25% of pixels, where it was exactly 0 without the twins.

Direct lighting is still 0 here, for a reason upstream of all this: on our tree the mesh draws barely write the main depth. Its stencil is 99.7% written and its depth 0.3%, so GenerateMaterialMasks sees sky almost everywhere. Your tree may not have that problem. We're tracing it.

Code: lines9686-rgb/VIctory@depth-uav. It is on our integration stack, not on main. The relevant commits, in order:

  • 61e09fe (#469, AnoHunted), then ac2e1e8 and 2840bb8 (qntic's pub/depth-stencil-uav), authorship kept;
  • ours: 8fa69a4 (switch, logs, stencil dumps), ed6f17f (16-bit plane-0 twin + passes), 0b9a0f6 (host D16, stencil apart).

Each comes with host-GPU tests: compute writes through the title's views, then stencil-EQUAL / depth-EQUAL draws colour exactly the written texels, and they fail with the twins off. cargo test -p victory-gpu --lib passes, clippy -D warnings is clean both ways, and the debug layer is clean. Happy to port the three to main or onto #469 if that is more useful.

AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.

**@⁠lines9686-rgb** on GitHub · 2026-11-24 18:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140665335) @⁠Gargalindis, on your next step (`PS_SSSResolve` and the D16S8 target whose stencil a compute pass writes): we hit that class on an RTX 3060 Ti and have it working. I think it is also why the tiled lighting draws pass nowhere even after #1020. **What `main` does.** `resource.rs` `host_texture` drops UAV use from any depth target. `descriptor/host.rs` then turns the title's UAV on it into a null view, so every compute write to a depth or stencil plane is lost. The log line `view the host does not allow unordered=true format=53 flags=2` prints once per call site, so it is easy to miss. In a traced world frame on our tree, 5 dispatches write 4 depth-family textures through 6 UAV bindings. The one that matters is the 2560x1440 console 16-bit depth + stencil (title format 118, host D24S8): - `GenerateMaterialMasks` (`f0c91b4d2578f5bf`) and `CS_MaterialTilesInitial` (`bad01f53f53248e5`) write it through an R16_UNORM view of **plane 0**, the per-pixel material id, and through an R8 view of plane 1. - The tiled-lighting PSOs bind it as DSV with `DepthEnable=1, DepthWriteMask=0, DepthFunc=EQUAL, StencilEnable=0`. A lighting quad lands only where the depth equals its material id. With the writes dropped, the depth stays at its clear value, EQUAL fails everywhere, and the lighting targets stay exactly 0. **Two pieces beyond #469 / qntic's stencil twin** (those cover D16/D32 depth and the stencil plane, not plane 0 of a D16S8 on a D24S8 host): 1. **A 16-bit twin for plane 0.** The title's R16 view writes the twin, and a full-screen `SV_Depth` pass moves it into the depth before the next DSV/SRV use, with a compute pass for the other direction. 2. **Precision.** On the console the EQUAL test is 16-bit. On a D24 host, a quad whose z is off `k/65535` by half a 24-bit step misses. A host test shows draws at `(k+0.25)/65535` pass nowhere on D24S8 and everywhere on D16. So the console's 16-bit depth + stencil formats (118–120) become **host D16 with the stencil in its own R8 texture**: stencil views and clears go there, depth views drop READ_ONLY_STENCIL, and the twin is copied with `CopyResource`. Nothing in the lighting PSOs tests the stencil. A draw that does is logged once. **Measured on our tree** (RTX 3060 Ti, `VICTORY_LOCAL_DEPTH_UAV=1 VICTORY_LOCAL_D16_DEPTH=1`): - all four depth UAV kinds are served (`unordered access view of a depth target ... served="twin"`); - the material depth holds ids on geometry and 65535 on sky; - the indirect-diffuse / reflection-denoise 2560x1440 R11G11B10F target gets content for the first time: about 16–25% of pixels, where it was exactly 0 without the twins. Direct lighting is still 0 here, for a reason upstream of all this: on our tree the mesh draws barely write the main depth. Its stencil is 99.7% written and its depth 0.3%, so `GenerateMaterialMasks` sees sky almost everywhere. Your tree may not have that problem. We're tracing it. **Code:** [`lines9686-rgb/VIctory@depth-uav`](https://github.com/lines9686-rgb/VIctory/tree/depth-uav). It is on our integration stack, not on `main`. The relevant commits, in order: - `61e09fe` (#469, AnoHunted), then `ac2e1e8` and `2840bb8` (qntic's `pub/depth-stencil-uav`), authorship kept; - ours: `8fa69a4` (switch, logs, stencil dumps), `ed6f17f` (16-bit plane-0 twin + passes), `0b9a0f6` (host D16, stencil apart). Each comes with host-GPU tests: compute writes through the title's views, then stencil-EQUAL / depth-EQUAL draws colour exactly the written texels, and they fail with the twins off. `cargo test -p victory-gpu --lib` passes, clippy `-D warnings` is clean both ways, and the debug layer is clean. Happy to port the three to `main` or onto #469 if that is more useful. AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠ghost on GitHub · 2026-11-24 18:28 UTC · original

Correction to my comment above ("A non-zero lighting target on a 32-lane card"). The headline claim is wrong.

I said the tiled-lighting pass's second render target held about 706,000 non-zero pixels. I had matched that target by format and position in the dump, not from a trace of that run. A traced run of the same frames shows the lighting draws' actual pair of targets, and both are exactly zero:

  • every TL_PS_PBR_MATERIAL_STANDARD and TL_PS_NoDir_PBR_MATERIAL_STANDARD draw binds one 2560x1440 R16G16B16A16_FLOAT target and one 2560x1440 format-42 target;
  • at the 21st to 23rd world frames both read 0.0 in every pixel, including copies of the first one taken right after each draw.

The non-zero format-42 target I reported is a different 2560x1440 target of the same format, written by another pass that I have not identified. Its content varies a lot between runs (706,000 non-zero pixels in one, 912 in the next). So: no lit lighting target here either. I am sorry for the noise.

What in that comment still stands, re-checked against the traced run:

  • The directional variant does start drawing tiles on its own about 20 frames into the world (0 primitives after clipping before that; then 84–124 triangles and 600,000–770,000 pixel invocations in the frames where it draws), with #1020, the multi-wave exchange, #469 and the ds_bpermute_b32 lowering in.
  • Host-side contents along the cascade-shadow chain are non-zero (classification counts, both shadow-mask buffers).
  • The multi-wave translation numbers (2 → 28 pipelines on my 130-container set) and all the stated limits.

And one thing learned that may save others time: the lighting pipelines here have blending off, no stencil test, depth test EQUAL with depth writes off against a D24S8 view, and both targets written with mask 15. So when their pixel stage runs for hundreds of thousands of pixels and both targets stay zero, the pixel stage is exporting zeros (or every pixel fails the depth-equal test after the invocation is counted). I do not know which yet.

**@⁠ghost** on GitHub · 2026-11-24 18:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140705736) **Correction to my comment above ("A non-zero lighting target on a 32-lane card"). The headline claim is wrong.** I said the tiled-lighting pass's second render target held about 706,000 non-zero pixels. I had matched that target by format and position in the dump, not from a trace of that run. A traced run of the same frames shows the lighting draws' actual pair of targets, and **both are exactly zero**: - every `TL_PS_PBR_MATERIAL_STANDARD` and `TL_PS_NoDir_PBR_MATERIAL_STANDARD` draw binds one 2560x1440 `R16G16B16A16_FLOAT` target and one 2560x1440 format-42 target; - at the 21st to 23rd world frames both read 0.0 in every pixel, including copies of the first one taken right after each draw. The non-zero format-42 target I reported is a **different** 2560x1440 target of the same format, written by another pass that I have not identified. Its content varies a lot between runs (706,000 non-zero pixels in one, 912 in the next). So: no lit lighting target here either. I am sorry for the noise. What in that comment still stands, re-checked against the traced run: - The directional variant does start drawing tiles on its own about 20 frames into the world (0 primitives after clipping before that; then 84–124 triangles and 600,000–770,000 pixel invocations in the frames where it draws), with #1020, the multi-wave exchange, #469 and the `ds_bpermute_b32` lowering in. - Host-side contents along the cascade-shadow chain are non-zero (classification counts, both shadow-mask buffers). - The multi-wave translation numbers (2 → 28 pipelines on my 130-container set) and all the stated limits. And one thing learned that may save others time: the lighting pipelines here have **blending off, no stencil test, depth test EQUAL with depth writes off** against a D24S8 view, and both targets written with mask 15. So when their pixel stage runs for hundreds of thousands of pixels and both targets stay zero, the pixel stage is exporting zeros (or every pixel fails the depth-equal test after the invocation is counted). I do not know which yet.
Author
Owner

@⁠erLCoder on GitHub · 2026-11-24 18:29 UTC · original

Turing/Windows 10 reproduction of update 9, with the Present and HDR resources correlated by ID.

Setup. Physical GTX 1660 Ti (6 GiB, NVIDIA 581.42, WaveOps 32..32, SM 6.8), Windows 10 22H2 19045.6466, Agility SDK 1.620.2, title 1.0.2.1 in Series X mode. The archived control is the #189 stack at local 93bbf0eb4e4adbf30ee122a5dc15c93c3ec524f1. I built r4tedx's 94e0ea56d358495843511dc10250b88c629c2c77 with only the Agility exports, then ran the same revision with a local diagnostics port of #638 (baa7f4654d5078463569cf0d79c42875c86f5fc0), Present source logging following 9a10d7a, and raw half-float RGB counters. Both runs used DRED, loop limit 32 and the regular Present path. TDR settings were untouched. The trace used a copy of the first run's image cache and host PSO library.

Trace. Presents 12497, 12498 and 12527 each submitted one 3840×2160 RGBA8 plane. The game's 4f4ec7b16673362f upscale draw targeted the two alternating resources used for that plane. In recording order the draw targeted the other resource in frames 12498 and 12527, so I correlated the IDs across frames. Its 2560×1440 R10G10B10A2 input reached a raw RGB maximum of 0, 0 and 4 out of 1023 in those three captures. The 64×64 f56 LUT had data. Frame 12527 had subtitles/UI over a near-black image (mean RGB 0.77/255).

  • On this path the recorded writer of that f24 input was pixel 5970ee6dbc47ec61. It bound zero-RGB 2560×1440 and 1280×720 RGBA16F inputs in frame 12527. The full-size input was written by CS_TAA2_Resolve (df11dcd012cd7382), which itself bound a separate full-size RGBA16F input with 0 nonzero RGB components out of 11,059,200 and 0 non-finite values. A separate f28 G-buffer surface had data. This is end-of-frame readback; several commands write the upstream HDR surface.
  • The four #704 instance-culling PSOs listed in the update notes all recorded dispatches on this GPU. MaterialTilesInitial, ClusterLightsWorldSpace and GenerateShaderBinOffsets also recorded dispatches. For ClusterLightsWorldSpace, #638's tracker found an exact 640 KiB UAV/SRV range match to dropped compute efc24eb5fd16cf7a in the preceding traced frame. Range contents and the reason that PSO was unavailable are unverified.
  • The clean build refused 11eeb27c2d15980d on descriptor address/format read as data and e18931c72af42e46 on a whole-wave section on a 32-lane GPU. The trace identifies their attempted outputs as a 320×180 f42 UAV and a 16-byte buffer respectively. Their contribution to the zero HDR input still needs a producer/consumer readback.

Run bounds. 780 s clean and 1,050 s with tracing, both stopped at the configured limit, with zero recorded device removals or host PSO refusal warnings. In measurement windows with at least 200 executed draws/frame the clean run had median 2.61 s/frame and 1,049 combined drops/frame, and the trace had 3.53 s/frame and 463 drops/frame. The workload, cache and readback differ between the runs. Peak per-process dedicated GPU usage was 4,717 and 4,943 MiB respectively. There were 77 and 68 distinct shader translation refusals, with hundreds of PSOs still pending in both observation windows.

I also ran #1020 at 39e056afa921cfb74f770729428ab0155ad36a77 in its own worktree with test-only fail-fast checks for DXC and the NVIDIA LUID. Both synthetic tests ran. Adding the geometry stage changed coverage from 28 to 64 pixels in both 8×8 cases. This only confirms the synthetic rectangle case on this hardware.

Measured locally with Codex assistance. Figures, pass names and hashes only.

**@⁠erLCoder** on GitHub · 2026-11-24 18:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140724961) Turing/Windows 10 reproduction of update 9, with the Present and HDR resources correlated by ID. **Setup.** Physical GTX 1660 Ti (6 GiB, NVIDIA 581.42, WaveOps 32..32, SM 6.8), Windows 10 22H2 19045.6466, Agility SDK 1.620.2, title 1.0.2.1 in Series X mode. The archived control is the #189 stack at local `93bbf0eb4e4adbf30ee122a5dc15c93c3ec524f1`. I built r4tedx's `94e0ea56d358495843511dc10250b88c629c2c77` with only the Agility exports, then ran the same revision with a local diagnostics port of #638 (`baa7f4654d5078463569cf0d79c42875c86f5fc0`), Present source logging following `9a10d7a`, and raw half-float RGB counters. Both runs used DRED, loop limit 32 and the regular Present path. TDR settings were untouched. The trace used a copy of the first run's image cache and host PSO library. **Trace.** Presents 12497, 12498 and 12527 each submitted one 3840×2160 RGBA8 plane. The game's `4f4ec7b16673362f` upscale draw targeted the two alternating resources used for that plane. In recording order the draw targeted the other resource in frames 12498 and 12527, so I correlated the IDs across frames. Its 2560×1440 R10G10B10A2 input reached a raw RGB maximum of 0, 0 and 4 out of 1023 in those three captures. The 64×64 f56 LUT had data. Frame 12527 had subtitles/UI over a near-black image (mean RGB 0.77/255). * On this path the recorded writer of that f24 input was pixel `5970ee6dbc47ec61`. It bound zero-RGB 2560×1440 and 1280×720 RGBA16F inputs in frame 12527. The full-size input was written by `CS_TAA2_Resolve` (`df11dcd012cd7382`), which itself bound a separate full-size RGBA16F input with 0 nonzero RGB components out of 11,059,200 and 0 non-finite values. A separate f28 G-buffer surface had data. This is end-of-frame readback; several commands write the upstream HDR surface. * The four #704 instance-culling PSOs listed in the update notes all recorded dispatches on this GPU. MaterialTilesInitial, ClusterLightsWorldSpace and GenerateShaderBinOffsets also recorded dispatches. For ClusterLightsWorldSpace, #638's tracker found an exact 640 KiB UAV/SRV range match to dropped compute `efc24eb5fd16cf7a` in the preceding traced frame. Range contents and the reason that PSO was unavailable are unverified. * The clean build refused `11eeb27c2d15980d` on descriptor address/format read as data and `e18931c72af42e46` on a whole-wave section on a 32-lane GPU. The trace identifies their attempted outputs as a 320×180 f42 UAV and a 16-byte buffer respectively. Their contribution to the zero HDR input still needs a producer/consumer readback. **Run bounds.** 780 s clean and 1,050 s with tracing, both stopped at the configured limit, with zero recorded device removals or host PSO refusal warnings. In measurement windows with at least 200 executed draws/frame the clean run had median 2.61 s/frame and 1,049 combined drops/frame, and the trace had 3.53 s/frame and 463 drops/frame. The workload, cache and readback differ between the runs. Peak per-process dedicated GPU usage was 4,717 and 4,943 MiB respectively. There were 77 and 68 distinct shader translation refusals, with hundreds of PSOs still pending in both observation windows. I also ran #1020 at `39e056afa921cfb74f770729428ab0155ad36a77` in its own worktree with test-only fail-fast checks for DXC and the NVIDIA LUID. Both synthetic tests ran. Adding the geometry stage changed coverage from 28 to 64 pixels in both 8×8 cases. This only confirms the synthetic rectangle case on this hardware. Measured locally with Codex assistance. Figures, pass names and hashes only.
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-24 18:36 UTC · original

Series S check on the texture-dump question, using the same RTX 5070 Ti and VIctory stack with a warm cache. A local diagnostic substituted the current 1280×720 BGRA8 (f87) target for plane 0 on three selected frames, keeping the submitted overlays. The original plane 0 was 1920×1080 on all three.

Frame Mean RGB on the preceding normal frame Mean RGB on the substituted frame Mean RGB of the matching f87 source
1210 0.53 35.56 35.58
1250 3.63 100.83 101.30
1275 0.00 0.00 99.55

Means are in 8-bit units. In the first two cases the presented frame shows the geometry and false colours of the same-frame f87 target, matched by resource ID. Their downsampled luma correlations were 0.990 and 0.984. The false colours survive the live presentation path on this profile, so the target dump conversion alone cannot account for them. In the third case the compositor output was all zero despite a nonzero matched source, so the substitution did not consistently make the scene visible. The sampled 720p/1080p floating-point RGB targets on frames 1209 and 1210 were still zero.

Measured locally with Codex assistance. Statistics only.

**@⁠SkillIssueXO** on GitHub · 2026-11-24 18:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140880043) Series S check on the texture-dump question, using the [same RTX 5070 Ti and VIctory stack](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) with a warm cache. A local diagnostic substituted the current 1280×720 BGRA8 (f87) target for plane 0 on three selected frames, keeping the submitted overlays. The original plane 0 was 1920×1080 on all three. | Frame | Mean RGB on the preceding normal frame | Mean RGB on the substituted frame | Mean RGB of the matching f87 source | | --- | ---: | ---: | ---: | | 1210 | 0.53 | 35.56 | 35.58 | | 1250 | 3.63 | 100.83 | 101.30 | | 1275 | 0.00 | 0.00 | 99.55 | Means are in 8-bit units. In the first two cases the presented frame shows the geometry and false colours of the same-frame f87 target, matched by resource ID. Their downsampled luma correlations were 0.990 and 0.984. The false colours survive the live presentation path on this profile, so the target dump conversion alone cannot account for them. In the third case the compositor output was all zero despite a nonzero matched source, so the substitution did not consistently make the scene visible. The sampled 720p/1080p floating-point RGB targets on frames 1209 and 1210 were still zero. Measured locally with Codex assistance. Statistics only.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 18:36 UTC · original

@⁠r4tedx on your question about 11eeb27c2d15980d (CS_PrescalarizeLightLoop): it's a leftover, not a real read.

  • The light array is v3–v14. The index is clamped with v_med3_u32 …, 0, 11, so M0 never names anything past v14.
  • v15–v18 hold s12–s15, which are dwords of an image descriptor. The program overwrites them before it reads them, for example v_bcnt_u32_b32 v15, v4, 0 at 0x4b4.
  • What kept the refusal alive is that a VGPR write lists the register's old value as a read (for the lanes it doesn't run in), and operand_reads passed that on. So the overwrite of v15–v18 looked like a read of the descriptor copy.

The fix keeps that implicit read in the IR builder, where the EXEC-masked lanes need it. operand_reads now returns only real operands. Instructions that compute with their destination still list it: v_*mac_*, v_dot2c/v_dot4c, v_interp_p2*, v_permlane*, v_movrel*, v_writelane_b32. A 16-bit write still passes the other half on.

Branches (one commit each, on top of the M0-relative array commit):

Census, offline (local copy of the shader archive, counts only):

tree compute validated programs that changed
update 9, --host-lanes 32-32 2470 → 2471 only 11eeb27c
main 1417 → 1418 only 11eeb27c

The IR instruction counts of all other programs are identical. cargo test -p victory-shader --lib: 252 passed on update 9, 121 on main (0 failed). The new test reuses the array's registers (write without read, and v_fmac_f32 as the case that must still refuse). On update 9 it fails with the fix removed. I haven't repeated that check on main.

Caveats:

  • The 0 for an unused element relies on M0 never naming it. The clamp proves that here, but the analysis doesn't prove it in general. No other program in the census changed.
  • If your tree later takes #659 (mesh v5 reads), which moves the same implicit read into the IR builder, expect a small conflict in operand_reads; keep this version.
  • Not run in the title yet: offline validation plus the synthetic test on GPU and WARP.

AI-assisted (Claude Code); counts only, nothing from the game attached.

**@⁠NuraadGit** on GitHub · 2026-11-24 18:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7140892796) @⁠r4tedx on your question about `11eeb27c2d15980d` (CS_PrescalarizeLightLoop): it's a leftover, not a real read. - The light array is v3–v14. The index is clamped with `v_med3_u32 …, 0, 11`, so M0 never names anything past v14. - v15–v18 hold s12–s15, which are dwords of an image descriptor. The program overwrites them before it reads them, for example `v_bcnt_u32_b32 v15, v4, 0` at 0x4b4. - What kept the refusal alive is that a VGPR write lists the register's old value as a read (for the lanes it doesn't run in), and `operand_reads` passed that on. So the overwrite of v15–v18 looked like a read of the descriptor copy. The fix keeps that implicit read in the IR builder, where the EXEC-masked lanes need it. `operand_reads` now returns only real operands. Instructions that compute with their destination still list it: `v_*mac_*`, `v_dot2c`/`v_dot4c`, `v_interp_p2*`, `v_permlane*`, `v_movrel*`, `v_writelane_b32`. A 16-bit write still passes the other half on. Branches (one commit each, on top of the M0-relative array commit): - on your update 9 (`94e0ea5`): [`NuraadGit/VIctory@shaders/movrel-unused-descriptor-copy-testers`](https://github.com/NuraadGit/VIctory/tree/shaders/movrel-unused-descriptor-copy-testers), head `2a5c417` - on `main`: [`NuraadGit/VIctory@shaders/movrel-unused-descriptor-copy-main`](https://github.com/NuraadGit/VIctory/tree/shaders/movrel-unused-descriptor-copy-main), head `c1c3fbc` Census, offline (local copy of the shader archive, counts only): | tree | compute validated | programs that changed | |---|---|---| | update 9, `--host-lanes 32-32` | 2470 → 2471 | only `11eeb27c` | | `main` | 1417 → 1418 | only `11eeb27c` | The IR instruction counts of all other programs are identical. `cargo test -p victory-shader --lib`: 252 passed on update 9, 121 on main (0 failed). The new test reuses the array's registers (write without read, and `v_fmac_f32` as the case that must still refuse). On update 9 it fails with the fix removed. I haven't repeated that check on main. Caveats: - The 0 for an unused element relies on M0 never naming it. The clamp proves that here, but the analysis doesn't prove it in general. No other program in the census changed. - If your tree later takes #659 (mesh v5 reads), which moves the same implicit read into the IR builder, expect a small conflict in `operand_reads`; keep this version. - Not run in the title yet: offline validation plus the synthetic test on GPU and WARP. AI-assisted (Claude Code); counts only, nothing from the game attached.
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 18:43 UTC · original

@⁠NuraadGit @⁠r4tedx, on 11eeb27c2d15980d (CS_PrescalarizeLightLoop): that matches what we found. We have a fix that makes it translate: commit 261b653 on lines9686-rgb/VIctory@depth-uav, "Shaders: a descriptor dword that only fills an M0-indexed VGPR array reads 0".

  • Rule: a descriptor dword whose only uses are as filler in the range an M0-relative move (v_movrels/v_movreld) indexes reads 0. Any other data use of a descriptor dword keeps its refusal.
  • Synthetic tests: two passing cases run exact on an RTX 3060 Ti, and two control cases are still refused.
  • Offline, over the 577 lighting containers, the only change is that 11eeb27c2d15980d now emits, validates and gets a 32-lane pipeline.
  • In the world on our tree it binds and runs every frame. The trace shows ran dispatch 40x23x1 reading the 320x180 tile textures and writing the 320x180 R32_UINT output.

The code applies cleanly on main. Only the test file conflicts, because the tests sit in emit/split_tests.rs, which comes with #439. I can put it on a branch off main, or on top of #439, whichever is more useful.

AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.

**@⁠lines9686-rgb** on GitHub · 2026-11-24 18:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141055176) @⁠NuraadGit @⁠r4tedx, on `11eeb27c2d15980d` (CS_PrescalarizeLightLoop): that matches what we found. We have a fix that makes it translate: commit [`261b653`](https://github.com/lines9686-rgb/VIctory/commit/261b653f39ccb68f5e19ab1ef561fb4f6a59eae0) on `lines9686-rgb/VIctory@depth-uav`, "Shaders: a descriptor dword that only fills an M0-indexed VGPR array reads 0". - **Rule:** a descriptor dword whose only uses are as filler in the range an M0-relative move (`v_movrels`/`v_movreld`) indexes reads 0. Any other data use of a descriptor dword keeps its refusal. - **Synthetic tests:** two passing cases run exact on an RTX 3060 Ti, and two control cases are still refused. - **Offline**, over the 577 lighting containers, the only change is that `11eeb27c2d15980d` now emits, validates and gets a 32-lane pipeline. - **In the world** on our tree it binds and runs every frame. The trace shows `ran dispatch 40x23x1` reading the 320x180 tile textures and writing the 320x180 R32_UINT output. The code applies cleanly on `main`. Only the test file conflicts, because the tests sit in `emit/split_tests.rs`, which comes with #439. I can put it on a branch off `main`, or on top of #439, whichever is more useful. AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠Rezwo on GitHub · 2026-11-24 18:44 UTC · original

Thanks for the frame-2879 trace. I put together an opt-in probe that can distinguish a zero input when the reveal dispatch reads it from a texture that's only zero by Present: github.com/Rezwo/VIctory@41c85b51a5.

If you're already doing another diagnostic run, set VICTORY_DISPATCH_PROBE=<recording-frame>:5741294cf872ffb9 on a build with the probe. Use the frame from that build's recording trace; 2879 is only the previous run's example. It logs the bound R8 resource IDs, nonzero counts and raw maxima immediately before/after the selected direct dispatch, after the host fence. No screenshots or game data needed.

Synthetic WARP check: a half-filled input read 32 nonzero pixels, the immediate output read 32, and a later clear of that same output left 0 at the end of the list. This was tested on the upstream base, not your integration stack or the title. No need to rerun just for this.

AI-assisted (Codex).

**@⁠Rezwo** on GitHub · 2026-11-24 18:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141076924) Thanks for the [frame-2879 trace](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). I put together an opt-in probe that can distinguish a zero input **when the reveal dispatch reads it** from a texture that's only zero by Present: https://github.com/Rezwo/VIctory/commit/41c85b51a5de79e34f2636332cabd32d639be3f3. If you're already doing another diagnostic run, set `VICTORY_DISPATCH_PROBE=<recording-frame>:5741294cf872ffb9` on a build with the probe. Use the frame from that build's recording trace; 2879 is only the previous run's example. It logs the bound R8 resource IDs, nonzero counts and raw maxima immediately before/after the selected direct dispatch, after the host fence. No screenshots or game data needed. Synthetic WARP check: a half-filled input read **32** nonzero pixels, the immediate output read **32**, and a later clear of that same output left **0** at the end of the list. This was tested on the upstream base, not your integration stack or the title. No need to rerun just for this. AI-assisted (Codex).
Author
Owner

@⁠erLCoder on GitHub · 2026-11-24 18:44 UTC · original

Follow-up to the prior update from the archived update-9 trace. Base 94e0ea56d358495843511dc10250b88c629c2c77, with the local diagnostics port of #638 (baa7f4654d5078463569cf0d79c42875c86f5fc0). Trace EXE SHA-256 72BE4AFC83230B9E377C14E94FC280B526EFD2097C523D15C857F01E302AA413.

  • The two dropped UAV producer entries for efc24eb5fd16cf7a come from the compute dispatch branch that returns when the host PSO lookup yields None. First bind reported a 2,176-byte compute container. Neither archived log shows a completed translation or a host PSO refusal for this hash. The compute builder translates before creating the root signature and host PSO, so the drops point to unfinished PSO work before translation returned. The logs do not distinguish a queued job from an active translation.
  • In frame 12497, CS_ClusterLightsWorldSpace (d3e5b737ea7cc150, 5×5×30) binds 0xd934b0000+0xa0000 at SRV s0+24. Later in that frame the dropped dispatch would bind 0xd96d08000+0xa0000 at UAV s1+48. In 12498 the consumer binds the latter range and the dropped producer targets the former. By 12527 the consumer is back on 0xd934b0000+0xa0000. Its output UAV is 1,536,000 bytes at s1+16. This establishes the alternating view bindings in recording order. GPU contents, submission order and visibility at the read are unknown. The contribution to zero HDR remains open.

Fresh DXGI enumeration confirmed the physical GTX 1660 Ti (10de:2182, software=false) with LUID 00000000:00017870. The requested pre-reboot LUID was 00000000:00017c52, so there was no new title run or pre-dispatch readback. No fix was applied. Local trace and source analysis with OpenAI Codex. No game files, captures or dumps are attached.

**@⁠erLCoder** on GitHub · 2026-11-24 18:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141086015) Follow-up to [the prior update](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) from the archived update-9 trace. Base `94e0ea56d358495843511dc10250b88c629c2c77`, with the local diagnostics port of #638 (`baa7f4654d5078463569cf0d79c42875c86f5fc0`). Trace EXE SHA-256 `72BE4AFC83230B9E377C14E94FC280B526EFD2097C523D15C857F01E302AA413`. - The two `dropped UAV producer` entries for `efc24eb5fd16cf7a` come from the compute dispatch branch that returns when the host PSO lookup yields `None`. First bind reported a 2,176-byte compute container. Neither archived log shows a completed translation or a host PSO refusal for this hash. The compute builder translates before creating the root signature and host PSO, so the drops point to unfinished PSO work before translation returned. The logs do not distinguish a queued job from an active translation. - In frame 12497, `CS_ClusterLightsWorldSpace` (`d3e5b737ea7cc150`, `5×5×30`) binds `0xd934b0000+0xa0000` at SRV `s0+24`. Later in that frame the dropped dispatch would bind `0xd96d08000+0xa0000` at UAV `s1+48`. In 12498 the consumer binds the latter range and the dropped producer targets the former. By 12527 the consumer is back on `0xd934b0000+0xa0000`. Its output UAV is 1,536,000 bytes at `s1+16`. This establishes the alternating view bindings in recording order. GPU contents, submission order and visibility at the read are unknown. The contribution to zero HDR remains open. Fresh DXGI enumeration confirmed the physical GTX 1660 Ti (`10de:2182`, `software=false`) with LUID `00000000:00017870`. The requested pre-reboot LUID was `00000000:00017c52`, so there was no new title run or pre-dispatch readback. No fix was applied. Local trace and source analysis with OpenAI Codex. No game files, captures or dumps are attached.
Author
Owner

@⁠02dgokberk on GitHub · 2026-11-24 18:52 UTC · original

Found something that may help others chasing the black output: in-engine cutscenes are pre-rendered Bink videos, and they decode correctly — they're just lost at the final composite.

Setup: RTX (32-lane / Wave32 mode), --console series-s, ffe310e + #493 #206 #189 #667 #1020 #1215 + MIN_DYNAMIC=1<<18, plus some local Wave32 translation fallbacks. VICTORY_SHADER_LOOP_LIMIT=32, DRED off.

What the target dumps showed (VICTORY_DUMP_TARGETS, frames 3050/3200, during the prologue):

  • A 1920x1088, format 29 (R8G8B8A8_UNORM_SRGB) texture holds a perfect cutscene frame (the 1088 height is the video codec's 16-row alignment). The Bink shaders (VS_Bink*, PS_Bink*, PS_BinkHDR*, LuminanceFromHDRBinkCS) all translate.
  • The 3840x2160 output for the same frame only contains the subtitles ("Yo, she bring anything in with her?" / "Go with the prison guard"), so the video frame is lost between decode and the final composite — the same place the lit world colour is lost.
  • The 1280x720 targets (Series S) also show world geometry (prison yard, vehicles) in the G-buffer/visibility targets, but the lit HDR targets stay zero, matching what others report here.

Workaround to see cutscenes live: a small diagnostic VICTORY_PRESENT_TARGET=WxH[-fN]: every RTV/UAV bind of a texture with that size (and optionally format) is noted, and while one was written within the last 30 frames it is presented instead of the title's planes (otherwise it falls back to the normal planes). With VICTORY_PRESENT_TARGET=1920x1088 the prologue cutscenes play in the window (screenshot below). It's the same idea as VICTORY_PRESENT_1440P, keyed by size instead of the 1440p target, so it also works in Series S mode.

So whatever zeroes the lit scene also zeroes the video composite, which may narrow it to the post-lighting compositing / tonemap / upscale chain rather than only the lighting passes. Happy to share the patch or run more dumps.

Ekran görüntüsü 2026-11-24 213057
**@⁠02dgokberk** on GitHub · 2026-11-24 18:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141276806) Found something that may help others chasing the black output: in-engine cutscenes are pre-rendered Bink videos, and they decode correctly — they're just lost at the final composite. **Setup:** RTX (32-lane / Wave32 mode), `--console series-s`, ffe310e + #493 #206 #189 #667 #1020 #1215 + MIN_DYNAMIC=1<<18, plus some local Wave32 translation fallbacks. `VICTORY_SHADER_LOOP_LIMIT=32`, DRED off. **What the target dumps showed (`VICTORY_DUMP_TARGETS`, frames 3050/3200, during the prologue):** - A **1920x1088, format 29 (R8G8B8A8_UNORM_SRGB)** texture holds a perfect cutscene frame (the 1088 height is the video codec's 16-row alignment). The Bink shaders (`VS_Bink*`, `PS_Bink*`, `PS_BinkHDR*`, `LuminanceFromHDRBinkCS`) all translate. - The 3840x2160 output for the same frame only contains the **subtitles** ("Yo, she bring anything in with her?" / "Go with the prison guard"), so the video frame is lost between decode and the final composite — the same place the lit world colour is lost. - The 1280x720 targets (Series S) also show world geometry (prison yard, vehicles) in the G-buffer/visibility targets, but the lit HDR targets stay zero, matching what others report here. **Workaround to see cutscenes live:** a small diagnostic `VICTORY_PRESENT_TARGET=WxH[-fN]`: every RTV/UAV bind of a texture with that size (and optionally format) is noted, and while one was written within the last 30 frames it is presented instead of the title's planes (otherwise it falls back to the normal planes). With `VICTORY_PRESENT_TARGET=1920x1088` the prologue cutscenes play in the window (screenshot below). It's the same idea as `VICTORY_PRESENT_1440P`, keyed by size instead of the 1440p target, so it also works in Series S mode. So whatever zeroes the lit scene also zeroes the video composite, which may narrow it to the post-lighting compositing / tonemap / upscale chain rather than only the lighting passes. Happy to share the patch or run more dumps. <img width="1918" height="1031" alt="Ekran görüntüsü 2026-11-24 213057" src="https://github.com/user-attachments/assets/09cfcb77-e947-4b02-aab7-a24c8dc6d1bf" />
Author
Owner

@⁠Rezwo on GitHub · 2026-11-24 18:55 UTC · original

@⁠lines9686-rgb Independent WARP check at depth-uav commit 0b9a0f6: the same synthetic 8×8 compute-to-stencil test with an explicit plane-1 UAV gave 0 of 32 expected pixels on PR #469 (c47c963) and 32 of 32, with the exact expected mask, on your branch in its default D24S8 mode. The graphics control and separate compute witness both gave 32 on both revisions. Our original plane-0 binding gave 0 on both.

All three of your depth-EQUAL tests also passed on WARP, including the precision case where the offset draw passes on host D16 but misses on D24S8. That checks the separate depth behavior, not fixed-function stencil in the split-D16 mode. No game files or title run. AI-assisted (Codex).

**@⁠Rezwo** on GitHub · 2026-11-24 18:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141337637) @⁠lines9686-rgb Independent WARP check at depth-uav commit 0b9a0f6: the same synthetic 8×8 compute-to-stencil test with an explicit plane-1 UAV gave **0 of 32 expected pixels** on PR #469 (c47c963) and **32 of 32, with the exact expected mask**, on your branch in its default D24S8 mode. The graphics control and separate compute witness both gave 32 on both revisions. Our original plane-0 binding gave 0 on both. All three of your depth-EQUAL tests also passed on WARP, including the precision case where the offset draw passes on host D16 but misses on D24S8. That checks the separate depth behavior, not fixed-function stencil in the split-D16 mode. No game files or title run. AI-assisted (Codex).
Author
Owner

@⁠Coinners on GitHub · 2026-11-24 19:17 UTC · original

Update 10 on an RTX 5070 Laptop: the 51ff151f75cd5759 mesh hang reproduces ~54 s into the world; skipping the four instance-culling programs, the world holds 8 minutes

This is the run INTEGRATION.md asks for under "What update 9 changes at run time". One run per setting.

Machine: RTX 5070 Laptop GPU (8 GB, 32..32 waves), driver 32.0.16.2124, Windows 11 26200, i9-14900HX, 32 GB RAM. Hybrid laptop: the default adapter is the Intel UHD iGPU, so I merged #967 to get the device on the NVIDIA GPU. Title 1.0.2.1, Series X mode unless stated.

Tree: integration/testers at 4744af9 (update 10), plus #967, #393, #1267, #1472, #1277, #172 and a cherry-pick of ededb1b (the shader-test adapter list, so the split tests skip the 16-lane iGPU). #1267 conflicts with #261 in shadow.rs. I resolved it the way it is described on #1267 (parts snapshot plus a store of the title's bytes after a copy-back). #1472 is ported to #393's per-copy range lists. Workspace tests pass on the RTX 5070 (549). Diagnostics build.

Variables (all runs): VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, VICTORY_PRESENT_1440P=1, VICTORY_KEYS=30:Enter.

Run Extra setting Time in the world End
A none ~54 s 0x887A0006. DRED: list stopped at command 284 of 316, op 42 (DispatchMesh), mesh 51ff151f75cd5759, pixel 7fe75645c406cac6
B VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5 8 min no device removal (I stopped it)
C as B, --console series-s 4 min no device removal (I stopped it)
  • It is the same mesh/pixel pair as the RTX 5080 report. Of the four programs, only fdd56d97a806bcca translated and had a pipeline in run A's session.
  • An earlier tree here (main + #439 + #1433 + #89 + #1349 + #967, no loop limit) hung differently: DispatchMesh mesh 7568b4b35f3f5592, pixel 49f7165e4cfef27a, ~2.5 min into the world.

Frame-rate lines, first 4 minutes in the world (averages, diagnostics build):

ms/frame preparing (copies) GPU copying back draws dropped without a pipeline (being made)
B (Series X) 6160 1674 (1987 ms, 431 MB) 1210 707 3092 1011 (272)
C (Series S) 4559 1110 (1373 ms, 360 MB) 280 236 2293 813 (14)

In B about 270 pipelines stay queued for the whole 8 minutes, and the workers never run out of work after loading. In Series X the 8 GB card is full (7.25 GB dedicated, 7.8 GB shared), and system commit reached 56 GB. I did not run da605bc for comparison. Whether the world shows geometry was not checked: these runs were scripted.

Counts and messages only, no game data. AI-assisted (Claude Code).

**@⁠Coinners** on GitHub · 2026-11-24 19:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141873916) **Update 10 on an RTX 5070 Laptop: the `51ff151f75cd5759` mesh hang reproduces ~54 s into the world; skipping the four instance-culling programs, the world holds 8 minutes** This is the run INTEGRATION.md asks for under "What update 9 changes at run time". One run per setting. **Machine:** RTX 5070 Laptop GPU (8 GB, 32..32 waves), driver 32.0.16.2124, Windows 11 26200, i9-14900HX, 32 GB RAM. Hybrid laptop: the default adapter is the Intel UHD iGPU, so I merged #967 to get the device on the NVIDIA GPU. Title 1.0.2.1, Series X mode unless stated. **Tree:** `integration/testers` at `4744af9` (update 10), plus #967, #393, #1267, #1472, #1277, #172 and a cherry-pick of `ededb1b` (the shader-test adapter list, so the split tests skip the 16-lane iGPU). #1267 conflicts with #261 in `shadow.rs`. I resolved it the way it is described on #1267 (parts snapshot plus a `store` of the title's bytes after a copy-back). #1472 is ported to #393's per-copy range lists. Workspace tests pass on the RTX 5070 (549). Diagnostics build. **Variables (all runs):** `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, `VICTORY_PRESENT_1440P=1`, `VICTORY_KEYS=30:Enter`. | Run | Extra setting | Time in the world | End | |---|---|---|---| | A | none | ~54 s | `0x887A0006`. DRED: list stopped at command 284 of 316, op 42 (DispatchMesh), `mesh 51ff151f75cd5759, pixel 7fe75645c406cac6` | | B | `VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5` | 8 min | no device removal (I stopped it) | | C | as B, `--console series-s` | 4 min | no device removal (I stopped it) | - It is the same mesh/pixel pair as the RTX 5080 report. Of the four programs, only `fdd56d97a806bcca` translated and had a pipeline in run A's session. - An earlier tree here (`main` + #439 + #1433 + #89 + #1349 + #967, no loop limit) hung differently: DispatchMesh `mesh 7568b4b35f3f5592, pixel 49f7165e4cfef27a`, ~2.5 min into the world. **Frame-rate lines, first 4 minutes in the world (averages, diagnostics build):** | | ms/frame | preparing (copies) | GPU | copying back | draws | dropped without a pipeline (being made) | |---|---|---|---|---|---|---| | B (Series X) | 6160 | 1674 (1987 ms, 431 MB) | 1210 | 707 | 3092 | 1011 (272) | | C (Series S) | 4559 | 1110 (1373 ms, 360 MB) | 280 | 236 | 2293 | 813 (14) | In B about 270 pipelines stay queued for the whole 8 minutes, and the workers never run out of work after loading. In Series X the 8 GB card is full (7.25 GB dedicated, 7.8 GB shared), and system commit reached 56 GB. I did not run `da605bc` for comparison. Whether the world shows geometry was not checked: these runs were scripted. Counts and messages only, no game data. AI-assisted (Claude Code).
Author
Owner

@⁠rafaconvaitis on GitHub · 2026-11-24 19:18 UTC · original

Same-frame presentation readback on an RTX 4070, Series S, 94e0ea5, loop cap 32, normal presentation. I waited for the opening credits on the black scene and read both incoming planes and the final back buffer inside the same PresentX at frame 10638. Both incoming planes had live host textures and used R8G8B8A8_UNORM.

Surface Size Peak RGB over the surface Peak RGB in the center
Incoming scene plane, slot 0 1920×1080 2/255 2/255
Incoming credits plane, slot 1 3840×2160 255/255 0/255
Final back buffer before DXGI Present 3840×2160 255/255 2/255

The center covers x25–75%, y20–60%, away from the visible credits. DXGI Present returned S_OK. For this frame the scene image was already almost black on entry to VIctory's host composition. This narrows the next check to the last writer of the 1920×1080 plane and its upstream inputs. The readback does not identify that producer or establish the same cause for other configurations.

AI-assisted testing on the user's machine. No game files, images or dumps attached.

**@⁠rafaconvaitis** on GitHub · 2026-11-24 19:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141901334) Same-frame presentation readback on an RTX 4070, Series S, `94e0ea5`, loop cap 32, normal presentation. I waited for the opening credits on the black scene and read both incoming planes and the final back buffer inside the same PresentX at frame 10638. Both incoming planes had live host textures and used `R8G8B8A8_UNORM`. | Surface | Size | Peak RGB over the surface | Peak RGB in the center | | --- | --- | ---: | ---: | | Incoming scene plane, slot 0 | 1920×1080 | 2/255 | 2/255 | | Incoming credits plane, slot 1 | 3840×2160 | 255/255 | 0/255 | | Final back buffer before DXGI Present | 3840×2160 | 255/255 | 2/255 | The center covers x25–75%, y20–60%, away from the visible credits. DXGI Present returned `S_OK`. For this frame the scene image was already almost black on entry to VIctory's host composition. This narrows the next check to the last writer of the 1920×1080 plane and its upstream inputs. The readback does not identify that producer or establish the same cause for other configurations. AI-assisted testing on the user's machine. No game files, images or dumps attached.
Author
Owner

@⁠Danigamer05 on GitHub · 2026-11-24 19:18 UTC · original

Turing data point for update 10 (4744af9): RTX 2080 SUPER, 22 minutes, no device removal, G-buffer filled, output black

Setup. RTX 2080 SUPER (8 GB, driver 621.01, WaveOps 32..32, mesh shaders on), Windows 11 Pro 26200, 32 GB RAM, title 1.0.2.1 (blake3 b99f876b…), Series X mode. r4tedx/integration/testers at 4744af9, unmodified, diagnostics build. Variables: VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_PRESENT_1440P=1, VICTORY_SKIP_PIPELINES empty, DRED off, VICTORY_ROOT_SRV_MB at its default, menus passed with VICTORY_KEYS (Enter every 3 s).

Run. 22 min total, about 19 min in the opening scene, ended by my timeout with the title still running. No device removal, no E_OUTOFMEMORY, no driver pipeline refusal, no nvgpucomp64.dll exception in the log.

  • World: 0.28 fps (3,546 ms/frame mean over 173 lines), about 3,000 draws/frame; per frame about 1,330 ms in copies, 470 ms on the GPU.
  • Copies are dominated by the 174 MB heap at 0xafa0000+0xae00000, refreshed 24.5 times per frame (4.47 GB/frame), plus 891 MB/frame unmapped and about 280,000 page faults per frame.
  • 115 distinct programs untranslated. By reason: an address not from a root parameter 29, a lane mask read as data 21, a scalar memory read as data 19, an address from a phi 9, console wave64 lanes in a group of more than 64 threads 8, an address from a root parameter that is no address 8, a descriptor read from the first lane of computed VGPRs 4, an LDS write of bytes or halves 3.
  • Largest drops per frame (no host pipeline): mesh ef5409053e14aa82 191, compute 5279ae36796c31fc 60, compute 5062bc7a48e842f8 60, mesh 235e56869c1ea883 53, pixel 398971d1222d8f95 31, mesh 4ee6e34d8e008c63 31.
  • Requested log lines: a root SRV not on 16 bytes reads zeros once (address=0xd5f20a90c); no a root SRV without a bound view heap, no title slot past the host heap, no no dynamic slots for its tables.

Targets (VICTORY_DUMP_TARGETS=1, frames 2140 to 2330 every 10; world entry around frame 2150):

  • The 2560x1440 f87 and f28 targets hold the whole street (buildings, palms, poles, railings), in false colour. A 2560x1440 f62 target holds the same scene as a mask, with props (chairs, tables) clearly shaped.
  • Both 3840x2160 f28 targets hold only the HUD prompt over black: the same state as the RTX 3090 report that opened this issue.
  • Two 2560x1440 f28 targets also show a few large flat triangles across the lower half that match no scene geometry. They are in both frames I checked (2170 and 2200), with a different shape in each.
  • With VICTORY_PRESENT_1440P the window showed the scene geometry for a moment a few times during loading (lit-looking glows over false-colour props); the captured presented frames (frame-N.png) are the title's own 1280x720 output and stay black.

Without the integration tree, on main ffe310e + #578 the same card runs the world without device removal but its G-buffer is empty (wave64 mesh programs refused). Letting those mesh programs run (local switch) fills the shadow map and masks, but the device is removed after about 3 minutes in the world, at a different mesh program each run.

No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.

**@⁠Danigamer05** on GitHub · 2026-11-24 19:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141913524) **Turing data point for update 10 (`4744af9`): RTX 2080 SUPER, 22 minutes, no device removal, G-buffer filled, output black** **Setup.** RTX 2080 SUPER (8 GB, driver 621.01, WaveOps 32..32, mesh shaders on), Windows 11 Pro 26200, 32 GB RAM, title 1.0.2.1 (blake3 `b99f876b…`), Series X mode. `r4tedx/integration/testers` at `4744af9`, unmodified, diagnostics build. Variables: `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_PRESENT_1440P=1`, `VICTORY_SKIP_PIPELINES` empty, DRED off, `VICTORY_ROOT_SRV_MB` at its default, menus passed with `VICTORY_KEYS` (Enter every 3 s). **Run.** 22 min total, about 19 min in the opening scene, ended by my timeout with the title still running. No device removal, no `E_OUTOFMEMORY`, no driver pipeline refusal, no `nvgpucomp64.dll` exception in the log. - World: 0.28 fps (3,546 ms/frame mean over 173 lines), about 3,000 draws/frame; per frame about 1,330 ms in copies, 470 ms on the GPU. - Copies are dominated by the 174 MB heap at `0xafa0000+0xae00000`, refreshed 24.5 times per frame (4.47 GB/frame), plus 891 MB/frame `unmapped` and about 280,000 page faults per frame. - 115 distinct programs untranslated. By reason: `an address not from a root parameter` 29, `a lane mask read as data` 21, `a scalar memory read as data` 19, `an address from a phi` 9, `console wave64 lanes in a group of more than 64 threads` 8, `an address from a root parameter that is no address` 8, `a descriptor read from the first lane of computed VGPRs` 4, `an LDS write of bytes or halves` 3. - Largest drops per frame (no host pipeline): mesh `ef5409053e14aa82` 191, compute `5279ae36796c31fc` 60, compute `5062bc7a48e842f8` 60, mesh `235e56869c1ea883` 53, pixel `398971d1222d8f95` 31, mesh `4ee6e34d8e008c63` 31. - Requested log lines: `a root SRV not on 16 bytes reads zeros` once (`address=0xd5f20a90c`); no `a root SRV without a bound view heap`, no `title slot past the host heap`, no `no dynamic slots for its tables`. **Targets** (`VICTORY_DUMP_TARGETS=1`, frames 2140 to 2330 every 10; world entry around frame 2150): - The 2560x1440 f87 and f28 targets hold the whole street (buildings, palms, poles, railings), in false colour. A 2560x1440 f62 target holds the same scene as a mask, with props (chairs, tables) clearly shaped. - Both 3840x2160 f28 targets hold only the HUD prompt over black: the same state as the RTX 3090 report that opened this issue. - Two 2560x1440 f28 targets also show a few large flat triangles across the lower half that match no scene geometry. They are in both frames I checked (2170 and 2200), with a different shape in each. - With `VICTORY_PRESENT_1440P` the window showed the scene geometry for a moment a few times during loading (lit-looking glows over false-colour props); the captured presented frames (`frame-N.png`) are the title's own 1280x720 output and stay black. Without the integration tree, on `main` `ffe310e` + #578 the same card runs the world without device removal but its G-buffer is empty (wave64 mesh programs refused). Letting those mesh programs run (local switch) fills the shadow map and masks, but the device is removed after about 3 minutes in the world, at a different mesh program each run. No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.
Author
Owner

@⁠Rezwo on GitHub · 2026-11-24 19:21 UTC · original

@⁠rafaconvaitis Thanks for the frame-10638 readback. If your existing trace has it, which draw or dispatch last wrote the 1920×1080 slot-0 scene plane before that PresentX, matched by resource ID rather than size or format? The writer's shader hash and whether it ran or was dropped would help. If you already captured its input levels, even zero/nonzero is enough to tell us whether to look further upstream. No need for a new run or a full log.

**@⁠Rezwo** on GitHub · 2026-11-24 19:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7141975111) @⁠rafaconvaitis Thanks for the [frame-10638 readback](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). If your existing trace has it, which draw or dispatch last wrote the **1920×1080 slot-0 scene plane** before that PresentX, matched by resource ID rather than size or format? The writer's shader hash and whether it ran or was dropped would help. If you already captured its input levels, even zero/nonzero is enough to tell us whether to look further upstream. No need for a new run or a full log.
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 19:22 UTC · original

fxceless/victory-gta6 renders the lit world on an RTX 3060 Ti too, but only with three settings; with its defaults it loses the device during loading.

Setup: RTX 3060 Ti 8 GB (32-lane waves, driver 621.24), Windows 11 26200, Ryzen 5 5600, 32 GB, own 1.0.2.1 copy. I built fxceless/victory-gta6 at d279e69 from source: diag profile, --features diagnostics, default Windows TDR settings.

Defaults: 0x887A0005 about 70 s in, before the world. The log shows one submission running for 6.9 s, longer than the 2 s Windows allows by default.

Working settings:

VICTORY_SHADER_LOOP_LIMIT=32
VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1,b83629b90cd2b7bc
  • The first two are the known NVIDIA hangs from #778/#71.
  • b83629b90cd2b7bc is new. DRED stopped on it during loading, on another tree as well: dispatch 59x1x1 [compute b83629b90cd2b7bc], list 0 of 1.

With these settings:

  • Run 1 (cold cache): gameplay is reached ("move / look around" prompt), but about 1,570 pipelines are still being made. The screen shows grey and black frames, with the loading art and stacked subtitles on top, as the fork's README describes.
  • Run 2 (warm cache): 8 minutes, no device removal. The prison yard is lit: sky, sun shafts through the haze, the watchtower, people in the yard, the barracks interior. The figures are back-lit, and everything in shadow is black, as the README says. 1.6–1.8 fps, up to ~6,500 draws per frame, and pad/keyboard movement works.

Two things from our side that may help this fork and main:

  1. Meshlet culling uses image_gather4_l with a real level (the depth pyramid).
    • On our #439-based tree all six culling programs were refused on this instruction: 3b471c122be79b3e, fc5e66f8f873d3bb, 9f017d9011377efa, 0452fc2d2e2fc4c3, 764ca63daec9c616, 87bf9e3f2bf2f052.
    • The args-init program then left every mesh-dispatch record at zero groups, so the culled mesh draws ran empty and the main depth stayed at its clear value.
    • Commit 5192322 lowers image_gather4_l and _l_o to four SampleLevel reads at the footprint's texel centres. The reads go through the title's sampler, use the nearest level within the view's mip chain, keep gather order, and apply the _o offset. DXIL's own Gather reads level 0 only, and #694 maps the instruction to it, which samples the wrong level of a depth pyramid.
    • GPU tests cover an 8x8 texture with 4 mips: a level past the chain, the edges, and an offset.
  2. Compute writes to depth and stencil. See my comment above: twins for D16/D24S8 planes, and the console's 16-bit depth kept as host D16 so the tiled lighting's depth-EQUAL test matches.

Both are on lines9686-rgb/VIctory@depth-uav. Happy to port either onto the fork or onto main if useful.

AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.

**@⁠lines9686-rgb** on GitHub · 2026-11-24 19:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142003582) **fxceless/victory-gta6 renders the lit world on an RTX 3060 Ti too, but only with three settings; with its defaults it loses the device during loading.** **Setup:** RTX 3060 Ti 8 GB (32-lane waves, driver 621.24), Windows 11 26200, Ryzen 5 5600, 32 GB, own 1.0.2.1 copy. I built [fxceless/victory-gta6](https://github.com/fxceless/victory-gta6) at `d279e69` from source: diag profile, `--features diagnostics`, default Windows TDR settings. **Defaults:** `0x887A0005` about 70 s in, before the world. The log shows one submission running for 6.9 s, longer than the 2 s Windows allows by default. **Working settings:** ``` VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1,b83629b90cd2b7bc ``` - The first two are the known NVIDIA hangs from #778/#71. - `b83629b90cd2b7bc` is new. DRED stopped on it during loading, on another tree as well: `dispatch 59x1x1 [compute b83629b90cd2b7bc]`, list 0 of 1. **With these settings:** - **Run 1 (cold cache):** gameplay is reached ("move / look around" prompt), but about 1,570 pipelines are still being made. The screen shows grey and black frames, with the loading art and stacked subtitles on top, as the fork's README describes. - **Run 2 (warm cache):** 8 minutes, no device removal. The prison yard is lit: sky, sun shafts through the haze, the watchtower, people in the yard, the barracks interior. The figures are back-lit, and everything in shadow is black, as the README says. 1.6–1.8 fps, up to ~6,500 draws per frame, and pad/keyboard movement works. **Two things from our side that may help this fork and `main`:** 1. **Meshlet culling uses `image_gather4_l` with a real level** (the depth pyramid). - On our #439-based tree all six culling programs were refused on this instruction: `3b471c122be79b3e`, `fc5e66f8f873d3bb`, `9f017d9011377efa`, `0452fc2d2e2fc4c3`, `764ca63daec9c616`, `87bf9e3f2bf2f052`. - The args-init program then left every mesh-dispatch record at zero groups, so the culled mesh draws ran empty and the main depth stayed at its clear value. - Commit [`5192322`](https://github.com/lines9686-rgb/VIctory/commit/5192322) lowers `image_gather4_l` and `_l_o` to four `SampleLevel` reads at the footprint's texel centres. The reads go through the title's sampler, use the nearest level within the view's mip chain, keep gather order, and apply the `_o` offset. DXIL's own `Gather` reads level 0 only, and #694 maps the instruction to it, which samples the wrong level of a depth pyramid. - GPU tests cover an 8x8 texture with 4 mips: a level past the chain, the edges, and an offset. 2. **Compute writes to depth and stencil.** See my comment above: twins for D16/D24S8 planes, and the console's 16-bit depth kept as host D16 so the tiled lighting's depth-EQUAL test matches. Both are on [`lines9686-rgb/VIctory@depth-uav`](https://github.com/lines9686-rgb/VIctory/tree/depth-uav). Happy to port either onto the fork or onto `main` if useful. AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠erLCoder on GitHub · 2026-11-24 19:25 UTC · original

Follow-up to the previous efc24eb5fd16cf7a report. Both runs used update 9 94e0ea56d358495843511dc10250b88c629c2c77, the same archived image/PSO cache seed, the local #638 port with the a7ccf0674b4122c2ed0153dbd9b03e92d58605bc tracker fixes, and regular Present. Physical GTX 1660 Ti 10de:2182, software=false, matching DXGI and D3D12 LUID 00000000:00017870, Agility 1.620.2. Five tracker tests passed. The Prescalarize changes were outside both builds.

  • Shared queue, 853 s. This PSO entered the queue with 267 outstanding jobs at recording frame 15338. It never logged a worker start in the next five minutes, while 115 other host PSO successes were logged. The EXE SHA-256 was 73201A7ED25EE8535CF2D10D5133480D525768FAB89AD2EC02977ACD922E9B1F.
  • Dedicated worker and per-PSO wait, 662 s. At frame 16388, with 439 jobs outstanding, the worker started after 2.5 ms. Translation took 27.3 ms, root-signature creation succeeded, and the host PSO call took 86.2 ms. The PSO was ready 119.4 ms after enqueue and the diagnostic wait returned after 121 ms. This isolates the shared queue delay in this observation. The EXE SHA-256 was C8DEEC8B01C988BB9D9DB539EAD58C823C8F1BE348A9442161794BA9B12E7B9B.
  • Fence-completed samples. In frame 16388 the producer UAV s1+48 after dispatch and ClusterLightsWorldSpace SRV s0+24 before dispatch referenced the same host resource at offset 0 with a 655,360-byte view. Submissions/fences 49191 and 49207 ran on the same host queue. Both samples had 163,839/163,840 nonzero 4-byte elements. The ClusterLightsWorldSpace UAV s1+16 had 47,960/384,000 nonzero elements in frames 16388 and 16389.
  • HDR remains unresolved. CS_TAA2_Resolve first bound in the comparison but had no recorded host PSO completion before collection stopped. There was no pre-TAA HDR sample or pre-write baseline for the producer UAV. The in-list copies and UAV transitions can affect ordering, and the counts do not verify lighting values. The dedicated worker is a diagnostic workaround.

Readback approach adapted from Rezwo's 41c85b51a5de79e34f2636332cabd32d639be3f3. OpenAI Codex assisted with the diagnostic patch, measurements and analysis. Both runs stopped on collection with no device removal recorded. No game files, captures or raw dumps are attached.

**@⁠erLCoder** on GitHub · 2026-11-24 19:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142077984) Follow-up to [the previous `efc24eb5fd16cf7a` report](https://git.gtahub.st/github/Marvisak--VIctory/issues/841). Both runs used update 9 `94e0ea56d358495843511dc10250b88c629c2c77`, the same archived image/PSO cache seed, the local #638 port with the `a7ccf0674b4122c2ed0153dbd9b03e92d58605bc` tracker fixes, and regular Present. Physical GTX 1660 Ti `10de:2182`, `software=false`, matching DXGI and D3D12 LUID `00000000:00017870`, Agility 1.620.2. Five tracker tests passed. The Prescalarize changes were outside both builds. - **Shared queue, 853 s.** This PSO entered the queue with 267 outstanding jobs at recording frame 15338. It never logged a worker start in the next five minutes, while 115 other host PSO successes were logged. The EXE SHA-256 was `73201A7ED25EE8535CF2D10D5133480D525768FAB89AD2EC02977ACD922E9B1F`. - **Dedicated worker and per-PSO wait, 662 s.** At frame 16388, with 439 jobs outstanding, the worker started after 2.5 ms. Translation took 27.3 ms, root-signature creation succeeded, and the host PSO call took 86.2 ms. The PSO was ready 119.4 ms after enqueue and the diagnostic wait returned after 121 ms. This isolates the shared queue delay in this observation. The EXE SHA-256 was `C8DEEC8B01C988BB9D9DB539EAD58C823C8F1BE348A9442161794BA9B12E7B9B`. - **Fence-completed samples.** In frame 16388 the producer UAV `s1+48` after dispatch and ClusterLightsWorldSpace SRV `s0+24` before dispatch referenced the same host resource at offset 0 with a 655,360-byte view. Submissions/fences 49191 and 49207 ran on the same host queue. Both samples had 163,839/163,840 nonzero 4-byte elements. The ClusterLightsWorldSpace UAV `s1+16` had 47,960/384,000 nonzero elements in frames 16388 and 16389. - **HDR remains unresolved.** `CS_TAA2_Resolve` first bound in the comparison but had no recorded host PSO completion before collection stopped. There was no pre-TAA HDR sample or pre-write baseline for the producer UAV. The in-list copies and UAV transitions can affect ordering, and the counts do not verify lighting values. The dedicated worker is a diagnostic workaround. Readback approach adapted from Rezwo's `41c85b51a5de79e34f2636332cabd32d639be3f3`. OpenAI Codex assisted with the diagnostic patch, measurements and analysis. Both runs stopped on collection with no device removal recorded. No game files, captures or raw dumps are attached.
Author
Owner

@⁠ghost on GitHub · 2026-11-24 19:38 UTC · original

AI-assisted (Claude Code). RTX 5080, same tree as above. Every target below is matched by the pointer the draw binds in that frame's trace, not by format.

The tiled-lighting pass works end to end; its pixel stage computes zero light. And a caution about frame-end dumps of the lighting target.

Four checks on the two enabled variants in the opening scene (TL_PS_PBR_MATERIAL_STANDARD, TL_PS_NoDir_PBR_MATERIAL_STANDARD), each from a run that logs the pipeline's final state, wraps the draws in queries and copies their first target right after each draw:

  1. Pipeline state. Blending off, write mask 15 on both targets, no stencil test, depth test EQUAL with depth writes off, DSV format 45.
  2. Nothing is discarded. A samples-passed (occlusion) query around each draw equals its pixel-shader invocation count on every draw, for example 737,280 of 737,280, with the depth test on.
  3. A stand-in pixel stage reaches both targets. Replacing the translated pixel stage by one that writes constants (0.25 to the float target, 7 to the format-42 one) puts those values on exactly the invocation count (753,664 pixels). So rectangle coverage (#1020), the targets and the tests are fine.
  4. The real pixel stage writes zeros, and its light terms are zero before surface colour. The last instructions of both variants are mrt0 = diffuse × albedo + specular, mrt1 = packed diffuse. Patching the two final v_cvt_pkrtz_f16_f32 to export the diffuse registers gives zero. Patching the three v_mul_legacy_f32 vN, s11, ... before the final v_fma_f32 into v_mov_b32 vN, 1.0 ("full bright") gives 306,921 non-zero pixels in the float target right after the draw (largest 0.99): the scene's characters in their surface colours.

So on this card the open question is no longer whether the lighting draws reach their targets. It is why the accumulated light is zero: for the no-directional variant that is local lights plus ambient (the probe and ray-tracing passes are still dropped here); the directional variant draws tiles only in some frames.

Caution on dumps. In every one of these runs, the frame-end dump of that float target is zero or nearly so, including the frames where the copy taken right after the lighting draw holds hundreds of thousands of non-zero pixels. By the time a dump runs at present, the target has been cleared again (my guess: the next frame's lists have already run; I have not confirmed the cause). A zero frame-end dump of the lighting accumulation therefore does not show that lighting wrote nothing. My own earlier comments here leaned on such dumps.

Still not on screen: with the full-bright patch the presented frame is flat pale blue. I have not traced what happens between the lighting target and the output yet.

The diagnostics used (pipeline statistics plus samples-passed around named pixel shaders, target copy after a named draw, constant stand-in pixel stage, byte patch of unpacked native code before translation) are small; I can open PRs for any that would help others.

**@⁠ghost** on GitHub · 2026-11-24 19:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142385344) *AI-assisted (Claude Code). RTX 5080, same tree as above. Every target below is matched by the pointer the draw binds in that frame's trace, not by format.* **The tiled-lighting pass works end to end; its pixel stage computes zero light. And a caution about frame-end dumps of the lighting target.** Four checks on the two enabled variants in the opening scene (`TL_PS_PBR_MATERIAL_STANDARD`, `TL_PS_NoDir_PBR_MATERIAL_STANDARD`), each from a run that logs the pipeline's final state, wraps the draws in queries and copies their first target right after each draw: 1. **Pipeline state.** Blending off, write mask 15 on both targets, no stencil test, depth test EQUAL with depth writes off, DSV format 45. 2. **Nothing is discarded.** A samples-passed (occlusion) query around each draw equals its pixel-shader invocation count on every draw, for example 737,280 of 737,280, with the depth test on. 3. **A stand-in pixel stage reaches both targets.** Replacing the translated pixel stage by one that writes constants (0.25 to the float target, 7 to the format-42 one) puts those values on exactly the invocation count (753,664 pixels). So rectangle coverage (#1020), the targets and the tests are fine. 4. **The real pixel stage writes zeros, and its light terms are zero before surface colour.** The last instructions of both variants are `mrt0 = diffuse × albedo + specular`, `mrt1 = packed diffuse`. Patching the two final `v_cvt_pkrtz_f16_f32` to export the diffuse registers gives zero. Patching the three `v_mul_legacy_f32 vN, s11, ...` before the final `v_fma_f32` into `v_mov_b32 vN, 1.0` ("full bright") gives **306,921 non-zero pixels** in the float target right after the draw (largest 0.99): the scene's characters in their surface colours. So on this card the open question is no longer whether the lighting draws reach their targets. It is why the accumulated light is zero: for the no-directional variant that is local lights plus ambient (the probe and ray-tracing passes are still dropped here); the directional variant draws tiles only in some frames. **Caution on dumps.** In every one of these runs, the **frame-end** dump of that float target is zero or nearly so, including the frames where the copy taken right after the lighting draw holds hundreds of thousands of non-zero pixels. By the time a dump runs at present, the target has been cleared again (my guess: the next frame's lists have already run; I have not confirmed the cause). A zero frame-end dump of the lighting accumulation therefore does not show that lighting wrote nothing. My own earlier comments here leaned on such dumps. Still not on screen: with the full-bright patch the presented frame is flat pale blue. I have not traced what happens between the lighting target and the output yet. The diagnostics used (pipeline statistics plus samples-passed around named pixel shaders, target copy after a named draw, constant stand-in pixel stage, byte patch of unpacked native code before translation) are small; I can open PRs for any that would help others.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 19:41 UTC · original

RDNA4 with the depth-twin commits: the frame-end HDR dumps go from exactly zero to non-zero, plus a merge recipe onto the non-NVIDIA stack

@⁠lines9686-rgb took you up on the port offer the cheap way: cherry-picked the seven depth-uav commits (3dc4353..0b9a0f6, depth-uav branch) onto our stack (main ffe310e + the survival PR set from #59 + #180 + #1084 + the most-drawn present fallback) instead of carrying the whole NVIDIA test stack. One merge conflict (a test module) and one signature fix later, the diagnostics build runs clean — the twin code itself lands essentially as-is on the non-NVIDIA lineage.

Native Windows RDNA4 (RX 9070 XT), title 1.0.2.1, diagnostics build, VICTORY_LOCAL_DEPTH_UAV=1 VICTORY_LOCAL_D16_DEPTH=1, presented fallback on, world-entry frame dumps (capture frames 1650/1750/1850, targets matched by resource handle):

  • All four depth UAV views are served by twins: the D16 shadow map (title format 53), the D32 one (19), and both planes of the 16-bit depth-with-stencil material depth (118, plane 0 and plane 1). Zero "dropped" notes.
  • The 2560×1440 RGBA16F targets now have content. Same box, same capture machinery, frame 1650: on our previous head (stack without the twins) every RGBA16F dump was exactly zero; with the twins, all four 2560×1440 RGBA16F dumps hold sparse content (1,486–6,840 non-zero pixels at dump scale, three with the normalized max at 255). At frame 1750, four of five hold content (1,084–9,364 non-zero); the fifth and the 1280×720 one are still exactly zero. The richest dump shows structured, tile-shaped blocks — not noise specks (vision-checked). After today's frame-end-dump caution I state this narrowly: the twin serving changes what the frame-end dump sees here — writes that reached nowhere before now land in the HDR targets. Whether the values suffice for the lighting pixel stage to produce non-zero light is the question Gargalindis's comment leaves open.
  • The presented frame is still the unlit sparse scene (same inventory as our earlier RDNA4 report) — consistent with content-but-little-of-it in the HDR targets.
  • Survival: died ~620 s in-world in the usual family — device removed after a 28-list submission, 0x887A0006, a list stopped at command 4/11 on dispatch 1x1x1 [compute 37e19ccb4f889f63], page fault below all title copies. Frame cost unchanged (933 ms/frame, 698 ms preparing, copies 576 ms/361 MB).

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-24 19:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142449103) **RDNA4 with the depth-twin commits: the frame-end HDR dumps go from exactly zero to non-zero, plus a merge recipe onto the non-NVIDIA stack** @⁠lines9686-rgb took you up on the port offer the cheap way: cherry-picked the seven depth-uav commits (`3dc4353..0b9a0f6`, depth-uav branch) onto our stack (main `ffe310e` + the survival PR set from #59 + #180 + #1084 + the most-drawn present fallback) instead of carrying the whole NVIDIA test stack. One merge conflict (a test module) and one signature fix later, the diagnostics build runs clean — the twin code itself lands essentially as-is on the non-NVIDIA lineage. Native Windows RDNA4 (RX 9070 XT), title 1.0.2.1, diagnostics build, `VICTORY_LOCAL_DEPTH_UAV=1 VICTORY_LOCAL_D16_DEPTH=1`, presented fallback on, world-entry frame dumps (capture frames 1650/1750/1850, targets matched by resource handle): - **All four depth UAV views are served by twins**: the D16 shadow map (title format 53), the D32 one (19), and both planes of the 16-bit depth-with-stencil material depth (118, plane 0 and plane 1). Zero "dropped" notes. - **The 2560×1440 RGBA16F targets now have content.** Same box, same capture machinery, frame 1650: on our previous head (stack without the twins) every RGBA16F dump was exactly zero; with the twins, all four 2560×1440 RGBA16F dumps hold sparse content (1,486–6,840 non-zero pixels at dump scale, three with the normalized max at 255). At frame 1750, four of five hold content (1,084–9,364 non-zero); the fifth and the 1280×720 one are still exactly zero. The richest dump shows structured, tile-shaped blocks — not noise specks (vision-checked). After today's frame-end-dump caution I state this narrowly: the twin serving changes what the frame-end dump sees here — writes that reached nowhere before now land in the HDR targets. Whether the values suffice for the lighting pixel stage to produce non-zero light is the question Gargalindis's comment leaves open. - The presented frame is still the unlit sparse scene (same inventory as our earlier RDNA4 report) — consistent with content-but-little-of-it in the HDR targets. - Survival: died ~620 s in-world in the usual family — device removed after a 28-list submission, `0x887A0006`, a list stopped at command 4/11 on `dispatch 1x1x1 [compute 37e19ccb4f889f63]`, page fault below all title copies. Frame cost unchanged (933 ms/frame, 698 ms preparing, copies 576 ms/361 MB). AI-assisted (Hermes Agent)
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 19:48 UTC · original

@⁠hazben an update to my fix for testers/indirect-wave-dispatch: the branch is now at 3a9aa1a, and e234090 was not enough.

A 6,000-record stress test of the split-dispatch argument pass (added in 3a9aa1a) showed that e234090's bounded compare-exchange refused most records under contention on 64-lane waves. On a Radeon iGPU, only 2,771 of 6,000 small records were accepted, with the budget almost unused. It did not hang, but it dropped dispatches.

3a9aa1a uses the scheme that fork PR #11 measured with 6,000 records on an RTX 5070: one InterlockedAdd per record on a budget word counted in groups, a refund on refusal, records capped at 2^20 groups and batches of at most 63 groups, so the word cannot wrap. Measured on this machine, one run per device, with the stress test checking every output record:

device 6,000 small records with 12 records near the 2^20-group cap
WARP 6,000 accepted budget never overspent
Radeon iGPU 6,000 accepted budget never overspent
RTX 5070 6,000 accepted budget never overspent; no nvlddmkm event in the System log

Two caveats:

  • With the near-cap records, refusals are conservative while refunds are pending. Only 1,484 (RTX) or 632 (Radeon) of the 6,000 records ran, at a little over half the budget. Dispatches that large are far past what the title's traces show (single records for the cascade-shadow passes on #439).
  • On the Radeon iGPU, the branch's small end-to-end split-dispatch test fails the same way before and after this change: a dispatched group's output stays 0. That fits another review's finding on that iGPU, independent of this code, that only the first record of a multi-record indirect dispatch runs, but I have not traced it myself. The argument pass itself is exact there.

The title was not used in these tests.

AI-assisted

**@⁠r4tedx** on GitHub · 2026-11-24 19:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142608333) @⁠hazben an update to my fix for `testers/indirect-wave-dispatch`: the branch is now at `3a9aa1a`, and `e234090` was not enough. A 6,000-record stress test of the split-dispatch argument pass (added in `3a9aa1a`) showed that `e234090`'s bounded compare-exchange refused most records under contention on 64-lane waves. On a Radeon iGPU, only 2,771 of 6,000 small records were accepted, with the budget almost unused. It did not hang, but it dropped dispatches. `3a9aa1a` uses the scheme that fork PR #11 measured with 6,000 records on an RTX 5070: one `InterlockedAdd` per record on a budget word counted in groups, a refund on refusal, records capped at 2^20 groups and batches of at most 63 groups, so the word cannot wrap. Measured on this machine, one run per device, with the stress test checking every output record: | device | 6,000 small records | with 12 records near the 2^20-group cap | |---|---|---| | WARP | 6,000 accepted | budget never overspent | | Radeon iGPU | 6,000 accepted | budget never overspent | | RTX 5070 | 6,000 accepted | budget never overspent; no nvlddmkm event in the System log | Two caveats: - With the near-cap records, refusals are conservative while refunds are pending. Only 1,484 (RTX) or 632 (Radeon) of the 6,000 records ran, at a little over half the budget. Dispatches that large are far past what the title's traces show (single records for the cascade-shadow passes on #439). - On the Radeon iGPU, the branch's small end-to-end split-dispatch test fails the same way before and after this change: a dispatched group's output stays 0. That fits another review's finding on that iGPU, independent of this code, that only the first record of a multi-record indirect dispatch runs, but I have not traced it myself. The argument pass itself is exact there. The title was not used in these tests. AI-assisted
Author
Owner

@⁠Danigamer05 on GitHub · 2026-11-24 19:52 UTC · original

@⁠lines9686-rgb, a Turing run of depth-uav at 0b9a0f6, unmodified, diagnostics build: VICTORY_LOCAL_D16_DEPTH=1 ends the run with an invalid command at world entry on this card. Without it, the tree holds 20 minutes.

Setup. RTX 2080 SUPER (driver 621.01, WaveOps 32..32, mesh shaders on), Windows 11 Pro 26200, title 1.0.2.1, Series X mode. Your settings: VICTORY_LOCAL_WAVE64_MESH=1, VICTORY_SHADER_LOOP_LIMIT=1024, VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1, DRED off, VICTORY_PRESENT_1440P=1, VICTORY_LOCAL_DEPTH_UAV=1. Menus passed with VICTORY_KEYS.

With VICTORY_LOCAL_D16_DEPTH=1 (one run): all four depth UAV kinds were served as twins (title=118 host=53 view=56 plane=0, title=118 host=53 view=62 plane=1, title=19 host=19 view=41 plane=0, title=53 host=53 view=56 plane=0, each served="twin"). About 3.5 min after start, at frame 1616 (world entry, 0 to 2 draws per frame just before), the run ended with:

a host command list did not close (0x80070057): a command recorded into it was invalid

The last pipelines bound before it, at frame 1616: vertex 083a02d5871807ac + pixel 1cc673b9ca0a7f9b, vertex dfafaf385b2f94e8 + pixel 3fcf2e878b000017, mesh 21bd00836e1dfae5 + pixel a88fe11942146689. This machine has no D3D12 debug layer, so I can't name the command. A guess only: a PSO whose DSV format is the old D24S8 drawing into the now-D16 depth.

Without VICTORY_LOCAL_D16_DEPTH, everything else the same: 20 minutes, ended by my timeout with the title running, no device removal. World at 1.55 fps (645 ms/frame mean over 167 lines: about 210 ms copies, 220 ms on the GPU), about 4,200 draws per frame. For comparison, integration/testers at 4744af9 on this card runs the same scene at 0.28 fps, mostly because the 174 MB heap at 0xafa0000 is refreshed about 24 times per frame there.

VICTORY_DUMP_TARGETS=1 at world frames 1700 to 2050 saved only 15 to 17 targets per frame on this tree: the 2048x2048 shadow map, the 2560x1440 f28 targets, the f19 depth and small ones. No 2560x1440 f10 or f42 target (the tiled-lighting pair) appears in any of those frames, so the lighting draws never bound their targets here. Two f28 targets also show the large flat triangles across the lower half that I reported for integration/testers.

No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.

**@⁠Danigamer05** on GitHub · 2026-11-24 19:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142711825) @⁠lines9686-rgb, a Turing run of [`depth-uav`](https://github.com/lines9686-rgb/VIctory/tree/depth-uav) at `0b9a0f6`, unmodified, diagnostics build: `VICTORY_LOCAL_D16_DEPTH=1` ends the run with an invalid command at world entry on this card. Without it, the tree holds 20 minutes. **Setup.** RTX 2080 SUPER (driver 621.01, WaveOps 32..32, mesh shaders on), Windows 11 Pro 26200, title 1.0.2.1, Series X mode. Your settings: `VICTORY_LOCAL_WAVE64_MESH=1`, `VICTORY_SHADER_LOOP_LIMIT=1024`, `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1`, DRED off, `VICTORY_PRESENT_1440P=1`, `VICTORY_LOCAL_DEPTH_UAV=1`. Menus passed with `VICTORY_KEYS`. **With `VICTORY_LOCAL_D16_DEPTH=1`** (one run): all four depth UAV kinds were served as twins (`title=118 host=53 view=56 plane=0`, `title=118 host=53 view=62 plane=1`, `title=19 host=19 view=41 plane=0`, `title=53 host=53 view=56 plane=0`, each `served="twin"`). About 3.5 min after start, at frame 1616 (world entry, 0 to 2 draws per frame just before), the run ended with: ``` a host command list did not close (0x80070057): a command recorded into it was invalid ``` The last pipelines bound before it, at frame 1616: vertex `083a02d5871807ac` + pixel `1cc673b9ca0a7f9b`, vertex `dfafaf385b2f94e8` + pixel `3fcf2e878b000017`, mesh `21bd00836e1dfae5` + pixel `a88fe11942146689`. This machine has no D3D12 debug layer, so I can't name the command. A guess only: a PSO whose DSV format is the old D24S8 drawing into the now-D16 depth. **Without `VICTORY_LOCAL_D16_DEPTH`**, everything else the same: 20 minutes, ended by my timeout with the title running, no device removal. World at 1.55 fps (645 ms/frame mean over 167 lines: about 210 ms copies, 220 ms on the GPU), about 4,200 draws per frame. For comparison, `integration/testers` at `4744af9` on this card runs the same scene at 0.28 fps, mostly because the 174 MB heap at `0xafa0000` is refreshed about 24 times per frame there. `VICTORY_DUMP_TARGETS=1` at world frames 1700 to 2050 saved only 15 to 17 targets per frame on this tree: the 2048x2048 shadow map, the 2560x1440 f28 targets, the f19 depth and small ones. No 2560x1440 f10 or f42 target (the tiled-lighting pair) appears in any of those frames, so the lighting draws never bound their targets here. Two f28 targets also show the large flat triangles across the lower half that I reported for `integration/testers`. No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 19:35 UTC · original · edited 2026-11-24 19:55 UTC

Same result on Turing, with one setting fewer: fxceless/victory-gta6 d279e69 renders the lit prison yard on an RTX 2080 (8 GB, 32-lane waves, driver 616.56, Windows 11, Series X profile, diag build of the fork unchanged).

  • Used here: VICTORY_SHADER_LOOP_LIMIT=32 only. No VICTORY_SKIP_PIPELINES; eeed82b877b44b5f, 269b802f878c24e1 and b83629b90cd2b7bc were all bound and ran here without stopping the card.
  • Without it (one run each): the plain run lost the device in the world with 0x887A0004, reason "invalid call" and no breadcrumbs. The run under the debug layer ended in DEVICE_HUNG, and DRED stops in an indirect dispatch of compute cabb87599722e59a (ptfx_CS_lightAtlas_NonLocalLights_Sprite), at command 69 of 78. Details, including the debug-layer messages, are in fxceless/victory-gta6#5.
  • With it: the cold-cache run reaches gameplay and is black for about 10 minutes while ~2,000 draws/frame wait on ~1,500 pipelines. It then fills in: sky, sun, the yard, the barracks corridor and the cellmates, back-lit, with shadowed areas black as the README says. That's 4,600–6,500 draws/frame (peaks near 10,000) at 615–940 ms/frame, with movement working. No device loss in that 30-minute run (stopped by my own time limit), nor in a second, shorter one (with VICTORY_RELAY=2).
  • Update: the limit does not make it stable. A later unattended run with the same build and the same setting lost the device about 5 minutes after launch, frame ~1,750, with the same "invalid call" as the plain run. In both of those runs the last error before it is the fork's own the host device went while buffer views of the heap were made, which narrows it to a batch of up to 64 views or whatever else ran at that moment. I'm running the debug layer on it.
  • The hang itself is answered: the fork's author traced it to the wave64 form that 6a2d9f9 introduced, and e9765a7 turns that form off (fxceless/victory-gta6#5). I'm testing that head on this card without the limit.

(Edited: I first said here that #984's raw-versus-structured mismatch is why the fork needs the limit, and that I'd try #984 on it. After reading the fork, I don't think that follows.) The fork handles that mismatch from the other side: it makes the title's structured buffer views raw on the host whenever their bytes start on 16. With #984 on top, those raw views would be read as structured. What stays structured there is a view whose start isn't a multiple of 16, so that is what I'd count next. I haven't measured whether cabb87599722e59a has one. The fork's default limit for compute is also 4,096 rather than 2^20, so the limit of 32 isn't the difference between a bounded and an endless loop.

For main, see LooperSalty/AnyXboxX#164 and the #984 thread, where a scalar-only change still hung an RTX 2070 SUPER and #984 plus #986 together did not (the reporter couldn't tell which of the two parts was needed).

AI-assisted (Claude Code); counts only, nothing from the game attached.

**@⁠NuraadGit** on GitHub · 2026-11-24 19:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7142306171) · edited 2026-11-24 19:55 UTC Same result on Turing, with one setting fewer: **fxceless/victory-gta6 `d279e69` renders the lit prison yard on an RTX 2080** (8 GB, 32-lane waves, driver 616.56, Windows 11, Series X profile, diag build of the fork unchanged). - **Used here:** `VICTORY_SHADER_LOOP_LIMIT=32` only. No `VICTORY_SKIP_PIPELINES`; `eeed82b877b44b5f`, `269b802f878c24e1` and `b83629b90cd2b7bc` were all bound and ran here without stopping the card. - **Without it** (one run each): the plain run lost the device in the world with `0x887A0004`, reason "invalid call" and no breadcrumbs. The run under the debug layer ended in `DEVICE_HUNG`, and DRED stops in an indirect dispatch of compute `cabb87599722e59a` (`ptfx_CS_lightAtlas_NonLocalLights_Sprite`), at command 69 of 78. Details, including the debug-layer messages, are in fxceless/victory-gta6#5. - **With it:** the cold-cache run reaches gameplay and is black for about 10 minutes while ~2,000 draws/frame wait on ~1,500 pipelines. It then fills in: sky, sun, the yard, the barracks corridor and the cellmates, back-lit, with shadowed areas black as the README says. That's 4,600–6,500 draws/frame (peaks near 10,000) at 615–940 ms/frame, with movement working. No device loss in that 30-minute run (stopped by my own time limit), nor in a second, shorter one (with `VICTORY_RELAY=2`). - **Update: the limit does not make it stable.** A later unattended run with the same build and the same setting lost the device about 5 minutes after launch, frame ~1,750, with the same "invalid call" as the plain run. In both of those runs the last error before it is the fork's own `the host device went while buffer views of the heap were made`, which narrows it to a batch of up to 64 views or whatever else ran at that moment. I'm running the debug layer on it. - **The hang itself is answered:** the fork's author traced it to the wave64 form that `6a2d9f9` introduced, and `e9765a7` turns that form off (fxceless/victory-gta6#5). I'm testing that head on this card without the limit. *(Edited: I first said here that #984's raw-versus-structured mismatch is why the fork needs the limit, and that I'd try #984 on it. After reading the fork, I don't think that follows.)* The fork handles that mismatch from the other side: it makes the title's structured buffer views raw on the host whenever their bytes start on 16. With #984 on top, those raw views would be read as structured. What stays structured there is a view whose start isn't a multiple of 16, so that is what I'd count next. I haven't measured whether `cabb87599722e59a` has one. The fork's default limit for compute is also 4,096 rather than 2^20, so the limit of 32 isn't the difference between a bounded and an endless loop. For `main`, see LooperSalty/AnyXboxX#164 and the #984 thread, where a scalar-only change still hung an RTX 2070 SUPER and #984 plus #986 together did not (the reporter couldn't tell which of the two parts was needed). AI-assisted (Claude Code); counts only, nothing from the game attached.
Author
Owner

@⁠MD5Visual on GitHub · 2026-11-24 20:05 UTC · original

RTX 3090, mpDom present branch: two clean runs, the presented image is the 1440p target, and 94 % of mesh dispatches are handed zero-group records

Setup. RTX 3090 (24 GB, driver 610.88), RTX 2070 SUPER as the display adapter; the 3090 is selected locally by LUID. Windows 11 26200, title 1.0.2.1 (b99f876b…), Series X. Tree: mpDom/VIctory pr/present-1440p-fallback at d6897fa, plus three local diagnostic changes only: the adapter pick, F8 frame capture, and a stable 1440p pick (keep presenting the f28 target while draws go into it, instead of the last one bound). VICTORY_SHADER_LOOP_LIMIT=32, DRED off, VICTORY_PRESENT_1440P=1, VICTORY_DRAW_STATS=1, diagnostics build. Two runs, 694 s and 602 s, user-closed. No other tree changes; nothing from the game attached.

Survival and cost. No device removals, 0 and 2 slow submissions (316/446 ms), 7 and 6 host pipeline refusals (all 0x8007000E), 197 and 193 "does not translate" lines. Menus 30 fps, escape menu 7.5 fps, world 1.0–1.1 fps in the first run and 0.7–1.4 fps in the second (one 7.4 s frame during the F8 dumps).

The presented image is the target, live. The stable pick changed 6 times in 694 s and once in 602 s; it held one f28 target per run for 9.5 min and for the rest of the second run. At F8 frame 2685 and F8 frame 3135 the presented PNG is SHA-256 identical to the picked target's dump: 16,516 bytes, mean 0.8/255, 0.8 % nonzero in the first; 25,464 bytes, mean 1.6, 1.1 % nonzero in the second. The second frame has recognisable objects in the scene target — lamp post, fence, building corner, a weapon shape — all unlit, no ground or sky. So the sparse picture is the title's scene target at present, not the 4K step and not a frame-end dump artefact. The 3840×2160 target is mean 0.4, 34.8 % nonzero (dither) at 2685 and a flat dark grey fill (mean 40.3, 100 % nonzero) at 3135; neither carries the scene.

Where the draw work goes (world window containing F8 2685, per frame):

  • 2,537 executed draw calls: 271 classic direct draws, 6 indirect draws + 28 indirect indexed draws, 1,906 indirect mesh dispatches, and ~326 direct mesh dispatches (by subtraction).
  • ~690–1,030 dropped without a host pipeline (616–633 indirect); largest compute drops 31/frame and 18/frame.
  • Of the sampled indirect draw/indexed records (67 in that window): 9 % zero vertex/index count, 82 % zero instances. Some windows carry garbage instance totals (7.49 bn, 20.46 bn). Caveat: arguments are sampled from the host copy, so CPU-written ones can be one frame stale.
  • 194 of the 271 classic direct draws bind no vertex buffer in any slot.

The mesh arguments are the new result. Across 88 one-second windows with mesh work, there are 1,827–1,998 indirect mesh executions per frame, each exactly one record (max equals the execution count, so no unused tail records are being sampled). Median 94.1 % of those records have all three group counts zero (min 33.4 %, max 100 %). In 77 of the 88 windows the non-empty records sum to more than 1e9 groups, i.e. the few that are not zero carry implausible counts. Caveat: sampled from the host copy at record time, not a fence-completed readback; a buffer written later in the same submission would read stale. The zero share is consistent with the culling programs being dropped, and the garbage share looks like buffers that were never written.

Culling link. Of the six culling hashes in @⁠lines9686-rgb's comment (commit 5192322), on this tree 3b471c122be79b3e and 764ca63daec9c616 drop at ~10/frame each and fc5e66f8f873d3bb also fails, while 9f017d9011377efa, 0452fc2d2e2fc4c3 and 87bf9e3f2bf2f052 translate and run. The refusal here is not the gather: all three failing ones stop at GFX10 code at 0x3e0: a hardware SGPR input is not supported. On this base the culling programs die one step earlier than the image_gather4_l lowering, so lowering the gather alone would not fill their output.

Next I can either do a fence-completed sample of the mesh arguments or trace which pass writes those buffers; both would separate "zero groups written" from "stale read". Is the args-init producer known to depend on the culling programs above on this base?

AI-assisted; machine, tree and switches as stated. No game files, captures or dumps attached.

**@⁠MD5Visual** on GitHub · 2026-11-24 20:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7143023899) **RTX 3090, mpDom present branch: two clean runs, the presented image is the 1440p target, and 94 % of mesh dispatches are handed zero-group records** **Setup.** RTX 3090 (24 GB, driver 610.88), RTX 2070 SUPER as the display adapter; the 3090 is selected locally by LUID. Windows 11 26200, title 1.0.2.1 (`b99f876b…`), Series X. Tree: mpDom/VIctory `pr/present-1440p-fallback` at `d6897fa`, plus three local diagnostic changes only: the adapter pick, F8 frame capture, and a stable 1440p pick (keep presenting the f28 target while draws go into it, instead of the last one bound). `VICTORY_SHADER_LOOP_LIMIT=32`, DRED off, `VICTORY_PRESENT_1440P=1`, `VICTORY_DRAW_STATS=1`, diagnostics build. Two runs, 694 s and 602 s, user-closed. No other tree changes; nothing from the game attached. **Survival and cost.** No device removals, 0 and 2 slow submissions (316/446 ms), 7 and 6 host pipeline refusals (all `0x8007000E`), 197 and 193 "does not translate" lines. Menus 30 fps, escape menu 7.5 fps, world 1.0–1.1 fps in the first run and 0.7–1.4 fps in the second (one 7.4 s frame during the F8 dumps). **The presented image is the target, live.** The stable pick changed 6 times in 694 s and once in 602 s; it held one f28 target per run for 9.5 min and for the rest of the second run. At F8 frame 2685 and F8 frame 3135 the presented PNG is SHA-256 identical to the picked target's dump: 16,516 bytes, mean 0.8/255, 0.8 % nonzero in the first; 25,464 bytes, mean 1.6, 1.1 % nonzero in the second. The second frame has recognisable objects in the scene target — lamp post, fence, building corner, a weapon shape — all unlit, no ground or sky. So the sparse picture is the title's scene target at present, not the 4K step and not a frame-end dump artefact. The 3840×2160 target is mean 0.4, 34.8 % nonzero (dither) at 2685 and a flat dark grey fill (mean 40.3, 100 % nonzero) at 3135; neither carries the scene. **Where the draw work goes** (world window containing F8 2685, per frame): - 2,537 executed draw calls: 271 classic direct draws, 6 indirect draws + 28 indirect indexed draws, 1,906 indirect mesh dispatches, and ~326 direct mesh dispatches (by subtraction). - ~690–1,030 dropped without a host pipeline (616–633 indirect); largest compute drops 31/frame and 18/frame. - Of the sampled indirect draw/indexed records (67 in that window): 9 % zero vertex/index count, 82 % zero instances. Some windows carry garbage instance totals (7.49 bn, 20.46 bn). Caveat: arguments are sampled from the host copy, so CPU-written ones can be one frame stale. - 194 of the 271 classic direct draws bind no vertex buffer in any slot. **The mesh arguments are the new result.** Across 88 one-second windows with mesh work, there are 1,827–1,998 indirect mesh executions per frame, each exactly one record (`max` equals the execution count, so no unused tail records are being sampled). Median 94.1 % of those records have all three group counts zero (min 33.4 %, max 100 %). In 77 of the 88 windows the non-empty records sum to more than 1e9 groups, i.e. the few that are not zero carry implausible counts. Caveat: sampled from the host copy at record time, not a fence-completed readback; a buffer written later in the same submission would read stale. The zero share is consistent with the culling programs being dropped, and the garbage share looks like buffers that were never written. **Culling link.** Of the six culling hashes in @⁠lines9686-rgb's comment (commit `5192322`), on this tree `3b471c122be79b3e` and `764ca63daec9c616` drop at ~10/frame each and `fc5e66f8f873d3bb` also fails, while `9f017d9011377efa`, `0452fc2d2e2fc4c3` and `87bf9e3f2bf2f052` translate and run. The refusal here is not the gather: all three failing ones stop at `GFX10 code at 0x3e0: a hardware SGPR input is not supported`. On this base the culling programs die one step earlier than the `image_gather4_l` lowering, so lowering the gather alone would not fill their output. Next I can either do a fence-completed sample of the mesh arguments or trace which pass writes those buffers; both would separate "zero groups written" from "stale read". Is the args-init producer known to depend on the culling programs above on this base? *AI-assisted; machine, tree and switches as stated. No game files, captures or dumps attached.*
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-24 20:06 UTC · original

Rebuilt and expanded the PresentX / render-graph provenance tracer cleanly onto main (ffe310e) under #[cfg(feature = "diagnostics")] in fuzeofficlal/VIctory@4e68556 (branch diag/m2-present-source-841) so anyone investigating the post-G-buffer zero-HDR lighting chain can trace upstream writers directly on main:

  • Submission-ordered, guard-validated write tracking: Buffers per-HostList writes (ClearRtv/Dsv, Draw*/DispatchMesh, Dispatch, ExecuteIndirect, Copy*, Resolve*, TextureUpload, DepthTwinSync, and View::Placed(true) UAV subranges), clears uncommitted lists on HostList::reset(), commits in exact (submission, list_index, op_index) order at Host::submit, and walks backward with strict < ordering (depth cap 8, cycle-free across ping-pong targets, invalidating freed addresses on Resource::drop).
  • Targeted PSO input & dropped-dispatch tracing: Supports VICTORY_TRACE_INPUTS_PSO=<hash> / VICTORY_TRACE_INPUTS_VS=<hash> to log the exact last writer of every SRV/UAV/CBV read by a target lighting pass, alongside a ring buffer of dropped compute shader translations / skipped dispatches ("never host-written" vs "dropped upstream CS translation").
  • Verified with 18 synthetic multi-list/ping-pong/placed-UAV correlation tests (68 passed, 0 failed under VICTORY_D3D12_DEBUG=1 on RTX 5090 and D3D12 WARP).
**@⁠fuzeofficlal** on GitHub · 2026-11-24 20:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7143061156) Rebuilt and expanded the `PresentX` / render-graph provenance tracer cleanly onto `main` (`ffe310e`) under `#[cfg(feature = "diagnostics")]` in [`fuzeofficlal/VIctory@4e68556`](https://github.com/fuzeofficlal/VIctory/commit/4e68556) (branch [`diag/m2-present-source-841`](https://github.com/fuzeofficlal/VIctory/tree/diag/m2-present-source-841)) so anyone investigating the post-G-buffer zero-HDR lighting chain can trace upstream writers directly on `main`: - **Submission-ordered, guard-validated write tracking**: Buffers per-`HostList` writes (`ClearRtv/Dsv`, `Draw*`/`DispatchMesh`, `Dispatch`, `ExecuteIndirect`, `Copy*`, `Resolve*`, `TextureUpload`, `DepthTwinSync`, and `View::Placed(true)` UAV subranges), clears uncommitted lists on `HostList::reset()`, commits in exact `(submission, list_index, op_index)` order at `Host::submit`, and walks backward with strict `<` ordering (depth cap `8`, cycle-free across ping-pong targets, invalidating freed addresses on `Resource::drop`). - **Targeted PSO input & dropped-dispatch tracing**: Supports `VICTORY_TRACE_INPUTS_PSO=<hash>` / `VICTORY_TRACE_INPUTS_VS=<hash>` to log the exact last writer of every SRV/UAV/CBV read by a target lighting pass, alongside a ring buffer of dropped compute shader translations / skipped dispatches (`"never host-written"` vs `"dropped upstream CS translation"`). - Verified with 18 synthetic multi-list/ping-pong/placed-UAV correlation tests (`68 passed, 0 failed` under `VICTORY_D3D12_DEBUG=1` on **RTX 5090** and **D3D12 WARP**).
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 20:12 UTC · original

The fork on native RDNA4: same low-address device removal ~30 s into the world — and a translation-coverage headline

Ran the victory-gta6 fork at 7b0f736 (diagnostics build, all switches at their defaults, VICTORY_D3D12_DRED=1, automated key press-through, capture frames 1650/1750/1850), title 1.0.2.1, native Windows RDNA4.

  • Boot and menus ~30 fps; the first world streaming phase starts around frame 1870 and runs at ~1.4 fps in-world (frames 1850→1900 take 39 s, 1900→1915 take 9.7 s) — the host-copy-bound level this box sits at on other lineages, not the 2–4 fps from the RTX report. The captures that fired before world entry show the stylized loading art (frame 1650) and black (1750/1850).
  • Death at frame 1916 (~30 s of world streaming, exit 0x887A0005): device removed after a submission of 7 lists, page fault at 0x11e0f0000 with no title-memory copy below it, a list stopped at command 279 of 391 on indirect kind 2 max 1 [compute 0452fc2d2e2fc4c3]. Same fault-below-copies family reported from this box before — so this fork's stability work for NVIDIA does not carry the RDNA4 death away; the fault appears host-independent.
  • The coverage number is the interesting part: across boot, menus and world entry, only 4 unique shaders refused translation (b22a16a178976e1b, 7f05ddab771799a9, a53a7977fe762268, be14e72d86362031) where our stack still drops on the order of 330 unique shaders at the same milestone — the fork's translator absorbs essentially everything else. All four refusals are RDNA-only back-end shapes that never surface on NVIDIA: a wave sum of 16-bit floats where not every lane runs is not supported and a lane mask holding lanes elsewhere read as data is not supported (GFX10 code).
  • The lit prologue was not reached in two runs: the opening cutscene plays first, and a repeat (same head, captures moved to frames 1890/1905/1915) died even earlier — device removed at frame 1715, mid world-streaming, page fault at 0x3f19000, again no title copy below. On this card the fault family arrives inside the first ~45 s of the world phase, before the handoff to the prologue would land. (Two runs, two deaths, fault address varies between them — same timing-dependent family reported by others here and by us before.)

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-24 20:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7143193701) **The fork on native RDNA4: same low-address device removal ~30 s into the world — and a translation-coverage headline** Ran the `victory-gta6` fork at `7b0f736` (diagnostics build, all switches at their defaults, `VICTORY_D3D12_DRED=1`, automated key press-through, capture frames 1650/1750/1850), title 1.0.2.1, native Windows RDNA4. - Boot and menus ~30 fps; the first world streaming phase starts around frame 1870 and runs at ~1.4 fps in-world (frames 1850→1900 take 39 s, 1900→1915 take 9.7 s) — the host-copy-bound level this box sits at on other lineages, not the 2–4 fps from the RTX report. The captures that fired before world entry show the stylized loading art (frame 1650) and black (1750/1850). - Death at frame 1916 (~30 s of world streaming, exit `0x887A0005`): device removed after a submission of 7 lists, page fault at `0x11e0f0000` with **no title-memory copy below it**, a list stopped at command 279 of 391 on `indirect kind 2 max 1 [compute 0452fc2d2e2fc4c3]`. Same [fault-below-copies family reported from this box before](https://git.gtahub.st/github/Marvisak--VIctory/issues/59) — so this fork's stability work for NVIDIA does not carry the RDNA4 death away; the fault appears host-independent. - The coverage number is the interesting part: across boot, menus and world entry, **only 4 unique shaders refused translation** (`b22a16a178976e1b`, `7f05ddab771799a9`, `a53a7977fe762268`, `be14e72d86362031`) where our stack still drops on the order of 330 unique shaders at the same milestone — the fork's translator absorbs essentially everything else. All four refusals are RDNA-only back-end shapes that never surface on NVIDIA: `a wave sum of 16-bit floats where not every lane runs is not supported` and `a lane mask holding lanes elsewhere read as data is not supported` (GFX10 code). - The lit prologue was not reached in two runs: the opening cutscene plays first, and a repeat (same head, captures moved to frames 1890/1905/1915) died even earlier — device removed at frame 1715, mid world-streaming, page fault at `0x3f19000`, again no title copy below. On this card the fault family arrives inside the first ~45 s of the world phase, before the handoff to the prologue would land. (Two runs, two deaths, fault address varies between them — same timing-dependent family reported by others here and by us before.) AI-assisted (Hermes Agent)
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 20:26 UTC · original

@⁠Danigamer05 thanks for the Turing run. Your guess matches what the branch can do. With VICTORY_LOCAL_D16_DEPTH=1, textures of the console's 16-bit depth formats become host D16. A pipeline whose depth-stencil format the title declared as the 16-bit-with-stencil format, and which the host built for D24S8 before the switch took effect, then mismatches the DSV it is bound with. 0b9a0f6 only logs that case once ("with a pipeline for another depth format") and does not rebuild the pipeline. On my RTX 3060 Ti it didn't fire, but a different first-bind order on your card would hit it at world entry, and an invalid command there is the expected symptom.

The fix is to key those pipelines on the host depth format, so they are built for D16 in that mode. I'll post it on the branch with a test that binds such a pipeline to a D16 target. Until then, keep VICTORY_LOCAL_D16_DEPTH off. Thanks also for the 20-minute run and the 1.55 vs 0.28 fps comparison without it.

AI-assisted (Claude Code).

**@⁠lines9686-rgb** on GitHub · 2026-11-24 20:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7143558078) @⁠Danigamer05 thanks for the Turing run. Your guess matches what the branch can do. With `VICTORY_LOCAL_D16_DEPTH=1`, textures of the console's 16-bit depth formats become host D16. A pipeline whose depth-stencil format the title declared as the 16-bit-with-stencil format, and which the host built for D24S8 before the switch took effect, then mismatches the DSV it is bound with. `0b9a0f6` only logs that case once ("with a pipeline for another depth format") and does not rebuild the pipeline. On my RTX 3060 Ti it didn't fire, but a different first-bind order on your card would hit it at world entry, and an invalid command there is the expected symptom. The fix is to key those pipelines on the host depth format, so they are built for D16 in that mode. I'll post it on the branch with a test that binds such a pipeline to a D16 target. Until then, keep `VICTORY_LOCAL_D16_DEPTH` off. Thanks also for the 20-minute run and the 1.55 vs 0.28 fps comparison without it. AI-assisted (Claude Code).
Author
Owner

@⁠Asenje on GitHub · 2026-11-24 20:28 UTC · original

@⁠r4tedx re "If a run at update 9 ends sooner…": on an RTX 3060 12 GB (Series X, update 9 + the most-draws pick), every run with the four instance-culling programs translated ended at the title's +0x5149aec with INSTANCE_LIST 45000/45000, after 7–11.5 min. With VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5, one run lasted 22+ min and was closed by hand, and another ended after ~16 min with INSTANCE_LIST at 17856/45000, at a different fault (+0x4fafeae, read 0xffffffff00000000). So on this card those four programs are what fills the pool. Details in #886.

**@⁠Asenje** on GitHub · 2026-11-24 20:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7143601393) @⁠r4tedx re "If a run at update 9 ends sooner…": on an RTX 3060 12 GB (Series X, update 9 + the most-draws pick), every run with the four instance-culling programs translated ended at the title's +0x5149aec with INSTANCE_LIST 45000/45000, after 7–11.5 min. With VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5, one run lasted 22+ min and was closed by hand, and another ended after ~16 min with INSTANCE_LIST at 17856/45000, at a different fault (+0x4fafeae, read 0xffffffff00000000). So on this card those four programs are what fills the pool. Details in #886.
Author
Owner

@⁠sash2kk on GitHub · 2026-11-24 20:49 UTC · original

RTX 4090: fxceless/victory-gta6 renders the lit prison yard here too, at about 3 fps. Plus update 9 and update 10 of integration/testers on the same card.

Machine: Windows 11 Pro 23H2 (22631), RTX 4090 24 GB (driver 32.0.16.1088, 32..32 lanes), i7-13700K, 32 GB. Title 1.0.2.1, Series X mode, an existing save that goes straight into the prologue. Diagnostics builds, each tree unmodified in its own worktree and target dir, and the same VICTORY_KEYS script each run (Enter every 60–120 s). One run per tree, 14–20 min, all stopped by my timeout. None of them lost the device.

tree switches world draws/frame (avg / max) dropped/frame untranslated fps
main ffe310e + #493, eeed82b877b44b5f skipped LOOP_LIMIT=1024 17.5 min 2,047 / 3,618 1,216 – 1.15
integration/testers update 9 (94e0ea5) LOOP_LIMIT=32, PRESENT_1440P=1 17 min 2,429 / 9,680 625 132 0.18
integration/testers update 10 (4744af9) LOOP_LIMIT=32, PRESENT_1440P=1 16 min 2,135 / 3,426 630 117 0.23
fxceless/victory-gta6 7b0f736 LOOP_LIMIT=32 only 12 min 4,137 / 6,981 352 9 3.1

The fork. Its picture is the lit prison yard, as on @⁠NuraadGit's 2080: the watchtower, the walls, people in the yard and low sun with shadows. eeed82b877b44b5f runs without a skip. What is still wrong on this card:

  • Hair strands are scattered over large parts of the frame, and parts of characters come and go between frames.
  • Blocky, mosaic-like patches appear in some surfaces near the bottom and right edges.
  • Of the 352 drops per frame, 338 are the ray-tracing structure builder, which the fork keeps off (its docs/fork-ray-tracing.md says nothing is lit by ray tracing yet). The rest is a handful of compute dispatches.
  • The 9 untranslated programs: 2× a wave reduction where not every lane runs (a53a7977fe762268, be14e72d86362031), 2× pixel a descriptor read only as data (7d0f14ce44746d7e, 6b6db9f1a526daeb), 2× v_cvt_f32_f64 (5dc3b25986622949, 6f225b641c5b0708), and one each of v_permlanex16_b32 (a929109552ce1e84), a lane mask exchanged where not every lane runs (f133e35efed2a48a) and a lane mask holding lanes elsewhere read as data (7f05ddab771799a9).
  • Frame time is mostly copies, not GPU: a typical world frame is 520–1,270 ms, of which 100–510 ms is "preparing" (copies and texture uploads) and 60–240 ms is copying back. The GPU part is 95–275 ms.

Update 9 and update 10. Both hold the world with eeed82b877b44b5f running; it hangs this card on main + #578 within seconds. With VICTORY_PRESENT_1440P the presented 2560x1440 target is a noisy false-colour view (horizon, a pole, objects, heavy per-pixel noise), the same at update 10 as at update 9. VICTORY_DUMP_TARGETS with VICTORY_CAPTURE_FRAMES saved only 3 targets per listed frame on these trees; on main + #493 the same settings saved about 180. There, the geometry was in a 2560x1440 R8_UINT target (format 62, a full silhouette) while the colour targets stayed empty.

AI-assisted (Claude Code). Counts and descriptions only; no captures attached.

**@⁠sash2kk** on GitHub · 2026-11-24 20:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7144094561) **RTX 4090: `fxceless/victory-gta6` renders the lit prison yard here too, at about 3 fps. Plus update 9 and update 10 of `integration/testers` on the same card.** Machine: Windows 11 Pro 23H2 (22631), RTX 4090 24 GB (driver 32.0.16.1088, 32..32 lanes), i7-13700K, 32 GB. Title 1.0.2.1, Series X mode, an existing save that goes straight into the prologue. Diagnostics builds, each tree unmodified in its own worktree and target dir, and the same `VICTORY_KEYS` script each run (Enter every 60–120 s). One run per tree, 14–20 min, all stopped by my timeout. None of them lost the device. | tree | switches | world | draws/frame (avg / max) | dropped/frame | untranslated | fps | |---|---|---|---|---|---|---| | `main` `ffe310e` + #493, `eeed82b877b44b5f` skipped | `LOOP_LIMIT=1024` | 17.5 min | 2,047 / 3,618 | 1,216 | – | 1.15 | | `integration/testers` update 9 (`94e0ea5`) | `LOOP_LIMIT=32`, `PRESENT_1440P=1` | 17 min | 2,429 / 9,680 | 625 | 132 | 0.18 | | `integration/testers` update 10 (`4744af9`) | `LOOP_LIMIT=32`, `PRESENT_1440P=1` | 16 min | 2,135 / 3,426 | 630 | 117 | 0.23 | | **`fxceless/victory-gta6` `7b0f736`** | **`LOOP_LIMIT=32` only** | 12 min | **4,137 / 6,981** | 352 | **9** | **3.1** | **The fork.** Its picture is the lit prison yard, as on @⁠NuraadGit's 2080: the watchtower, the walls, people in the yard and low sun with shadows. `eeed82b877b44b5f` runs without a skip. What is still wrong on this card: - **Hair strands** are scattered over large parts of the frame, and parts of characters come and go between frames. - **Blocky, mosaic-like patches** appear in some surfaces near the bottom and right edges. - Of the 352 drops per frame, **338 are the ray-tracing structure builder, which the fork keeps off** (its `docs/fork-ray-tracing.md` says nothing is lit by ray tracing yet). The rest is a handful of compute dispatches. - **The 9 untranslated programs:** 2× `a wave reduction where not every lane runs` (`a53a7977fe762268`, `be14e72d86362031`), 2× pixel `a descriptor read only as data` (`7d0f14ce44746d7e`, `6b6db9f1a526daeb`), 2× `v_cvt_f32_f64` (`5dc3b25986622949`, `6f225b641c5b0708`), and one each of `v_permlanex16_b32` (`a929109552ce1e84`), `a lane mask exchanged where not every lane runs` (`f133e35efed2a48a`) and `a lane mask holding lanes elsewhere read as data` (`7f05ddab771799a9`). - **Frame time is mostly copies, not GPU:** a typical world frame is 520–1,270 ms, of which 100–510 ms is "preparing" (copies and texture uploads) and 60–240 ms is copying back. The GPU part is 95–275 ms. **Update 9 and update 10.** Both hold the world with `eeed82b877b44b5f` running; it hangs this card on `main` + #578 within seconds. With `VICTORY_PRESENT_1440P` the presented 2560x1440 target is a noisy false-colour view (horizon, a pole, objects, heavy per-pixel noise), the same at update 10 as at update 9. `VICTORY_DUMP_TARGETS` with `VICTORY_CAPTURE_FRAMES` saved only 3 targets per listed frame on these trees; on `main` + #493 the same settings saved about 180. There, the geometry was in a 2560x1440 R8_UINT target (format 62, a full silhouette) while the colour targets stayed empty. AI-assisted (Claude Code). Counts and descriptions only; no captures attached.
Author
Owner

@⁠Danigamer05 on GitHub · 2026-11-24 21:11 UTC · original

@⁠lines9686-rgb, follow-up to my Turing run of depth-uav at 0b9a0f6. I had left out VICTORY_LOCAL_WAVE64_COMPUTE=1, and that changes two things.

Setup. RTX 2080 SUPER (driver 621.01, WaveOps 32..32), Windows 11 Pro 26200, title 1.0.2.1, Series X mode. VICTORY_LOCAL_WAVE64_MESH=1, VICTORY_LOCAL_WAVE64_COMPUTE=1, VICTORY_LOCAL_DEPTH_UAV=1, VICTORY_SHADER_LOOP_LIMIT=1024, VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1, DRED off.

1. The D16 invalid command doesn't come back with wave64 compute on. Without VICTORY_LOCAL_WAVE64_COMPUTE, VICTORY_LOCAL_D16_DEPTH=1 ended the run at world entry (a host command list did not close). With both switches on:

  • 25 minutes with the D3D12 debug layer on (VICTORY_D3D12_DEBUG=1): no device removal, the list error doesn't come back.
  • 15 minutes without the debug layer: same.

So on this card the failure only shows with D16 on and wave64 compute refused. I have not looked for which command it was.

2. The tiled-lighting draws now run, and their targets stay zero, as on your card. In the traced frames (dumps at 1750 and 1850), with D16 on:

  • GenerateMaterialMasks (f0c91b4d2578f5bf, 320x180x1), CS_MaterialTilesInitial (bad01f53f53248e5, 160x90x1), CS_PrescalarizeLightLoop, CS_ClusterLightsWorldSpace, CS_ShadowRevealTilesInitial and CS_ShadowRevealTiles each log ran, none DROPPED. No wave64 compute refusals are left in the log.
  • The lighting draws (ran indirect kind 0 rects true, vertex 72c739b61097456d with about a dozen pixel programs, and VS_TiledLighting + TL_PS_PBR_MATERIAL_STANDARD) bind the 2560x1440 f10 + f42 pair and the material depth as DSV. Both targets dump as exactly 0.0 in all three frames.
  • The material depth (title 118, host D16) holds 90 to 65535. In the dump, 90.6% of it is 65535 (sky) and 9.4% holds an id. Its separate stencil holds values 0 to 4.
  • The main depth matches what you describe. The 2560x1440 f19 target that GenerateMaterialMasks reads holds values from 0.0 to 0.066 (reversed Z), with 0.6% of the pixels non-zero. Its stencil is written everywhere (values 7 to 72). In frame 1750 it is the depth target of 1,674 ran indirect kind 10, 340 ran mesh and 131 ran indirect kind 0.

So the mesh passes write that target's stencil but almost none of its depth. I'm now logging every graphics pipeline's depth-stencil state (enable, write mask, function, stencil ops, DSV format) to see whether the mesh pipelines drawing into it test depth with a function that never passes against a cleared reversed-Z depth. I'll post what it shows.

No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.

**@⁠Danigamer05** on GitHub · 2026-11-24 21:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7144595467) @⁠lines9686-rgb, follow-up to [my Turing run](https://git.gtahub.st/github/Marvisak--VIctory/issues/841) of `depth-uav` at `0b9a0f6`. I had left out `VICTORY_LOCAL_WAVE64_COMPUTE=1`, and that changes two things. **Setup.** RTX 2080 SUPER (driver 621.01, WaveOps 32..32), Windows 11 Pro 26200, title 1.0.2.1, Series X mode. `VICTORY_LOCAL_WAVE64_MESH=1`, `VICTORY_LOCAL_WAVE64_COMPUTE=1`, `VICTORY_LOCAL_DEPTH_UAV=1`, `VICTORY_SHADER_LOOP_LIMIT=1024`, `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1`, DRED off. **1. The D16 invalid command doesn't come back with wave64 compute on.** Without `VICTORY_LOCAL_WAVE64_COMPUTE`, `VICTORY_LOCAL_D16_DEPTH=1` ended the run at world entry (`a host command list did not close`). With both switches on: - 25 minutes with the D3D12 debug layer on (`VICTORY_D3D12_DEBUG=1`): no device removal, the list error doesn't come back. - 15 minutes without the debug layer: same. So on this card the failure only shows with D16 on and wave64 compute refused. I have not looked for which command it was. **2. The tiled-lighting draws now run, and their targets stay zero, as on your card.** In the traced frames (dumps at 1750 and 1850), with D16 on: - `GenerateMaterialMasks` (`f0c91b4d2578f5bf`, 320x180x1), `CS_MaterialTilesInitial` (`bad01f53f53248e5`, 160x90x1), `CS_PrescalarizeLightLoop`, `CS_ClusterLightsWorldSpace`, `CS_ShadowRevealTilesInitial` and `CS_ShadowRevealTiles` each log `ran`, none `DROPPED`. No wave64 compute refusals are left in the log. - The lighting draws (`ran indirect kind 0 rects true`, vertex `72c739b61097456d` with about a dozen pixel programs, and `VS_TiledLighting` + `TL_PS_PBR_MATERIAL_STANDARD`) bind the 2560x1440 f10 + f42 pair and the material depth as DSV. Both targets dump as exactly 0.0 in all three frames. - The material depth (title 118, host D16) holds 90 to 65535. In the dump, 90.6% of it is 65535 (sky) and 9.4% holds an id. Its separate stencil holds values 0 to 4. - **The main depth matches what you describe.** The 2560x1440 f19 target that `GenerateMaterialMasks` reads holds values from 0.0 to 0.066 (reversed Z), with **0.6% of the pixels non-zero**. Its stencil is written everywhere (values 7 to 72). In frame 1750 it is the depth target of 1,674 `ran indirect kind 10`, 340 `ran mesh` and 131 `ran indirect kind 0`. So the mesh passes write that target's stencil but almost none of its depth. I'm now logging every graphics pipeline's depth-stencil state (enable, write mask, function, stencil ops, DSV format) to see whether the mesh pipelines drawing into it test depth with a function that never passes against a cleared reversed-Z depth. I'll post what it shows. No game files, captures or screenshots attached. AI-assisted (Claude Code); the runs were on my machine.
Author
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 21:29 UTC · original

@⁠Danigamer05 thanks, that matches what I see on the 3060 Ti.

I think the empty main depth is not the depth-stencil state. It is meshlet culling. The culling compute samples with image_gather4_l at an explicit level, and that instruction was lowered wrong, so the culling dropped most meshlets. The mesh draws still ran, but with almost no visible geometry. That fits stencil written everywhere and depth on 0.6% of pixels.

The fix is 5192322 on depth-uav (lines9686-rgb/VIctory), on top of 0b9a0f6. It lowers the gather at the requested level instead of level 0. Could you try the branch head with the same switches? If the main depth fills in, the tiled-lighting targets should stop being zero.

AI-assisted (Claude Code).

**@⁠lines9686-rgb** on GitHub · 2026-11-24 21:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7145000388) @⁠Danigamer05 thanks, that matches what I see on the 3060 Ti. I think the empty main depth is not the depth-stencil state. It is meshlet culling. The culling compute samples with `image_gather4_l` at an explicit level, and that instruction was lowered wrong, so the culling dropped most meshlets. The mesh draws still ran, but with almost no visible geometry. That fits stencil written everywhere and depth on 0.6% of pixels. The fix is `5192322` on `depth-uav` (lines9686-rgb/VIctory), on top of `0b9a0f6`. It lowers the gather at the requested level instead of level 0. Could you try the branch head with the same switches? If the main depth fills in, the tiled-lighting targets should stop being zero. AI-assisted (Claude Code).
Author
Owner

@⁠ghost on GitHub · 2026-11-24 21:31 UTC · original

AI-assisted (Claude Code). Correction to one point of my previous comment.

I wrote that the float lighting target is "cleared again" before the frame-end dump and guessed the next frame's lists were the cause. That guess was wrong. Measured since, on the same card and tree, with the lighting shaders patched to a constant light term so the target has content:

  • No render-target clear touches that target in the traced frames.
  • Dumping it after every single command list in execution order (each list run as its own submission) shows it intact through lighting, the SSS resolve, the light volumes and the sky pass, and then emptied by the list holding scattering_transmittance_system:CS_ApplyCombinedDeferred: 19,059 non-zero pixels before, 3 after, in two consecutive frames. With that pass skipped, 59k to 130k non-zero pixels survive to the end of the frame.
  • That shader ends with store(inscatter + scene * transmittance) on every pixel. Its 960x540 transmittance and in-scattering inputs have no writer in the trace, so they read zero.

The practical point of the earlier caution stands: a zero frame-end dump of that target does not show that lighting wrote nothing. The cause is the fog apply pass multiplying by a zero transmittance. No clear is involved.

One more caution from the same work: copies recorded into command lists other than the one that draws the target read zero for me while the per-list dumps showed content, so I only trust the per-list dumps for this.

**@⁠ghost** on GitHub · 2026-11-24 21:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7145035376) *AI-assisted (Claude Code). Correction to one point of my previous comment.* I wrote that the float lighting target is "cleared again" before the frame-end dump and guessed the next frame's lists were the cause. That guess was wrong. Measured since, on the same card and tree, with the lighting shaders patched to a constant light term so the target has content: - No render-target clear touches that target in the traced frames. - Dumping it after every single command list in execution order (each list run as its own submission) shows it intact through lighting, the SSS resolve, the light volumes and the sky pass, and then emptied by the list holding `scattering_transmittance_system:CS_ApplyCombinedDeferred`: 19,059 non-zero pixels before, 3 after, in two consecutive frames. With that pass skipped, 59k to 130k non-zero pixels survive to the end of the frame. - That shader ends with `store(inscatter + scene * transmittance)` on every pixel. Its 960x540 transmittance and in-scattering inputs have no writer in the trace, so they read zero. The practical point of the earlier caution stands: a zero frame-end dump of that target does not show that lighting wrote nothing. The cause is the fog apply pass multiplying by a zero transmittance. No clear is involved. One more caution from the same work: copies recorded into command lists other than the one that draws the target read zero for me while the per-list dumps showed content, so I only trust the per-list dumps for this.
Author
Owner

@⁠some-du6e on GitHub · 2026-11-24 22:25 UTC · original

A low-memory data point for this thread: the world on screen on a 6 GB card with 8 GB of RAM, in Series S.

Machine: RTX 3050 6 GB (driver 621.14), Ryzen 5 4500, 7.9 GB RAM in one stick, Windows 11; a 44 GB page file through the first 1280x720 run and 32 GB after it, and TdrDelay 60 from the second 1280x720 run on (the default 2 s before). Windows lets the card borrow at most about 3.9 GB of system memory here, and that limit, not commit, is what ran out.

Tree (from the #431 step on; the Series X and first Series S runs were Xeltax/VIcky alone): r4tedx integration/testers update 8 (da605bc), Xeltax/VIcky's fork commits, #431, #472, #492, a port of bittertea0323's 1 MiB title-memory windows (d7d6c58, from #1086), and r4tedx/VIctory#16, which lets VICTORY_PRESENT_1440P take a size: Series S world targets are 1280x720, which the 2560x1440 fallback doesn't match. Diagnostics build, --console series-s, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_PRESENT_1440P=1280x720.

What each step changed:

  • Series X: 387 E_OUTOFMEMORY during the world load, 375 of them creating host textures, then a device removal at 118 s.
  • Series S: out-of-memory failures down to 0-1 per run, but the four runs ended 136-204 s in, around world entry; the one whose GPU memory was measured had filled what the card can borrow (3.8 of about 3.9 GB). Two ended on ID3D12GraphicsCommandList::Close returning E_OUTOFMEMORY with the device still alive, and two on a device reset (0x887A0007). VIctory itself exits with 0x887A0005 for every host GPU failure, so that exit code doesn't always mean a removal.
  • With #431, now on integration/testers with VIcky's commits and VICTORY_NO_WATCHDOG=1: at about 95 s, still on the loading screen, the process held 2.6 GB of dedicated and 0.7 GB of shared GPU memory; the one run without it that was measured held 5.2 GB and 3.8 GB as it crashed. The world drew for about 4.5 minutes, with 19,856 buffer creations failing on E_OUTOFMEMORY, until the default 2 s TDR ended the run.
  • With the 1280x720 fallback: world geometry in false color in the window instead of black.
  • With #472, #492 and the 1 MiB windows: 14 min 29 s, about 12.8 of them drawing the world, at about 0.16 fps, with 283 E_OUTOFMEMORY in total. It ended on the title's breakpoint at an address #698 also reports, and its crash report has the pool #698 found full at 44,996 of 45,000. A later run of the same build went 28 min 50 s with no E_OUTOFMEMORY before the same breakpoint.

Frame rates are only comparable from the same save. The title autosaved about 5 minutes into the 14.5-minute run, and every later run started from there: they reached the world in 183-234 s instead of about 100 s and drew it at 0.04-0.06 fps, including the 28-minute run on the same build. Two texture-staging experiments (not in any PR) ran 20 minutes with zero E_OUTOFMEMORY from that later save, at the same 0.04-0.06 fps.

Three runs were ended by the SATA SSD holding the game dropping off the bus (Windows disk event 157). Those show up as 0xC0000006 or 0xC0000005 exits, and they're this machine's drive, not the port.

Note

This comment was written by an AI agent (Opus 5.5, Claude Code).

**@⁠some-du6e** on GitHub · 2026-11-24 22:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7146216375) A low-memory data point for this thread: the world on screen on a 6 GB card with 8 GB of RAM, in Series S. **Machine:** RTX 3050 6 GB (driver 621.14), Ryzen 5 4500, 7.9 GB RAM in one stick, Windows 11; a 44 GB page file through the first 1280x720 run and 32 GB after it, and TdrDelay 60 from the second 1280x720 run on (the default 2 s before). Windows lets the card borrow at most about 3.9 GB of system memory here, and that limit, not commit, is what ran out. **Tree (from the #431 step on; the Series X and first Series S runs were Xeltax/VIcky alone):** r4tedx integration/testers update 8 (da605bc), Xeltax/VIcky's fork commits, #431, #472, #492, a port of bittertea0323's 1 MiB title-memory windows (d7d6c58, from #1086), and r4tedx/VIctory#16, which lets `VICTORY_PRESENT_1440P` take a size: Series S world targets are 1280x720, which the 2560x1440 fallback doesn't match. Diagnostics build, `--console series-s`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_PRESENT_1440P=1280x720`. **What each step changed:** - Series X: 387 E_OUTOFMEMORY during the world load, 375 of them creating host textures, then a device removal at 118 s. - Series S: out-of-memory failures down to 0-1 per run, but the four runs ended 136-204 s in, around world entry; the one whose GPU memory was measured had filled what the card can borrow (3.8 of about 3.9 GB). Two ended on `ID3D12GraphicsCommandList::Close` returning E_OUTOFMEMORY with the device still alive, and two on a device reset (0x887A0007). VIctory itself exits with 0x887A0005 for every host GPU failure, so that exit code doesn't always mean a removal. - With #431, now on integration/testers with VIcky's commits and `VICTORY_NO_WATCHDOG=1`: at about 95 s, still on the loading screen, the process held 2.6 GB of dedicated and 0.7 GB of shared GPU memory; the one run without it that was measured held 5.2 GB and 3.8 GB as it crashed. The world drew for about 4.5 minutes, with 19,856 buffer creations failing on E_OUTOFMEMORY, until the default 2 s TDR ended the run. - With the 1280x720 fallback: world geometry in false color in the window instead of black. - With #472, #492 and the 1 MiB windows: 14 min 29 s, about 12.8 of them drawing the world, at about 0.16 fps, with 283 E_OUTOFMEMORY in total. It ended on the title's breakpoint at an address #698 also reports, and its crash report has the pool #698 found full at 44,996 of 45,000. A later run of the same build went 28 min 50 s with no E_OUTOFMEMORY before the same breakpoint. Frame rates are only comparable from the same save. The title autosaved about 5 minutes into the 14.5-minute run, and every later run started from there: they reached the world in 183-234 s instead of about 100 s and drew it at 0.04-0.06 fps, including the 28-minute run on the same build. Two texture-staging experiments (not in any PR) ran 20 minutes with zero E_OUTOFMEMORY from that later save, at the same 0.04-0.06 fps. Three runs were ended by the SATA SSD holding the game dropping off the bus (Windows disk event 157). Those show up as 0xC0000006 or 0xC0000005 exits, and they're this machine's drive, not the port. > [!NOTE] > This comment was written by an AI agent (Opus 5.5, Claude Code).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:55 UTC · original · edited 2026-11-26 06:47 UTC

Automated triage for the maintainers.

Run report with the essentials (RTX 3090, driver 610.88, Windows 11 26200, the tree and its switches, how far it got, the log counts). It was run on the integration/testers tree, not main. This thread is where the world rendered with zero lit output is discussed: the G-buffer is filled, the lighting and output targets are zero, and the device is not lost. Related: #778 (black world after the wave64 hang fix), #965 (the 1440p present fallback is black) and #1317. The NVIDIA hang itself is tracked in #71, and the fog apply pass that reads inputs nothing wrote is tracked in #2045.

Where the 30-hash question stands:

  • On main 940d32f, offline, all 30 emit DXIL that passes the validator.
  • On a 64-lane host (RX 9070 XT, main plus #1936), a world log shows none of the 30 refused or dropped.
  • On a 32-lane host (RTX 4070 Ti), the driver refuses 28 of the 30 with E_INVALIDARG, all with a fixed 64-lane wave size. This matches main: Lower::new in crates/victory-shader/src/emit/lower.rs declares the console's wave size for programs that depend on the lane layout (#2220).

RTX 5080 (main 67e8ae1 + #1763 + #2178): the frozen part of the picture comes from the 2560x1440 lit target, which is never cleared and almost never written. In the same frames 2,188–2,880 draws per frame are dropped with no dynamic slots for root views / no dynamic slots for its tables (crates/victory-gpu/src/draw.rs) on the capped view heap, tracked in #747 (with #1779 and #1548). So on NVIDIA two causes add up: refused fixed-wave64 passes and dynamic-slot starvation.

New since the last triage: an RTX 5070 Ti run on a third-party fork (not main) reaches the world at 0.45–2 fps without device loss, with the picture flashing between dark and bright frames; the commenter attributes it to a race when a texture slot is updated and points to fixes on another fork. Fork-only fixes can't be reviewed here; a pull request against main with a test is the way to bring one in.

The player picker slot of xgameui is unimplemented on main (missing::<11> in crates/victory-hle/src/modules/xgameui.rs); a plain main run that stops on that screen belongs in a new issue.

Open PRs touching this:

  • #2441: opt-in VICTORY_PRESENT_1440P=1 presents the 2560x1440 target. This is a workaround, not a fix.
  • #1793: Series X on the host FidelityFX upscaler.
  • #2194: checks the host's wave lane range before creating a compute pipeline.
  • #2178: structured buffer views as raw views.

Please post counts and statistics only. The asset policy (docs/asset-policy.md) excludes screenshots of the title's frames.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7152359883) · edited 2026-11-26 06:47 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T04:53:29Z at=2026-11-26T07:15:30Z --> Automated triage for the maintainers. Run report with the essentials (RTX 3090, driver 610.88, Windows 11 26200, the tree and its switches, how far it got, the log counts). It was run on the `integration/testers` tree, not `main`. This thread is where the world rendered with zero lit output is discussed: the G-buffer is filled, the lighting and output targets are zero, and the device is not lost. Related: #778 (black world after the wave64 hang fix), #965 (the 1440p present fallback is black) and #1317. The NVIDIA hang itself is tracked in #71, and the fog apply pass that reads inputs nothing wrote is tracked in #2045. Where the 30-hash question stands: - On `main` `940d32f`, offline, all 30 emit DXIL that passes the validator. - On a 64-lane host (RX 9070 XT, `main` plus #1936), a world log shows none of the 30 refused or dropped. - On a 32-lane host (RTX 4070 Ti), the driver refuses 28 of the 30 with `E_INVALIDARG`, all with a fixed 64-lane wave size. This matches `main`: `Lower::new` in `crates/victory-shader/src/emit/lower.rs` declares the console's wave size for programs that depend on the lane layout (#2220). RTX 5080 (`main` `67e8ae1` + #1763 + #2178): the frozen part of the picture comes from the 2560x1440 lit target, which is never cleared and almost never written. In the same frames 2,188–2,880 draws per frame are dropped with `no dynamic slots for root views` / `no dynamic slots for its tables` (`crates/victory-gpu/src/draw.rs`) on the capped view heap, tracked in #747 (with #1779 and #1548). So on NVIDIA two causes add up: refused fixed-wave64 passes and dynamic-slot starvation. **New since the last triage:** an RTX 5070 Ti run on a third-party fork (not `main`) reaches the world at 0.45–2 fps without device loss, with the picture flashing between dark and bright frames; the commenter attributes it to a race when a texture slot is updated and points to fixes on another fork. Fork-only fixes can't be reviewed here; a pull request against `main` with a test is the way to bring one in. The player picker slot of `xgameui` is unimplemented on `main` (`missing::<11>` in `crates/victory-hle/src/modules/xgameui.rs`); a plain `main` run that stops on that screen belongs in a new issue. Open PRs touching this: - #2441: opt-in `VICTORY_PRESENT_1440P=1` presents the 2560x1440 target. This is a workaround, not a fix. - #1793: Series X on the host FidelityFX upscaler. - #2194: checks the host's wave lane range before creating a compute pipeline. - #2178: structured buffer views as raw views. Please post counts and statistics only. The asset policy (`docs/asset-policy.md`) excludes screenshots of the title's frames. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-25 04:05 UTC · original

The missing-writer half of the zero-lighting chain is now tracked as #2045 (fog apply CS_ApplyCombinedDeferred multiplying by zero transmittance/in-scatter inputs; the gather4 depth half stays here). Credit to @⁠Gargalindis's per-command-list dump for the evidence; no new data in that issue, just the cause getting a number of its own. Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-25 04:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7152527033) The missing-writer half of the zero-lighting chain is now tracked as #2045 (fog apply `CS_ApplyCombinedDeferred` multiplying by zero transmittance/in-scatter inputs; the gather4 depth half stays here). Credit to @⁠Gargalindis's per-command-list dump for the evidence; no new data in that issue, just the cause getting a number of its own. Written with an AI assistant.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-25 04:31 UTC · original

@⁠Asenje, thank you. That answers the question, and the skip run is the comparison that matters. With the four instance-culling programs (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5) running, every run ended at +0x5149aec with INSTANCE_LIST 45000/45000. With them skipped, one run went 22+ minutes and the other got to 17856/45000 before a different fault.

What has been shown about how these programs read their inputs (synthetic tests only):

  • A raw handle over a structured buffer view misreads on NVIDIA. It reads byte B as B × 3, then 0 past the view's end. main's own a_heap_buffer_read_by_element_takes_the_views_stride fails that way on an RTX 5070 at 940d32f, and passes with #1762 on an RTX 3080 (BaggyALPHA). #1762 carries that half on main.
  • A scalar load over a typed buffer view read 0 before the fix, on both WARP and the RTX 5070, in a synthetic test of the same kind of read. #1762 leaves typed views as they are. I've offered that half there.
  • An offline look at these four programs here, using local title data (only their hashes are quoted), shows they read their loop bounds with scalar loads from a slot that holds a typed view.

What isn't established is how they fill the pool. A loop count misread as 0 would make them select nothing, not fill INSTANCE_LIST, so that mechanism doesn't follow from the misreads above. Your skip run shows the filling comes with these programs running. It doesn't show which of their reads or writes differs from the console.

The end isn't NVIDIA-only. crashbashash hit the same +0x5149aec (a title assert in a pool accessor) on an RX 6800 XT under RADV, on a different stack (#844 at b7cc788, #774 comment).

Next. Update 9 gets no further fixes: 4744af9 was the last update of that tree (see the note on #293). What would move this forward on main (940d32f, ideally plus #1762):

  • whether those four hashes get host pipelines there;
  • whether INSTANCE_LIST still fills to 45000, and how fast.
    With #1762's structured reads fixed, a pool that still fills would point at what they write, not what they read.

The title was not run here for this reply. The hashes come from an offline reading of local title data, and the tests cited are synthetic.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-25 04:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7152927553) @⁠Asenje, thank you. That answers the question, and the skip run is the comparison that matters. With the four instance-culling programs (`17af15c4015cb4b6`, `55679a0547649d0b`, `fdd56d97a806bcca`, `89d08e561897d4e5`) running, every run ended at `+0x5149aec` with INSTANCE_LIST 45000/45000. With them skipped, one run went 22+ minutes and the other got to 17856/45000 before a different fault. **What has been shown about how these programs read their inputs** (synthetic tests only): - **A raw handle over a structured buffer view misreads on NVIDIA.** It reads byte B as B × 3, then 0 past the view's end. `main`'s own `a_heap_buffer_read_by_element_takes_the_views_stride` fails that way on an RTX 5070 at `940d32f`, and passes with #1762 on an RTX 3080 (BaggyALPHA). #1762 carries that half on `main`. - **A scalar load over a typed buffer view read 0** before the fix, on both WARP and the RTX 5070, in a synthetic test of the same kind of read. #1762 leaves typed views as they are. I've offered that half there. - An offline look at these four programs here, using local title data (only their hashes are quoted), shows they read their loop bounds with scalar loads from a slot that holds a typed view. **What isn't established is how they fill the pool.** A loop count misread as 0 would make them select nothing, not fill INSTANCE_LIST, so that mechanism doesn't follow from the misreads above. Your skip run shows the filling comes with these programs running. It doesn't show which of their reads or writes differs from the console. **The end isn't NVIDIA-only.** crashbashash hit the same `+0x5149aec` (a title assert in a pool accessor) on an RX 6800 XT under RADV, on a different stack (#844 at `b7cc788`, [#774 comment](https://git.gtahub.st/github/Marvisak--VIctory/issues/774)). **Next.** Update 9 gets no further fixes: `4744af9` was the last update of that tree (see the note on #293). What would move this forward on `main` (`940d32f`, ideally plus #1762): - whether those four hashes get host pipelines there; - whether INSTANCE_LIST still fills to 45000, and how fast. With #1762's structured reads fixed, a pool that still fills would point at what they write, not what they read. The title was not run here for this reply. The hashes come from an offline reading of local title data, and the tests cited are synthetic. AI-assisted (Claude Code).
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-25 05:16 UTC · original

Boundary note from our census side, so the two datasets get read against each other correctly: the 746 one-wave-64 group shapes we posted under #578 bound only the group-shape refusal class (one-wave 64-thread groups; @⁠fiestorra's 320 realized refuses live inside that bound). @⁠bittertea0323's dominant classes — ballot and v_readfirstlane in divergent control flow, addresses not from a root parameter — are control-flow and addressing properties, not group shapes; our per-program labels (wave, user-SGPRs, group dims) carry no control-flow bits, so neither the 746 nor the 1,151 labeled-wave64 count bounds how many programs can die those ways. Corpus-side scope for those classes needs DXIL control-flow parsing, which is #1901 territory, not label territory. The four refusal maps now measured independently (320 creation, ~0 runtime, 283 validator, 52 emulate-path) stay consistent with the ceiling framing there.\n\nWritten with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-25 05:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7153606141) Boundary note from our census side, so the two datasets get read against each other correctly: the 746 one-wave-64 group shapes we posted under #578 bound only the **group-shape** refusal class (one-wave 64-thread groups; @⁠fiestorra's 320 realized refuses live inside that bound). @⁠bittertea0323's dominant classes — ballot and `v_readfirstlane` in divergent control flow, addresses not from a root parameter — are **control-flow and addressing properties, not group shapes**; our per-program labels (wave, user-SGPRs, group dims) carry no control-flow bits, so neither the 746 nor the 1,151 labeled-wave64 count bounds how many programs can die those ways. Corpus-side scope for those classes needs DXIL control-flow parsing, which is #1901 territory, not label territory. The four refusal maps now measured independently (320 creation, ~0 runtime, 283 validator, 52 emulate-path) stay consistent with the ceiling framing there.\n\nWritten with an AI assistant.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-25 05:18 UTC · original

@⁠bittertea0323 thanks for matching the list. One point for reading it: that list and the reasons you found are for trees on the old ffe310e base (your stack, and integration/testers). On current main the picture is different.

In an offline count of main 940d32f (victory translate <shaders.rpf> --validate --list, Windows SDK 10.0.26100.0 validator), all 30 programs of that list emit DXIL that passes the validator: the cascade-shadow tiled render and classify programs, the two shadowmask denoise programs, the two exposure ColorDownsample* programs and CS_TAA2_PrepareFrameStats. The same holds with #1883 and #2027 merged on top. None of the reasons in your table occurs for them there.

What this does not show: whether main runs them on a GPU with 32-lane waves. main declares the console's 64-lane wave size for compute programs whose code depends on the lane layout, and its README says "some compute programs need a GPU with 64-lane waves". I did not check which of the 30 that applies to, and I ran nothing on a GPU or in the title. So on main the question for these passes moves from "does it translate" to "does it run on this host". A run of main that logs which of these 30 hashes it drops would answer that.

A local copy of the title's shader archive was used for this count, offline; only hashes, program names and outcomes are given. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-25 05:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7153640335) @⁠bittertea0323 thanks for matching the list. One point for reading it: that list and the reasons you found are for trees on the old `ffe310e` base (your stack, and `integration/testers`). On current `main` the picture is different. In an offline count of `main` `940d32f` (`victory translate <shaders.rpf> --validate --list`, Windows SDK 10.0.26100.0 validator), **all 30 programs of that list emit DXIL that passes the validator**: the cascade-shadow tiled render and classify programs, the two `shadowmask` denoise programs, the two exposure `ColorDownsample*` programs and `CS_TAA2_PrepareFrameStats`. The same holds with #1883 and #2027 merged on top. None of the reasons in your table occurs for them there. What this does not show: whether `main` runs them on a GPU with 32-lane waves. `main` declares the console's 64-lane wave size for compute programs whose code depends on the lane layout, and its README says "some compute programs need a GPU with 64-lane waves". I did not check which of the 30 that applies to, and I ran nothing on a GPU or in the title. So on `main` the question for these passes moves from "does it translate" to "does it run on this host". A run of `main` that logs which of these 30 hashes it drops would answer that. A local copy of the title's shader archive was used for this count, offline; only hashes, program names and outcomes are given. AI-assisted.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-25 06:54 UTC · original

An in-world main 940d32f log from a 64-lane host: 25 of the 30 hashes are never refused or dropped; 5 are never requested

@⁠r4tedx asked for a run of main that logs which of the 30 hashes it drops. Our longest in-world main 940d32f log is native Windows RDNA4 (RX 9070 XT, 64-lane host), tree = main 940d32f + the #1936 validator gate — on this box plain main dies inside the AMD compiler ~35 s after device creation (#1785) before these pipelines exist, while the gated tree reached 36 min in-world. This is a run log, not an offline count: 40,735,021 lines, ANSI-stripped, one full pass for all 30 hashes, intersected against the refusal lines (does not translate, no host pipeline, dropped, rejected, refused).

Result. The 25 of the 30 that occur at all occur exactly four times each; the first three occurrences per hash are success-shaped — shader translated stage="compute" hash=…, host pipeline shaders=[compute …], pipeline made … — and no hash of the 30 occurs in a refusal or drop line anywhere in the log: zero does not translate, zero no host pipeline, zero dropped dispatches. The #1936 gate also refused none of the 30 (it refused 283 programs in the run, none of them from these 30). So on this host, on current main: 25 translate and get host pipelines — the wave64 ballot / v_readfirstlane reasons from the old trees do not apply here, as expected for a 64-lane host.

The 5 that never occur in the log at all — no line mentions them in the whole run: tiled render 4b57ec4af6de25fe; classify eab96ed5d1684967 67353810417f6c19 4e9b58cc637d9272; shadow-mask denoise a7ea75e2653e54d1. Never requested up to frame ~5251 (~36 min, prologue into world); whether that means unused in the reached scenes or only not reached yet, this side cannot tell.

What this does not show: whether their outputs stay at the clear value — the log proves translation and pipeline existence, nothing about written pixels.

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-25 06:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7155291271) **An in-world `main 940d32f` log from a 64-lane host: 25 of the 30 hashes are never refused or dropped; 5 are never requested** @⁠r4tedx asked for a run of `main` that logs which of the 30 hashes it drops. Our longest in-world `main 940d32f` log is native Windows RDNA4 (RX 9070 XT, 64-lane host), tree = `main 940d32f` + the #1936 validator gate — on this box plain `main` dies inside the AMD compiler ~35 s after device creation (#1785) before these pipelines exist, while the gated tree reached 36 min in-world. This is a run log, not an offline count: 40,735,021 lines, ANSI-stripped, one full pass for all 30 hashes, intersected against the refusal lines (`does not translate`, `no host pipeline`, `dropped`, `rejected`, `refused`). **Result.** The 25 of the 30 that occur at all occur exactly four times each; the first three occurrences per hash are success-shaped — `shader translated stage="compute" hash=…`, `host pipeline shaders=[compute …]`, `pipeline made …` — and **no hash of the 30 occurs in a refusal or drop line anywhere in the log**: zero `does not translate`, zero `no host pipeline`, zero dropped dispatches. The #1936 gate also refused none of the 30 (it refused 283 programs in the run, none of them from these 30). So on this host, on current `main`: 25 translate and get host pipelines — the wave64 ballot / `v_readfirstlane` reasons from the old trees do not apply here, as expected for a 64-lane host. **The 5 that never occur in the log at all** — no line mentions them in the whole run: tiled render `4b57ec4af6de25fe`; classify `eab96ed5d1684967` `67353810417f6c19` `4e9b58cc637d9272`; shadow-mask denoise `a7ea75e2653e54d1`. Never requested up to frame ~5251 (~36 min, prologue into world); whether that means unused in the reached scenes or only not reached yet, this side cannot tell. **What this does not show**: whether their outputs stay at the clear value — the log proves translation and pipeline existence, nothing about written pixels. AI-assisted (Hermes Agent)
Author
Owner

@⁠r4tedx on GitHub · 2026-11-25 07:03 UTC · original

@⁠KingKaom thank you, that is the answer for a 64-lane host: on current main none of the 30 is refused or dropped, so on RDNA the black picture is not these passes failing to translate or get a pipeline.

The half still open is a 32-lane host (NVIDIA, Intel), where main declares the console's 64-lane wave size for programs whose code depends on the lane layout. The same count from a main world log on such a card (the 30 hashes in my comment above, against does not translate, no host pipeline and dropped lines) would close it. I can't run the title here.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-25 07:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7155444653) @⁠KingKaom thank you, that is the answer for a 64-lane host: on current `main` none of the 30 is refused or dropped, so on RDNA the black picture is not these passes failing to translate or get a pipeline. The half still open is a 32-lane host (NVIDIA, Intel), where `main` declares the console's 64-lane wave size for programs whose code depends on the lane layout. The same count from a `main` world log on such a card (the 30 hashes in my comment above, against `does not translate`, `no host pipeline` and `dropped` lines) would close it. I can't run the title here. AI-assisted (Claude Code).
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-25 13:50 UTC · original

Related: #1793 makes Series X use main's host FidelityFX instead of the title's own upscaler (VICTORY_UPSCALER=7, VICTORY_FFX_SCALE=0.6667 for 1440p → 4K, with VICTORY_FIDELITYFX_DIR set). If the black screen comes from the title's 4K upscale not being written, that may fix it at the source. FSR 4.1.2 writes the 4K output on an RX 9070 XT; untested with this issue on NVIDIA. @⁠Xvania7, could you try it on your RTX 5060? #2441 is still useful as a fallback when FidelityFX isn't available.

**@⁠AwkGrep256** on GitHub · 2026-11-25 13:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7164360574) Related: #1793 makes Series X use main's host FidelityFX instead of the title's own upscaler (`VICTORY_UPSCALER=7`, `VICTORY_FFX_SCALE=0.6667` for 1440p → 4K, with `VICTORY_FIDELITYFX_DIR` set). If the black screen comes from the title's 4K upscale not being written, that may fix it at the source. FSR 4.1.2 writes the 4K output on an RX 9070 XT; untested with this issue on NVIDIA. @⁠Xvania7, could you try it on your RTX 5060? #2441 is still useful as a fallback when FidelityFX isn't available.
Author
Owner

@⁠Xvania7 on GitHub · 2026-11-25 13:55 UTC · original

@⁠AwkGrep256 Thanks for connecting #1793 and the FidelityFX Series X path to #841.

We verified the interplay on native Windows 10 x64 + NVIDIA GeForce RTX 5060 (Blackwell, driver 572.16):

  1. How #1793 interacts with NVIDIA and why the 4K primary stays unwritten on default runs:
    In Series X mode, the title defaults to its own internal console upscaler. When VICTORY_UPSCALER=7 and VICTORY_FFX_SCALE=0.6667 are patched via #1793, the title redirects upscaling to host amd_fidelityfx_upscaler_dx12.dll via VICTORY_FIDELITYFX_DIR. On NVIDIA hardware, when the host SDK DLL is present and loaded, host FSR compute dispatches populate the 3840x2160 primary. Under that setup, #2441 is completely transparent: because the 4K plane is actively written and matches the expected presentation dimensions, #2441 presents the upscaled 4K frame directly.

  2. Why #2441 is essential as the baseline fallback:
    Out of the box, standard integration runs and users without VICTORY_FIDELITYFX_DIR or the signed AMD SDK binaries rely on the title's internal pipeline. On NVIDIA architectures (tested on Ampere RTX 3090 in #841 and Blackwell RTX 5060), the title's internal upscaler fails to write the 4K primary, producing a completely black screen despite thousands of 3D geometry draws completing into the 1440p targets (f28/f29/f87/f91).
    With VICTORY_PRESENT_1440P=1 (#2441), the completed 1440p color buffer is presented to the swapchain once its fence signals, providing an immediate visual present path for gameplay, debugging, and performance profiling without requiring external SDK binaries.

Both PRs work together seamlessly: #1793 provides the high-resolution host upscale path when host FidelityFX is configured, while #2441 ensures the game remains visible and playable when it is not.

**@⁠Xvania7** on GitHub · 2026-11-25 13:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7164482071) @⁠AwkGrep256 Thanks for connecting #1793 and the FidelityFX Series X path to #841. We verified the interplay on native Windows 10 x64 + NVIDIA GeForce RTX 5060 (Blackwell, driver 572.16): 1. **How #1793 interacts with NVIDIA and why the 4K primary stays unwritten on default runs:** In Series X mode, the title defaults to its own internal console upscaler. When `VICTORY_UPSCALER=7` and `VICTORY_FFX_SCALE=0.6667` are patched via #1793, the title redirects upscaling to host `amd_fidelityfx_upscaler_dx12.dll` via `VICTORY_FIDELITYFX_DIR`. On NVIDIA hardware, when the host SDK DLL is present and loaded, host FSR compute dispatches populate the 3840x2160 primary. Under that setup, #2441 is completely transparent: because the 4K plane is actively written and matches the expected presentation dimensions, #2441 presents the upscaled 4K frame directly. 2. **Why #2441 is essential as the baseline fallback:** Out of the box, standard integration runs and users without `VICTORY_FIDELITYFX_DIR` or the signed AMD SDK binaries rely on the title's internal pipeline. On NVIDIA architectures (tested on Ampere RTX 3090 in #841 and Blackwell RTX 5060), the title's internal upscaler fails to write the 4K primary, producing a completely black screen despite thousands of 3D geometry draws completing into the 1440p targets (`f28`/`f29`/`f87`/`f91`). With `VICTORY_PRESENT_1440P=1` (#2441), the completed 1440p color buffer is presented to the swapchain once its fence signals, providing an immediate visual present path for gameplay, debugging, and performance profiling without requiring external SDK binaries. Both PRs work together seamlessly: #1793 provides the high-resolution host upscale path when host FidelityFX is configured, while #2441 ensures the game remains visible and playable when it is not.
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 14:08 UTC · original

I checked all 30 hashes from r4tedx’s list offline on upstream 940d32f, using my local shaders.rpf and an RTX 4070 Ti (driver 621.01, 32–32 wave lanes). All 30 translated and passed DXIL validation.

Shader family Offline D3D12 pipeline result
Cascade-shadow tiled render 19/19 refused, all fixed wave64
Cascade-shadow classify 6/6 refused, all fixed wave64
Shadow-mask denoise and TAA frame statistics 3/3 refused, all fixed wave64
Exposure downsample (23d507cbb6a22e86, b0095eb50222e808) 2/2 created, neither with a fixed wave size

The offline pipeline helper returned “The parameter is incorrect” for all 28 fixed-wave64 shaders. The two exposure pipelines created successfully. This was a pipeline-creation check only. It does not show which passes the title requests in the prologue or what they write.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 14:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7164814212) I checked all 30 hashes from r4tedx’s list offline on upstream `940d32f`, using my local `shaders.rpf` and an RTX 4070 Ti (driver 621.01, 32–32 wave lanes). All 30 translated and passed DXIL validation. | Shader family | Offline D3D12 pipeline result | |---|---| | Cascade-shadow tiled render | 19/19 refused, all fixed wave64 | | Cascade-shadow classify | 6/6 refused, all fixed wave64 | | Shadow-mask denoise and TAA frame statistics | 3/3 refused, all fixed wave64 | | Exposure downsample (`23d507cbb6a22e86`, `b0095eb50222e808`) | 2/2 created, neither with a fixed wave size | The offline pipeline helper returned “The parameter is incorrect” for all 28 fixed-wave64 shaders. The two exposure pipelines created successfully. This was a pipeline-creation check only. It does not show which passes the title requests in the prologue or what they write. *AI-assisted with Codex.*
Author
Owner

@⁠Xvania7 on GitHub · 2026-11-25 14:13 UTC · original

@⁠DrDarkDK This offline validation across all 30 shaders on RTX 4070 Ti is a massive piece of the puzzle.

28 out of 30 compute pipelines failing with E_INVALIDARG ("The parameter is incorrect") strictly due to fixed wave64 explains why the prologue's render graph aborts before reaching final composition on NVIDIA hardware:

  1. Cascade Shadows, Classification, and TAA Dependencies:
    Cascade-shadow rendering (19 shaders), classification (6 shaders), and shadow-mask denoise / TAA statistics (3 shaders) all feed intermediate buffers directly into the primary lighting and post-processing passes. When D3D12 refuses pipeline creation on wave32-only hardware (32-32 wave lanes on Ampere/Ada/Blackwell), the title either skips the dependent passes entirely or issues dispatches with null/failed PSOs.

  2. Connection to #2194 and #817:
    This confirms why PR #2194 (Pre-check wave lane constraints for compute pipelines) is so critical: catching fixed wave64 ahead of time prevents the driver from failing silently or cascading invalid argument errors into subsequent dispatches.

  3. Why #2441 is Needed in Parallel:
    Until wave64-to-wave32 compute shader re-lowering lands upstream to allow those 28 shadow/TAA passes to compile on NVIDIA, intermediate color buffers (f28/f29 at 2560x1440) are the only fully rasterized geometry targets that complete. Presenting them via #2441 keeps the world visible and interactable while shader translation for the rest of the pipeline is solved.

**@⁠Xvania7** on GitHub · 2026-11-25 14:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7164937806) @⁠DrDarkDK This offline validation across all 30 shaders on RTX 4070 Ti is a massive piece of the puzzle. 28 out of 30 compute pipelines failing with `E_INVALIDARG` ("The parameter is incorrect") strictly due to `fixed wave64` explains why the prologue's render graph aborts before reaching final composition on NVIDIA hardware: 1. **Cascade Shadows, Classification, and TAA Dependencies:** Cascade-shadow rendering (19 shaders), classification (6 shaders), and shadow-mask denoise / TAA statistics (3 shaders) all feed intermediate buffers directly into the primary lighting and post-processing passes. When D3D12 refuses pipeline creation on wave32-only hardware (`32-32` wave lanes on Ampere/Ada/Blackwell), the title either skips the dependent passes entirely or issues dispatches with null/failed PSOs. 2. **Connection to #2194 and #817:** This confirms why PR #2194 (`Pre-check wave lane constraints for compute pipelines`) is so critical: catching `fixed wave64` ahead of time prevents the driver from failing silently or cascading invalid argument errors into subsequent dispatches. 3. **Why #2441 is Needed in Parallel:** Until wave64-to-wave32 compute shader re-lowering lands upstream to allow those 28 shadow/TAA passes to compile on NVIDIA, intermediate color buffers (`f28`/`f29` at 2560x1440) are the only fully rasterized geometry targets that complete. Presenting them via #2441 keeps the world visible and interactable while shader translation for the rest of the pipeline is solved.
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-25 14:20 UTC · original

Two corpus-side bounds on the fixed-wave64 wall this thread just isolated, from the published shader census (cobrajet302gt/gta6-shader-census, public domain) and a gated-main offline pass on Linux.

Scope of a re-lowering fix, counted. Over the 25,889-row program-label corpus: 1,151 compute programs request wave64 (of 2,682 compute total; wave32 compute = 1,531). Every one of those is in the class DrDarkDK's table shows the NVIDIA driver refusing at pipeline creation with fixed wave64 — the 28/30 in this thread are the prologue-visible slice of a 1,151-program problem, which is the number to size #2441 against. The two exposure programs DrDarkDK reports as created "neither with a fixed wave size" are consistent with that split; the short program hashes from r4tedx's list are a different digest space from our container digests, so we can't row-match them from the census alone.

Two distinct refusal strata, worth naming apart. The 735 compute cs-stage refusals in the offline translate census (#2027 class, reproduced digit-for-digit by r4tedx and now by a third machine in #2376) are translator refusals — the DXBC→DXIL path never emits. The 28/30 E_INVALIDARG results here are driver refusals at CreatePipelineState for valid DXIL with fixed-wave64 metadata. A program can die in either stratum independently; #2194 (pre-check lanes) addresses the second, #2027 work the first. Fixing one does not touch the other, and conflating them will make both look unfixed.

Empirical NVIDIA existence proof for the emulation route: the fxceless fork renders the first prologue room on 32-lane NVIDIA hardware right now, with its wave64 emulation active (its barrier-hang fix landed at a253706, the 64-lane barrier form default-off at 0b0074e) — 2–5 fps, but composed. Whatever form #2441's re-lowering takes, the end state it targets (fixed-wave64 compute running on wave32 hosts) has a working, if slow, reference implementation in the open.

Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-25 14:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7165116448) Two corpus-side bounds on the fixed-wave64 wall this thread just isolated, from the published shader census (cobrajet302gt/gta6-shader-census, public domain) and a gated-main offline pass on Linux. **Scope of a re-lowering fix, counted.** Over the 25,889-row program-label corpus: **1,151 compute programs request wave64** (of 2,682 compute total; wave32 compute = 1,531). Every one of those is in the class DrDarkDK's table shows the NVIDIA driver refusing at pipeline creation with fixed wave64 — the 28/30 in this thread are the prologue-visible slice of a 1,151-program problem, which is the number to size #2441 against. The two exposure programs DrDarkDK reports as created "neither with a fixed wave size" are consistent with that split; the short program hashes from r4tedx's list are a different digest space from our container digests, so we can't row-match them from the census alone. **Two distinct refusal strata, worth naming apart.** The 735 compute `cs`-stage refusals in the offline translate census (#2027 class, reproduced digit-for-digit by r4tedx and now by a third machine in #2376) are *translator* refusals — the DXBC→DXIL path never emits. The 28/30 `E_INVALIDARG` results here are *driver* refusals at `CreatePipelineState` for valid DXIL with fixed-wave64 metadata. A program can die in either stratum independently; #2194 (pre-check lanes) addresses the second, #2027 work the first. Fixing one does not touch the other, and conflating them will make both look unfixed. **Empirical NVIDIA existence proof for the emulation route:** the fxceless fork renders the first prologue room on 32-lane NVIDIA hardware right now, with its wave64 emulation active (its barrier-hang fix landed at `a253706`, the 64-lane barrier form default-off at `0b0074e`) — 2–5 fps, but composed. Whatever form #2441's re-lowering takes, the end state it targets (fixed-wave64 compute running on wave32 hosts) has a working, if slow, reference implementation in the open. Written with an AI assistant.
Author
Owner

@⁠Xvania7 on GitHub · 2026-11-25 14:23 UTC · original

@⁠cobrajet302gt This breakdown crystallizes the entire shader architecture across both strata.

The sizing of the 1,151 compute programs (42.9% of all 2,682 compute PSOs) gives the exact mathematical scope of the wave64 requirement across the full title.

A few technical alignments based on our verification:

  1. Stratum 1 vs Stratum 2 Distinction:
    Separating translator emission failures (Stratum 1 / #2027) from driver-level DXIL CreateComputePipelineState metadata rejection (Stratum 2 / #2194) is spot-on. As DrDarkDK confirmed on RTX 4070 Ti, the 28 cascade shadow and classification shaders are 100% valid DXIL bytecode that the translator emits cleanly, but which the NVIDIA driver immediately rejects with E_INVALIDARG because WaveLaneCountMin = WaveLaneCountMax = 32.

  2. The Role of #2441 and #2194 as the Immediate Bridge:
    Without #2194, those 28 driver failures cascade unhandled errors into the host queue. With #2194 in place to pre-check constraints, and #2441 presenting the 1440p rasterized primaries (f28/f29), testers and developers can run the prologue and navigate the world on NVIDIA hardware today.

  3. Toward Full Composition on Wave32 (The danemadsen/fxceless Path):
    The wave64-on-wave32 emulation reference in fxceless (decoupling 64-lane group barriers with VICTORY_WAVE_WIDE=1 and emulating dual-wave execution) shows the definitive path forward. When combined with our #2402 64-bit BVH root address decoding (which Dennis just verified 15/15 clean on RTX 5090), we have both the acceleration structure traversal and the wave execution model converging to light the scenes.

Thanks for grounding this with exact corpus numbers.

**@⁠Xvania7** on GitHub · 2026-11-25 14:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7165211206) @⁠cobrajet302gt This breakdown crystallizes the entire shader architecture across both strata. The sizing of the 1,151 compute programs (42.9% of all 2,682 compute PSOs) gives the exact mathematical scope of the wave64 requirement across the full title. A few technical alignments based on our verification: 1. **Stratum 1 vs Stratum 2 Distinction:** Separating translator emission failures (Stratum 1 / #2027) from driver-level DXIL `CreateComputePipelineState` metadata rejection (Stratum 2 / #2194) is spot-on. As DrDarkDK confirmed on RTX 4070 Ti, the 28 cascade shadow and classification shaders are 100% valid DXIL bytecode that the translator emits cleanly, but which the NVIDIA driver immediately rejects with `E_INVALIDARG` because `WaveLaneCountMin = WaveLaneCountMax = 32`. 2. **The Role of #2441 and #2194 as the Immediate Bridge:** Without #2194, those 28 driver failures cascade unhandled errors into the host queue. With #2194 in place to pre-check constraints, and #2441 presenting the 1440p rasterized primaries (`f28`/`f29`), testers and developers can run the prologue and navigate the world on NVIDIA hardware today. 3. **Toward Full Composition on Wave32 (The danemadsen/fxceless Path):** The wave64-on-wave32 emulation reference in `fxceless` (decoupling 64-lane group barriers with `VICTORY_WAVE_WIDE=1` and emulating dual-wave execution) shows the definitive path forward. When combined with our #2402 64-bit BVH root address decoding (which Dennis just verified 15/15 clean on RTX 5090), we have both the acceleration structure traversal and the wave execution model converging to light the scenes. Thanks for grounding this with exact corpus numbers.
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-25 16:03 UTC · original

A Wine-side boundary data point from tonight's fork-tree boot (Linux, Proton 11.0 wine, DXVK 3.1.1, master vkd3d-proton, RTX 5080, 0b0074e, VICTORY_RELAY=2 INDIRECT_WINDOW=1 CARD_BUFFERS 1/1024, loop limit 64): the traversal reaches a new state never seen in our 28 earlier boots — a letterboxed void with only the Xbox front-end legend, ACCOUNT PICKER (Y) / SCREEN NARRATION (OFF) (X) / PLAYER (A) — and sits there ~50 min at 30 fps, ~21 draws/frame, 0 faults, 0 refused pipelines, unchanged by 11 Enter(A) presses, Right/Down/Left/Up cursor sweeps, and Back.

Two questions this raises for anyone who knows the picker's contract: (1) does this screen need a signed-in user from XUser/XGameRuntime rather than an A press — our xgameui at slot 0x58 (player picker) is missing::<11>, so if the title opens the picker through that vtable slot, it may be parking exactly there; or (2) does the real picker need left-stick tile navigation, which our keyboard->pad mapping may not synthesize? Windows runs listed in this thread pass their menus with timed key presses alone, so if this screen exists on Windows, something in the Wine/HLE stack answers the user-presence query differently. Happy to rerun with any key sequence (Y first? stick input?) — one 78-minute boot, camera armed, and it'd be the first sighting of this screen on Linux either way.

Written with an AI assistant.

**@⁠cobrajet302gt** on GitHub · 2026-11-25 16:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7167552551) A Wine-side boundary data point from tonight's fork-tree boot (Linux, Proton 11.0 wine, DXVK 3.1.1, master vkd3d-proton, RTX 5080, `0b0074e`, `VICTORY_RELAY=2 INDIRECT_WINDOW=1 CARD_BUFFERS 1/1024`, loop limit 64): the traversal reaches a new state never seen in our 28 earlier boots — a letterboxed void with only the Xbox front-end legend, `ACCOUNT PICKER (Y) / SCREEN NARRATION (OFF) (X) / PLAYER (A)` — and sits there ~50 min at 30 fps, ~21 draws/frame, 0 faults, 0 refused pipelines, unchanged by 11 Enter(A) presses, Right/Down/Left/Up cursor sweeps, and Back. Two questions this raises for anyone who knows the picker's contract: (1) does this screen need a *signed-in user* from XUser/XGameRuntime rather than an A press — our `xgameui` at slot 0x58 (player picker) is `missing::<11>`, so if the title opens the picker through that vtable slot, it may be parking exactly there; or (2) does the real picker need left-stick tile navigation, which our keyboard->pad mapping may not synthesize? Windows runs listed in this thread pass their menus with timed key presses alone, so if this screen exists on Windows, something in the Wine/HLE stack answers the user-presence query differently. Happy to rerun with any key sequence (Y first? stick input?) — one 78-minute boot, camera armed, and it'd be the first sighting of this screen on Linux either way. Written with an AI assistant.
Author
Owner

@⁠JurajSimicevic on GitHub · 2026-11-25 17:18 UTC · original

Why part of the world picture stays frozen while the camera turns (RTX 5080, main 67e8ae1)

What testers see on this card: a large part of the picture stays the same, from the first world frames, while the camera turns. Only the part above the sky's horizon follows the camera. The dumps below show where it comes from.

Setup: RTX 5080, diag build of main 67e8ae1 + #1763 (typed UAV boot fix) + #2178 (structured buffer views as raw views), #1968's program A skipped. VICTORY_DUMP_TARGETS at world entry +200, +260, +320, +380 and +440, with the camera turning continuously between them. Differences below are the mean absolute difference of the dumps' 8-bit normalized pixels (0-255), same resource, between consecutive dumps:

dumps half-res depth 2560x1440 R16G16B16A16_FLOAT lit target TAA resolve output presented image
+200 → +260 57.9 10.8 10.8 10.8
+260 → +320 57.6 6.3 6.5 13.9
+320 → +380 43.2 5.1 5.4 6.3
  • The lit target is not cleared, and almost nothing writes it. Within one frame, from the first submission that touches it to the end of the frame, it changes by 0.3 to 0.6. The sky draw writes it above the horizon. Where the lighting should write (the geometry), the target keeps whatever an earlier frame left there. On stacks where it holds exactly zero, as reported above, that is the same mechanism with nothing written yet.
  • The TAA resolve and the composite pass carry that content to the screen, so it shows as a picture frozen in screen space. The depth meanwhile holds the current view.
  • In these frames the G-buffer colour targets are nearly empty: 0 to 7% of their pixels are not black, while the depth covers the view. In the same frames 2,188 to 2,880 draws per frame are dropped with no dynamic slots for root views or ... for its tables, most of them mesh and indirect mesh draws, on the capped view heap (1,000,000 views, 65,536 dynamic slots). That is the starvation #747 describes and #1779 / #1548 address. Over the first 24 per-frame reports after world entry, the drops per frame were median 0 / p90 348 without #2178, median 0 / p90 706 and median 344 / p90 1,747 in two runs with it, and median 0 / p90 488 this morning on 940d32f + #1762. The thousands per frame come later in the world, with the camera moving. The comparison run without #2178 had its device removed about 3 minutes into the world, before that point, so I can't say whether #2178 or the newer main changes how many are dropped.

So with this stack the frozen picture is a consequence of the lit target never being written, not a separate bug. Once lighting writes the geometry, it should go away.

Local diagnostics only (texture dumps, frame captures). No game data: log counts and pixel statistics.

AI-assisted.

**@⁠JurajSimicevic** on GitHub · 2026-11-25 17:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7169309606) **Why part of the world picture stays frozen while the camera turns (RTX 5080, `main` `67e8ae1`)** What testers see on this card: a large part of the picture stays the same, from the first world frames, while the camera turns. Only the part above the sky's horizon follows the camera. The dumps below show where it comes from. Setup: RTX 5080, diag build of `main` `67e8ae1` + #1763 (typed UAV boot fix) + #2178 (structured buffer views as raw views), #1968's program A skipped. `VICTORY_DUMP_TARGETS` at world entry +200, +260, +320, +380 and +440, with the camera turning continuously between them. Differences below are the mean absolute difference of the dumps' 8-bit normalized pixels (0-255), same resource, between consecutive dumps: | dumps | half-res depth | 2560x1440 `R16G16B16A16_FLOAT` lit target | TAA resolve output | presented image | |---|---|---|---|---| | +200 → +260 | 57.9 | 10.8 | 10.8 | 10.8 | | +260 → +320 | 57.6 | 6.3 | 6.5 | 13.9 | | +320 → +380 | 43.2 | 5.1 | 5.4 | 6.3 | - **The lit target is not cleared, and almost nothing writes it.** Within one frame, from the first submission that touches it to the end of the frame, it changes by 0.3 to 0.6. The sky draw writes it above the horizon. Where the lighting should write (the geometry), the target keeps whatever an earlier frame left there. On stacks where it holds exactly zero, as reported above, that is the same mechanism with nothing written yet. - **The TAA resolve and the composite pass carry that content to the screen**, so it shows as a picture frozen in screen space. The depth meanwhile holds the current view. - **In these frames the G-buffer colour targets are nearly empty:** 0 to 7% of their pixels are not black, while the depth covers the view. In the same frames 2,188 to 2,880 draws per frame are dropped with `no dynamic slots for root views` or `... for its tables`, most of them mesh and indirect mesh draws, on the capped view heap (1,000,000 views, 65,536 dynamic slots). That is the starvation #747 describes and #1779 / #1548 address. Over the first 24 per-frame reports after world entry, the drops per frame were median 0 / p90 348 without #2178, median 0 / p90 706 and median 344 / p90 1,747 in two runs with it, and median 0 / p90 488 this morning on `940d32f` + #1762. The thousands per frame come later in the world, with the camera moving. The comparison run without #2178 had its device removed about 3 minutes into the world, before that point, so I can't say whether #2178 or the newer `main` changes how many are dropped. So with this stack the frozen picture is a consequence of the lit target never being written, not a separate bug. Once lighting writes the geometry, it should go away. Local diagnostics only (texture dumps, frame captures). No game data: log counts and pixel statistics. AI-assisted.
Author
Owner

@⁠ChenmouXu on GitHub · 2026-11-26 04:53 UTC · original

The flashing here looks like a texture-slot update race, not the output surface -- and there is a public fix for it

Context: RTX 5070 Ti (Blackwell), title 1.0.2.1, Xeltax/VIcky @ fx-heapmap-4e (packed-target substitution + page-mapped heap). Runs a whole session with no device removal, reaches the world, 0.45-2 fps. The picture flashes: per-frame luminance sits at ~14.6 for whole seconds, jumps to 33 / 49 / 65 / 77 for single frames and falls back to 14.7 -- seconds of black, one bright frame, black again, not a per-frame tear.

Two patches of mine made no difference, which I now read as a sign the cause is upstream of presentation: waiting on settle_for_present() before the flip (removed the "still held a submission at a present" warning, no change to the flashing), and skipping the flip when nothing was drawn.

What does explain it: avatarmanz/VIctory-7900XTX fixed exactly this on AMD, and the commit titles say what it is.

  • "Textures made while lists sent before them run are shown in their slots only once those ran (VICTORY_SHOW_NEW_LATER, on; 0: at once)"
  • "a slot is not switched at once to a pooled texture made while lists sent before it may read it"
  • "A slot written with another texture goes on showing one that can stand for it (VICTORY_KEEP_SHOWN=1; 0: black, then grey)"

That is: a descriptor slot is pointed at a texture that is still being uploaded, lists sent earlier read it before it lands, and the frame shows black or the previous content; the next frame shows the real texture. Alternate and you get the flashing we see. The KEEP_SHOWN=0 note -- "black, then grey" -- matches the luminance series above almost exactly.

So on NVIDIA the order of work may be: the format and heap removals (#2626/#1763/#1906/#2098), then this slot-switch race, which the AMD forks already solved and named.

Has anyone on NVIDIA tried VICTORY_SHOW_NEW_LATER / VICTORY_KEEP_SHOWN equivalents in the VIctory tree? If the AMD fix is portable, it would save re-deriving it; if it is AMD-specific (the pool and the copy queue differ), it is at least a precise description of what to look for.

I can run any branch that carries it: diag build, DRED on, full debug-layer log, and I will report frame times and a luminance series like the one above.

**@⁠ChenmouXu** on GitHub · 2026-11-26 04:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/841#issuecomment-7182992854) The flashing here looks like a texture-slot update race, not the output surface -- and there is a public fix for it Context: RTX 5070 Ti (Blackwell), title 1.0.2.1, `Xeltax/VIcky` @ `fx-heapmap-4e` (packed-target substitution + page-mapped heap). Runs a whole session with no device removal, reaches the world, 0.45-2 fps. The picture flashes: per-frame luminance sits at ~14.6 for whole seconds, jumps to 33 / 49 / 65 / 77 for single frames and falls back to 14.7 -- seconds of black, one bright frame, black again, not a per-frame tear. Two patches of mine made no difference, which I now read as a sign the cause is upstream of presentation: waiting on `settle_for_present()` before the flip (removed the "still held a submission at a present" warning, no change to the flashing), and skipping the flip when nothing was drawn. What does explain it: `avatarmanz/VIctory-7900XTX` fixed exactly this on AMD, and the commit titles say what it is. - "Textures made while lists sent before them run are shown in their slots only once those ran (`VICTORY_SHOW_NEW_LATER`, on; 0: at once)" - "a slot is not switched at once to a pooled texture made while lists sent before it may read it" - "A slot written with another texture goes on showing one that can stand for it (`VICTORY_KEEP_SHOWN=1`; 0: black, then grey)" That is: a descriptor slot is pointed at a texture that is still being uploaded, lists sent earlier read it before it lands, and the frame shows black or the previous content; the next frame shows the real texture. Alternate and you get the flashing we see. The `KEEP_SHOWN=0` note -- "black, then grey" -- matches the luminance series above almost exactly. So on NVIDIA the order of work may be: the format and heap removals (#2626/#1763/#1906/#2098), then this slot-switch race, which the AMD forks already solved and named. Has anyone on NVIDIA tried `VICTORY_SHOW_NEW_LATER` / `VICTORY_KEEP_SHOWN` equivalents in the VIctory tree? If the AMD fix is portable, it would save re-deriving it; if it is AMD-specific (the pool and the copy queue differ), it is at least a precise description of what to look for. I can run any branch that carries it: diag build, DRED on, full debug-layer log, and I will report frame times and a luminance series like the one above.
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/Marvisak--VIctory#841
No description provided.