15 shaders still fail to translate at 2119b0e on a 4060 Ti (six reasons; the pixel "descriptor read only as data" ones match the black blocks) #279

Open
opened 2026-11-26 03:39:46 +00:00 by github-bot · 23 comments
Owner

@⁠aef200 on GitHub · 2026-11-24 23:10 UTC · original

Fifteen shaders still fail to translate at 2119b0e on an RTX 4060 Ti, in six distinct ways, and the largest group is what leaves black blocks in the world.

Build and machine: 2119b0e, --features diagnostics, Windows 11 26200, RTX 4060 Ti 8 GB, native D3D12, no Wine. Switches:

VICTORY_WAVE64_EMULATE=emulate
VICTORY_RELAY=2
VICTORY_LATE_WAIT=3
VICTORY_WIDE_BACK=1
VICTORY_CARD_BUFFERS_MIN_MB=1
VICTORY_CARD_BUFFERS_MB=256

That combination gives 3 fps / ~300 ms per frame in the world here, which is the best this card has managed; VICTORY_RELAY=2 alone was worth about 2.4x over the same build without it (780 ms -> ~330 ms). Thank you for it.

What the run shows: the game reaches gameplay, and in this build it got as far as the mission where Carl falls off the boat. That mission does not progress, and the picture has many black blocks that make the scene unreadable. The log says why - fifteen shaders never translate, so their draws are dropped:

count stage reason example hash
6+ pixel a descriptor read only as data is not supported abc6a80d46edc294, 8660e9822ebe4b62, 7d0f14ce44746d7e, c8df7216c69cecbd, 2fd01fca16993001, 6b6db9f1a526daeb
3 compute v_cvt_f32_f64 is not supported 5dc3b25986622949, 6f225b641c5b0708, 926c46bab3b86bd6
1 compute v_permlanex16_b32 is not supported a929109552ce1e84
1 compute a lane mask exchanged where not every lane runs is not supported f133e35efed2a48a
1 compute a descriptor's address or format read as data is not supported ceb5eb68cd99cb07
1 pixel the first half of an interpolation is not supported 78f3f2fc53a69531

Each comes with the code offset in the converter's own message (for example GFX10 code at 0x4808).

The six pixel shaders reading a descriptor as data look like the direct cause of the black blocks: those are material programs, and their draws are dropped. The compute one that reads a descriptor's address or format as data is probably the same feature from the other side.

One note on #11: the lane-mask change is in this build, and a compute shader still stops on a lane mask exchanged where not every lane runs is not supported, so the parked change does not cover that shape yet.

I can run anything you want on this card and report back: it is a 32-lane Ada host with 8 GB, so it fails differently from the 12 GB host in the README.

**@⁠aef200** on GitHub · 2026-11-24 23:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/279) Fifteen shaders still fail to translate at `2119b0e` on an RTX 4060 Ti, in six distinct ways, and the largest group is what leaves black blocks in the world. **Build and machine:** `2119b0e`, `--features diagnostics`, Windows 11 26200, RTX 4060 Ti 8 GB, native D3D12, no Wine. Switches: ``` VICTORY_WAVE64_EMULATE=emulate VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=256 ``` That combination gives **3 fps / ~300 ms per frame** in the world here, which is the best this card has managed; `VICTORY_RELAY=2` alone was worth about 2.4x over the same build without it (780 ms -> ~330 ms). Thank you for it. **What the run shows:** the game reaches gameplay, and in this build it got as far as the mission where Carl falls off the boat. That mission does not progress, and the picture has many black blocks that make the scene unreadable. The log says why - fifteen shaders never translate, so their draws are dropped: | count | stage | reason | example hash | |---|---|---|---| | 6+ | pixel | `a descriptor read only as data is not supported` | `abc6a80d46edc294`, `8660e9822ebe4b62`, `7d0f14ce44746d7e`, `c8df7216c69cecbd`, `2fd01fca16993001`, `6b6db9f1a526daeb` | | 3 | compute | `v_cvt_f32_f64 is not supported` | `5dc3b25986622949`, `6f225b641c5b0708`, `926c46bab3b86bd6` | | 1 | compute | `v_permlanex16_b32 is not supported` | `a929109552ce1e84` | | 1 | compute | `a lane mask exchanged where not every lane runs is not supported` | `f133e35efed2a48a` | | 1 | compute | `a descriptor's address or format read as data is not supported` | `ceb5eb68cd99cb07` | | 1 | pixel | `the first half of an interpolation is not supported` | `78f3f2fc53a69531` | Each comes with the code offset in the converter's own message (for example `GFX10 code at 0x4808`). The six pixel shaders reading a descriptor as data look like the direct cause of the black blocks: those are material programs, and their draws are dropped. The compute one that reads a descriptor's address or format as data is probably the same feature from the other side. One note on #11: the lane-mask change is in this build, and a compute shader still stops on `a lane mask exchanged where not every lane runs is not supported`, so the parked change does not cover that shape yet. I can run anything you want on this card and report back: it is a 32-lane Ada host with 8 GB, so it fails differently from the 12 GB host in the README.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:39:47 +00:00
Author
Owner

@⁠VibeClauding on GitHub · 2026-11-24 23:20 UTC · original · edited 2026-11-24 23:27 UTC

RTX 3070 8 GB (driver 610.88, Ryzen 7 5700X3D, 16 GB), Series X, diag build on 4e17478. Three of the failures in the table translate on a branch here, and two of the refused 64-lane pipelines from #7 now get host pipelines. Branch: VibeClauding/victory-fork@nvidia-8gb-fixes.

Translator (4b5f2de):

  • v_permlane16_b32 / v_permlanex16_b32 (a929109552ce1e84): lowered like ds_swizzle. Lane i reads row (i & ~15) (x16: ^ 16) plus nibble i of {src2, src1}, via WaveReadLaneAt. It stays inside a 32-lane half, so a 32-lane host wave holds every lane named. FI/BC are not honoured. A GPU test checks three select patterns at 8 lanes for both opcodes. a929109552ce1e84 translates in game.
  • v_cvt_f32_f64: round to nearest even in 32-bit integer code, so no doubles are needed. abs/neg are handled; results below the smallest normal flush to signed zero. A GPU test (hardware + WARP) compares it against Rust's as f32, including ties, overflow to infinity and NaN. In game, 5dc3b25986622949 and 6f225b641c5b0708 (water_shading:CS_TransmissionVolumetrics_Tiled*) now stop one step later, at the same offset: a whole-wave section step the simulation does not follow. The conversion sits inside a whole-wave section. (#163 is another lowering of the same instruction.)
  • With #203 merged as well, only 3 programs fail to translate in a whole run here: those two, and f133e35efed2a48a (CS_ShadowRenderTiledCascadesAlphaCBPPPC, the lane mask exchange).

Refused 64-lane pipelines (0c74520):

  • Offline with VICTORY_HOST_WAVE=32 VICTORY_D3D12_DEBUG=1 victory translate --pipelines, 2cc4c197ee29e291 (sr_tracing:CS_Tiling_Generate_Opaque) and 369cbe906ea72764 (GpuParticleUpdate:CS_Visibility) fail with "Shader wants wave lane count of 64". Every exact and approximate form ends in wave 64. The wave-wide form (VICTORY_WAVE_WIDE=1) gives both wave 32: WAVE64-RETRY wave-wide branches: wave Some(32).
  • That form is off globally because of the light-atlas hang (#5). So the branch adds a per-program switch, VICTORY_WAVE_WIDE_ONLY=<hash>,..., which is part of each program's shader cache key (next to the deep-skips lists from Xeltax's e27b969, ported).
  • With VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764, both pipelines are created in game, and there was no device loss in that run. Still refused: 02384a60fda6f2d0 (groups of 128, where the wide form is not tried) and 2da4beb386509b77 (alphaResolve:CS_AlphTransmissionPrefilterMip, E_INVALIDARG with no debug-layer message).

Also on the branch, untested beyond single runs here:

  • VICTORY_BVH_MISS=1: the node test always misses without reading the node. With the builder off, building faces turned away from the sun gained probe light over a few hundred frames instead of staying silhouettes. Interiors stay dark.
  • Typed buffer views off their copy's elements (the R32G32B32_FLOAT refusals Yorivel found on #62) get a copy of their own bytes, after upstream 86a5ed6. The cell walls drew in that run, but at this base rate (about half the runs here) one run proves nothing. I'll post repeat runs on #62.

Speed on this machine, averaged over minutes 3 to 6 in the world: 2.1 fps by default and 3.0 fps with VICTORY_RELAY=2, both in Series X mode. Correction: I first wrote that VICTORY_D3D12_DRED was unset in the relay run. It wasn't: my launcher set it to an empty string, and dred_on() only checks var_os().is_some(), so the per-command notes stayed on (about 390 ms of recording per frame across threads). With it really unset, plus Series S mode (#188 merged), I get 4.3 fps (232 ms: 115 preparing, 95 GPU, 186 copying back on the relay thread). VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 on top made no difference (2.9 vs 3.0 in Series X).

Counts, hashes and offsets only; no game data. AI-assisted (Claude Code); everything was run on my machine with my own copy.

**@⁠VibeClauding** on GitHub · 2026-11-24 23:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7147288489) · edited 2026-11-24 23:27 UTC RTX 3070 8 GB (driver 610.88, Ryzen 7 5700X3D, 16 GB), Series X, diag build on `4e17478`. Three of the failures in the table translate on a branch here, and two of the refused 64-lane pipelines from #7 now get host pipelines. Branch: [VibeClauding/victory-fork@nvidia-8gb-fixes](https://github.com/VibeClauding/victory-fork/tree/nvidia-8gb-fixes). **Translator** ([`4b5f2de`](https://github.com/VibeClauding/victory-fork/commit/4b5f2de)): - `v_permlane16_b32` / `v_permlanex16_b32` (`a929109552ce1e84`): lowered like `ds_swizzle`. Lane i reads row `(i & ~15)` (x16: `^ 16`) plus nibble i of {src2, src1}, via `WaveReadLaneAt`. It stays inside a 32-lane half, so a 32-lane host wave holds every lane named. FI/BC are not honoured. A GPU test checks three select patterns at 8 lanes for both opcodes. `a929109552ce1e84` translates in game. - `v_cvt_f32_f64`: round to nearest even in 32-bit integer code, so no doubles are needed. abs/neg are handled; results below the smallest normal flush to signed zero. A GPU test (hardware + WARP) compares it against Rust's `as f32`, including ties, overflow to infinity and NaN. In game, `5dc3b25986622949` and `6f225b641c5b0708` (`water_shading:CS_TransmissionVolumetrics_Tiled*`) now stop one step later, at the same offset: `a whole-wave section step the simulation does not follow`. The conversion sits inside a whole-wave section. (#163 is another lowering of the same instruction.) - With #203 merged as well, only 3 programs fail to translate in a whole run here: those two, and `f133e35efed2a48a` (`CS_ShadowRenderTiledCascadesAlphaCBPPPC`, the lane mask exchange). **Refused 64-lane pipelines** ([`0c74520`](https://github.com/VibeClauding/victory-fork/commit/0c74520)): - Offline with `VICTORY_HOST_WAVE=32 VICTORY_D3D12_DEBUG=1 victory translate --pipelines`, `2cc4c197ee29e291` (`sr_tracing:CS_Tiling_Generate_Opaque`) and `369cbe906ea72764` (`GpuParticleUpdate:CS_Visibility`) fail with "Shader wants wave lane count of 64". Every exact and approximate form ends in wave 64. The wave-wide form (`VICTORY_WAVE_WIDE=1`) gives both wave 32: `WAVE64-RETRY wave-wide branches: wave Some(32)`. - That form is off globally because of the light-atlas hang (#5). So the branch adds a per-program switch, `VICTORY_WAVE_WIDE_ONLY=<hash>,...`, which is part of each program's shader cache key (next to the deep-skips lists from Xeltax's `e27b969`, ported). - With `VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764`, both pipelines are created in game, and there was no device loss in that run. Still refused: `02384a60fda6f2d0` (groups of 128, where the wide form is not tried) and `2da4beb386509b77` (`alphaResolve:CS_AlphTransmissionPrefilterMip`, `E_INVALIDARG` with no debug-layer message). **Also on the branch, untested beyond single runs here:** - `VICTORY_BVH_MISS=1`: the node test always misses without reading the node. With the builder off, building faces turned away from the sun gained probe light over a few hundred frames instead of staying silhouettes. Interiors stay dark. - Typed buffer views off their copy's elements (the `R32G32B32_FLOAT` refusals Yorivel found on #62) get a copy of their own bytes, after upstream `86a5ed6`. The cell walls drew in that run, but at this base rate (about half the runs here) one run proves nothing. I'll post repeat runs on #62. Speed on this machine, averaged over minutes 3 to 6 in the world: 2.1 fps by default and 3.0 fps with `VICTORY_RELAY=2`, both in Series X mode. *Correction:* I first wrote that `VICTORY_D3D12_DRED` was unset in the relay run. It wasn't: my launcher set it to an empty string, and `dred_on()` only checks `var_os().is_some()`, so the per-command notes stayed on (about 390 ms of recording per frame across threads). With it really unset, plus Series S mode (#188 merged), I get 4.3 fps (232 ms: 115 preparing, 95 GPU, 186 copying back on the relay thread). `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1` on top made no difference (2.9 vs 3.0 in Series X). Counts, hashes and offsets only; no game data. AI-assisted (Claude Code); everything was run on my machine with my own copy.
Author
Owner

@⁠aef200 on GitHub · 2026-11-24 23:57 UTC · original

A cleaner reproduction of what was reported above: on foot everything works, in a vehicle nothing moves.

Same build (VibeClauding/victory-fork@nvidia-8gb-fixes, ca89b24), RTX 4060 Ti 8 GB, --console series-s, VICTORY_RELAY=2 and the rest of the switches from my first post.

what result
on foot: left stick / WASD walks normally
on foot: right stick / IJKL camera turns normally
in the boat: right trigger engine revs, wake appears
in the boat: left stick position never changes
after leaving the vehicle walks normally again

That is the whole of it: input reaches the game (the trigger does something visible, the same stick works on foot), the picture is drawn, and the vehicle simply never moves. It is not a dead input path and not a dropped draw - the vehicle's position update does not happen.

It matches likecrank-dotcom's report above exactly, on a different card, and it is what stops the prologue: the mission needs the boat to reach a marker, so the checkpoint is lost a few seconds in, every time. Skipping the checkpoint gets past that one moment, and then the next sea segment blocks the story again.

So my question is narrower than "the boat sinks": is there a program that updates a vehicle's transform - a compute program or a physics step - that fails to translate or is skipped? The four programs that still fail to translate in my run are the two water_shading:CS_TransmissionVolumetrics_Tiled* ones, CS_ShadowRenderTiledCascadesAlphaCBPPPC, and one more of the same water pair, so nothing obviously vehicular is in that list, which makes me think it is not translation but a step that never runs.

If there is a log target or a switch that shows vehicle state, I will run it and report what changes.

**@⁠aef200** on GitHub · 2026-11-24 23:57 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7147980424) A cleaner reproduction of what was reported above: **on foot everything works, in a vehicle nothing moves.** Same build (`VibeClauding/victory-fork@nvidia-8gb-fixes`, `ca89b24`), RTX 4060 Ti 8 GB, `--console series-s`, `VICTORY_RELAY=2` and the rest of the switches from my first post. | what | result | |---|---| | on foot: left stick / WASD | walks normally | | on foot: right stick / IJKL | camera turns normally | | in the boat: right trigger | engine revs, wake appears | | in the boat: left stick | **position never changes** | | after leaving the vehicle | walks normally again | That is the whole of it: input reaches the game (the trigger does something visible, the same stick works on foot), the picture is drawn, and the vehicle simply never moves. It is not a dead input path and not a dropped draw - the vehicle's position update does not happen. It matches `likecrank-dotcom`'s report above exactly, on a different card, and it is what stops the prologue: the mission needs the boat to reach a marker, so the checkpoint is lost a few seconds in, every time. Skipping the checkpoint gets past that one moment, and then the next sea segment blocks the story again. So my question is narrower than "the boat sinks": is there a program that updates a vehicle's transform - a compute program or a physics step - that fails to translate or is skipped? The four programs that still fail to translate in my run are the two `water_shading:CS_TransmissionVolumetrics_Tiled*` ones, `CS_ShadowRenderTiledCascadesAlphaCBPPPC`, and one more of the same water pair, so nothing obviously vehicular is in that list, which makes me think it is not translation but a step that never runs. If there is a log target or a switch that shows vehicle state, I will run it and report what changes.
Author
Owner

@⁠likecrank-dotcom on GitHub · 2026-11-24 23:14 UTC · original · edited 2026-11-24 23:58 UTC

Independent reproduction of the Gone Fishing boat failure on Windows 11, Ryzen 5 3600, 32 GB RAM and RTX 5060 Ti 8 GB (NVIDIA 621.14). Base renderer is 7b0f736, diagnostics build with only local XGameSave logging added. Series X, RELAY=2, LATE_WAIT=3, WIDE_BACK=1, shader loop limit 256 and card buffers 1/1024 MB.

The hardware owner completed the prologue transition and confirmed control of Jason. The ordinary game window displayed Follow the plane, the aircraft and Engine destroyed, then Cal fell overboard. The owner saw the boat drop underwater as control became available and reported the same behavior after an in-game checkpoint retry, before having time to use the Reset prompt. Skip Checkpoint kept the boat afloat briefly, then it sank again. On a later attempt C (RT) made the engine rev and produced a wake, but the boat stayed in place and sank. On some retries the boat can travel a couple of metres before sinking. The owner confirmed the Tab (View) Reset action works and the sinking repeats after reset. A second locally retained screenshot after the subsequent sinking shows a distinct failure reason (the boat was wrecked, 273.9 ms/frame, 3,160 draws). One captured gameplay sample was 304.5 ms/frame, 4,210 draws. No logged GPU removal by this point.

A similar mission failure was reported independently on RTX 5090. The warning and mission failure show a gameplay consequence, but the reason the boat sinks and any relationship to the shader failures are still open. Full run report. The owner exercised the controls and captured the HUD. Codex prepared the build and checked the runtime traces. No game files or images uploaded.

After a full application restart from the verified save, the owner observed the boat sink as soon as gameplay started, with neutral input. This reproduces the issue without throttle or steering.

Controlled follow-up: RELAY=2, 1 and 0 used the same 7b0f736-derived binary, Series X, LATE_WAIT=3, and private copies of the same verified v2 save and cache seeds. With neutral input, RELAY=2 still sank at handover; with RELAY=1 the boat appeared immersed without continuing to descend while engine health fell. RELAY=0 still ended in boat damage and mission failure. The locally retained RELAY=0 comparison shows a water-like surface intersecting the boat before control, mostly occluding it once the HUD appears, and a tilted view of the bow inside the bright surface just before failure. The relay option did not prevent the failure on this system. It remains unclear where the waterline mismatch and actual engine damage originate.

The same failure also occurs with synchronous submission: RELAY=0 and LATE_WAIT=0, changing only LATE_WAIT from the preceding RELAY=0 run with the same executable and v2 save/cache seeds. The owner saw partial immersion in the cutscene and deeper immersion as Jason approached the helm, before player input was available. Native frame 2500 independently shows the Cal fell overboard failure. In the RELAY=0 log, no newly logged shader translation refusals appeared in sampled intervals before handover, after handover or before failure; the existing dropped compute programs were the same. That does not rule out an earlier shader failure or establish a physics cause.

**@⁠likecrank-dotcom** on GitHub · 2026-11-24 23:14 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7147182571) · edited 2026-11-24 23:58 UTC Independent reproduction of the Gone Fishing boat failure on Windows 11, Ryzen 5 3600, 32 GB RAM and RTX 5060 Ti 8 GB (NVIDIA 621.14). Base renderer is 7b0f736, diagnostics build with only local XGameSave logging added. Series X, RELAY=2, LATE_WAIT=3, WIDE_BACK=1, shader loop limit 256 and card buffers 1/1024 MB. The hardware owner completed the prologue transition and confirmed control of Jason. The ordinary game window displayed Follow the plane, the aircraft and Engine destroyed, then Cal fell overboard. The owner saw the boat drop underwater as control became available and reported the same behavior after an in-game checkpoint retry, before having time to use the Reset prompt. Skip Checkpoint kept the boat afloat briefly, then it sank again. On a later attempt C (RT) made the engine rev and produced a wake, but the boat stayed in place and sank. On some retries the boat can travel a couple of metres before sinking. The owner confirmed the Tab (View) Reset action works and the sinking repeats after reset. A second locally retained screenshot after the subsequent sinking shows a distinct failure reason (the boat was wrecked, 273.9 ms/frame, 3,160 draws). One captured gameplay sample was 304.5 ms/frame, 4,210 draws. No logged GPU removal by this point. A similar mission failure was reported independently on [RTX 5090](https://github.com/4lwayz/portwatch-vi/issues/58#issuecomment-7145739839). The warning and mission failure show a gameplay consequence, but the reason the boat sinks and any relationship to the shader failures are still open. [Full run report](https://git.gtahub.st/github/fxceless--victory-fork/issues/26). The owner exercised the controls and captured the HUD. Codex prepared the build and checked the runtime traces. No game files or images uploaded. After a full application restart from the verified save, the owner observed the boat sink as soon as gameplay started, with neutral input. This reproduces the issue without throttle or steering. Controlled follow-up: RELAY=2, 1 and 0 used the same 7b0f736-derived binary, Series X, LATE_WAIT=3, and private copies of the same verified v2 save and cache seeds. With neutral input, RELAY=2 still sank at handover; with RELAY=1 the boat appeared immersed without continuing to descend while engine health fell. RELAY=0 still ended in boat damage and mission failure. The locally retained RELAY=0 comparison shows a water-like surface intersecting the boat before control, mostly occluding it once the HUD appears, and a tilted view of the bow inside the bright surface just before failure. The relay option did not prevent the failure on this system. It remains unclear where the waterline mismatch and actual engine damage originate. The same failure also occurs with synchronous submission: RELAY=0 and LATE_WAIT=0, changing only LATE_WAIT from the preceding RELAY=0 run with the same executable and v2 save/cache seeds. The owner saw partial immersion in the cutscene and deeper immersion as Jason approached the helm, before player input was available. Native frame 2500 independently shows the Cal fell overboard failure. In the RELAY=0 log, no newly logged shader translation refusals appeared in sampled intervals before handover, after handover or before failure; the existing dropped compute programs were the same. That does not rule out an earlier shader failure or establish a physics cause.
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 00:57 UTC · original

Full-pack comparison of #81 and #203 for the "descriptor read only as data" pixel shaders, offline on the retail shader pack. Both fix all 35 pixel programs in that group, which this issue ties to the black blocks. #203 also fixes 11 programs #81 does not. Neither breaks anything that validates on main.

Setup: as in my comment on #53. main 2119b0e, each PR merged onto it (clean merges), release, rustc 1.98.1 x86_64-pc-windows-msvc, dxil.dll from Windows SDK 10.0.26100.0, victory translate <game>\shaders.rpf --validate --list --jobs 16. 26,084 programs.

build validated failing "a descriptor read only as data" "a descriptor's address or format read as data"
main 2119b0e 25,370 519 40 (Ps 35, Cs 5) 1
+ #81 (9327f1e) 25,405 484 5 (Cs) 1
+ #203 (0e49a91) 25,416 473 5 (Cs) 0
+ #150 + #112 + #81 25,544 345 5 1
+ #150 + #112 + #203 25,555 334 5 0
  • Both PRs: every pixel program in the group validates. The 5 left are compute programs.
  • What #203 fixes beyond #81:
    • 8 "the first half of an interpolation";
    • 2 "a wave sum of 16-bit floats where not every lane runs";
    • 1 "a descriptor's address or format read as data".
  • Overlap with #53: #150 and #112 (see #53) stack with either PR without conflicts.
  • Regressions: none of these builds fails a program that validates on main.

Not tested: the title with these builds (offline validation only); whether the black blocks are gone in the world.

AI use: Claude Code with Claude Opus 5.5 reviewed the diffs, ran the builds and the validation, and wrote this comment.

**@⁠JRamos1993** on GitHub · 2026-11-25 00:57 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7149057497) **Full-pack comparison of #81 and #203 for the "descriptor read only as data" pixel shaders, offline on the retail shader pack.** Both fix all 35 pixel programs in that group, which this issue ties to the black blocks. #203 also fixes 11 programs #81 does not. Neither breaks anything that validates on `main`. **Setup:** as in my comment on #53. `main` `2119b0e`, each PR merged onto it (clean merges), release, rustc 1.98.1 `x86_64-pc-windows-msvc`, `dxil.dll` from Windows SDK 10.0.26100.0, `victory translate <game>\shaders.rpf --validate --list --jobs 16`. 26,084 programs. | build | validated | failing | "a descriptor read only as data" | "a descriptor's address or format read as data" | |---|---|---|---|---| | `main` `2119b0e` | 25,370 | 519 | 40 (Ps 35, Cs 5) | 1 | | + #81 (`9327f1e`) | 25,405 | 484 | 5 (Cs) | 1 | | + #203 (`0e49a91`) | 25,416 | 473 | 5 (Cs) | 0 | | + #150 + #112 + #81 | 25,544 | 345 | 5 | 1 | | + #150 + #112 + #203 | **25,555** | **334** | 5 | 0 | - **Both PRs:** every pixel program in the group validates. The 5 left are compute programs. - **What #203 fixes beyond #81:** - 8 "the first half of an interpolation"; - 2 "a wave sum of 16-bit floats where not every lane runs"; - 1 "a descriptor's address or format read as data". - **Overlap with #53:** #150 and #112 (see #53) stack with either PR without conflicts. - **Regressions:** none of these builds fails a program that validates on `main`. **Not tested:** the title with these builds (offline validation only); whether the black blocks are gone in the world. AI use: Claude Code with Claude Opus 5.5 reviewed the diffs, ran the builds and the validation, and wrote this comment.
Author
Owner

@⁠MoonYueya on GitHub · 2026-11-25 01:20 UTC · original

Adding data from a 32-lane Ampere card (RTX 3080 10 GB): the same two pixel hashes, plus two switch tests that rule out two competing explanations.

Machine

  • NVIDIA GeForce RTX 3080, 10 GB (qwMemorySize = 10,737,418,240), driver 32.0.16.1742 (2026-09-30), 32-lane waves.
  • AMD Ryzen 7 7700, 31.1 GB RAM, Windows 11 Pro build 26300, TdrDelay unset, native D3D12.
  • 2119b0e, cargo build --profile diag -p victory --features diagnostics, toolchain 1.98.1, Series X profile.
  • 300 s per run, VICTORY_D3D12_DEBUG=1, menus driven by VICTORY_KEYS (X/Enter every 8 s from 3 s).

The two pixel programs are still there, and they are the world, not the menus

At 2119b0e with default switches I see 8 shaders that do not translate. Two of
them are the ones #279 reports:

stage hash reason offset
pixel 2fd01fca16993001 a descriptor read only as data 0x51c4
pixel 6b6db9f1a526daeb a descriptor read only as data 0x49dc

The other six here:

stage hash reason offset
compute f133e35efed2a48a a lane mask exchanged where not every lane runs 0x1eb4
pixel 38bf0814e721a1b3 the first half of an interpolation 0x1464
compute a929109552ce1e84 v_permlanex16_b32 0xd00
compute ceb5eb68cd99cb07 a descriptor's address or format read as data 0x38
compute 5dc3b25986622949 v_cvt_f32_f64 0x7e8
compute 6f225b641c5b0708 v_cvt_f32_f64 0x7f8

Both material pixel programs first fail after the world has started (first
frame over 1,000 draws), not during the menus: 165 s into a run whose world
begins at 136 s, and 157 s into one that begins at 83 s. So they are loaded by
the prologue, which matches the picture: the character's hair reads correctly
while skin and torso are flat black silhouettes, and anything the sun does not
hit directly is black.

Two switches that do not fix it

I tested the two things raised elsewhere as causes of a wrong picture, one run
each, everything else default.

VICTORY_SHADER_LOOP_LIMIT=4096 (#62, #176 — the value that makes hair
correct on this same card):

  • the two material pixel hashes still fail;
  • 4 refused pipelines remain (compute 02384a60fda6f2d0, 369cbe906ea72764,
    2da4beb386509b77, 2cc4c197ee29e291, 0x80070057);
  • but the worst frame time in the world improves, 6,070.6 -> 2,803.3 ms.

So the loop limit buys frame time here; it does not close the translation gap.

VICTORY_SHADER_OPT=0 (#310 — the clean-up passes blamed for black blocks):

  • shaders that do not translate go 8 -> 11, and the three new ones are the
    same shape: pixel abc6a80d46edc294 (0x4808), 8660e9822ebe4b62 (0x4c88),
    c8df7216c69cecbd (0x4f8c), all “a descriptor read only as data”;
  • the same two material hashes still fail;
  • worst world frame time gets worse, 6,070.6 -> 7,523.8 ms;
  • the late picture still shows large black areas.

Turning the clean-up off makes the descriptor-as-data shape show up more, not
less, so on this build it comes from the translation itself rather than from a
pass that hides or introduces it.

D3D12 debug layer at 2119b0e

1,979 messages in 300 s. D3D12_MESSAGE_SEVERITY is CORRUPTION=0, ERROR=1,
WARNING=2, INFO=3, so the ERROR lines are:

ID count message
622 5 CreateComputeShader: shader wants wave64, device maximum is wave32
645 2 CreateDescriptorHeap: NumDescriptors above the 1,000,000 limit
676 1 render target slot 2 is R8_UINT, which does not support blending

Everything else is WARNING: 971 x1,925 (pipeline library has no such name, normal
on a first run), 970 x17, 680 x14, 679 x8, 820 x4, 974 x2, 677 x1.

There is no resource-state, descriptor-out-of-range, GPU page-fault or
device-removed message in the run. That is consistent with #279's reading that
these are dropped draws rather than invalid API use — I am not claiming it proves
the cause.

Other switches, for completeness

Same build, same 300 s, worst frame time over rows with draws >= 1,000/frame
(declared because a whole-run peak differs: RELAY=2 reaches 7,541 dropped/frame
on a 715-draw row, and RELAY=1 reaches 3,031 outside the filtered rows):

switches do not translate refused pipelines worst ms dropped peak (whole run)
default 8 6 6,070.6 2,998
RELAY=2 3 5 6,143.2 7,541
RELAY=2 + TEXTURE_GUARD=0 4 5 9,064.0 4,607
RELAY=1 1 3 892.0 3,031
LOOP_LIMIT=4096 3 4 2,803.3 4,636
SHADER_OPT=0 11 6 7,523.8 3,166

RELAY=1 is the only configuration that also drops both material hashes (only
38bf0814e721a1b3 remains). It also submits the fewest draws, so I would not read
that as “relay 1 is correct” — just as the condition under which those two
programs did not get used in 300 s.

Reproduce

export VICTORY_KEYS=$(for t in $(seq 3 8 320); do printf '%s:Enter,' $t; done)
VICTORY_SHADER_LOOP_LIMIT=4096 VICTORY_D3D12_DEBUG=1 \
  victory.exe run <title exe> --execute --unimplemented zero

Numbers only; no game files. AI-assisted test and write-up.

**@⁠MoonYueya** on GitHub · 2026-11-25 01:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7149450010) Adding data from a 32-lane Ampere card (RTX 3080 10 GB): the same two pixel hashes, plus two switch tests that rule out two competing explanations. ### Machine - NVIDIA GeForce RTX 3080, **10 GB** (`qwMemorySize` = 10,737,418,240), driver **32.0.16.1742** (2026-09-30), 32-lane waves. - AMD Ryzen 7 7700, 31.1 GB RAM, Windows 11 Pro build 26300, `TdrDelay` unset, native D3D12. - `2119b0e`, `cargo build --profile diag -p victory --features diagnostics`, toolchain 1.98.1, Series X profile. - 300 s per run, `VICTORY_D3D12_DEBUG=1`, menus driven by `VICTORY_KEYS` (X/Enter every 8 s from 3 s). ### The two pixel programs are still there, and they are the world, not the menus At `2119b0e` with default switches I see 8 shaders that do not translate. Two of them are the ones #279 reports: | stage | hash | reason | offset | |---|---|---|---| | pixel | `2fd01fca16993001` | a descriptor read only as data | 0x51c4 | | pixel | `6b6db9f1a526daeb` | a descriptor read only as data | 0x49dc | The other six here: | stage | hash | reason | offset | |---|---|---|---| | compute | `f133e35efed2a48a` | a lane mask exchanged where not every lane runs | 0x1eb4 | | pixel | `38bf0814e721a1b3` | the first half of an interpolation | 0x1464 | | compute | `a929109552ce1e84` | `v_permlanex16_b32` | 0xd00 | | compute | `ceb5eb68cd99cb07` | a descriptor's address or format read as data | 0x38 | | compute | `5dc3b25986622949` | `v_cvt_f32_f64` | 0x7e8 | | compute | `6f225b641c5b0708` | `v_cvt_f32_f64` | 0x7f8 | Both material pixel programs **first fail after the world has started** (first frame over 1,000 draws), not during the menus: 165 s into a run whose world begins at 136 s, and 157 s into one that begins at 83 s. So they are loaded by the prologue, which matches the picture: the character's hair reads correctly while skin and torso are flat black silhouettes, and anything the sun does not hit directly is black. ### Two switches that do not fix it I tested the two things raised elsewhere as causes of a wrong picture, one run each, everything else default. **`VICTORY_SHADER_LOOP_LIMIT=4096`** (#62, #176 — the value that makes hair correct on this same card): - the two material pixel hashes **still fail**; - 4 refused pipelines remain (compute `02384a60fda6f2d0`, `369cbe906ea72764`, `2da4beb386509b77`, `2cc4c197ee29e291`, `0x80070057`); - but the worst frame time in the world improves, 6,070.6 -> **2,803.3 ms**. So the loop limit buys frame time here; it does not close the translation gap. **`VICTORY_SHADER_OPT=0`** (#310 — the clean-up passes blamed for black blocks): - shaders that do not translate go **8 -> 11**, and the three new ones are the same shape: pixel `abc6a80d46edc294` (0x4808), `8660e9822ebe4b62` (0x4c88), `c8df7216c69cecbd` (0x4f8c), all “a descriptor read only as data”; - the same two material hashes still fail; - worst world frame time gets worse, 6,070.6 -> **7,523.8 ms**; - the late picture still shows large black areas. Turning the clean-up off makes the descriptor-as-data shape show up **more**, not less, so on this build it comes from the translation itself rather than from a pass that hides or introduces it. ### D3D12 debug layer at `2119b0e` 1,979 messages in 300 s. `D3D12_MESSAGE_SEVERITY` is CORRUPTION=0, ERROR=1, WARNING=2, INFO=3, so the ERROR lines are: | ID | count | message | |---|---|---| | 622 | 5 | `CreateComputeShader`: shader wants wave64, device maximum is wave32 | | 645 | 2 | `CreateDescriptorHeap`: NumDescriptors above the 1,000,000 limit | | 676 | 1 | render target slot 2 is R8_UINT, which does not support blending | Everything else is WARNING: 971 x1,925 (pipeline library has no such name, normal on a first run), 970 x17, 680 x14, 679 x8, 820 x4, 974 x2, 677 x1. There is **no** resource-state, descriptor-out-of-range, GPU page-fault or device-removed message in the run. That is consistent with #279's reading that these are dropped draws rather than invalid API use — I am not claiming it proves the cause. ### Other switches, for completeness Same build, same 300 s, worst frame time over rows with `draws >= 1,000/frame` (declared because a whole-run peak differs: `RELAY=2` reaches 7,541 dropped/frame on a 715-draw row, and `RELAY=1` reaches 3,031 outside the filtered rows): | switches | do not translate | refused pipelines | worst ms | dropped peak (whole run) | |---|---|---|---|---| | default | 8 | 6 | 6,070.6 | 2,998 | | `RELAY=2` | 3 | 5 | 6,143.2 | 7,541 | | `RELAY=2` + `TEXTURE_GUARD=0` | 4 | 5 | 9,064.0 | 4,607 | | `RELAY=1` | 1 | 3 | **892.0** | 3,031 | | `LOOP_LIMIT=4096` | 3 | 4 | 2,803.3 | 4,636 | | `SHADER_OPT=0` | 11 | 6 | 7,523.8 | 3,166 | `RELAY=1` is the only configuration that also drops both material hashes (only `38bf0814e721a1b3` remains). It also submits the fewest draws, so I would not read that as “relay 1 is correct” — just as the condition under which those two programs did not get used in 300 s. ### Reproduce ```bash export VICTORY_KEYS=$(for t in $(seq 3 8 320); do printf '%s:Enter,' $t; done) VICTORY_SHADER_LOOP_LIMIT=4096 VICTORY_D3D12_DEBUG=1 \ victory.exe run <title exe> --execute --unimplemented zero ``` *Numbers only; no game files. AI-assisted test and write-up.*
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-25 01:32 UTC · original

Another 32-lane NVIDIA datapoint for this issue, from a later fork commit and a different architecture (Ada).

Build/machine: fxceless main a803c87c + upstream #175 for Windows 10 (Agility SDK 620), diag build with diagnostics; RTX 4080 16 GB, driver 621.01, Windows 10 Pro 22H2 (19045), i5-13600K/32 GB, Series X profile, default switches (no loop limit, no relay), cold pipeline cache.

The material programs: pixel 6b6db9f1a526daeb and 7d0f14ce44746d7e both still do not translate, "a descriptor read only as data" (at GFX10 0x49dc for the first), so their draws are dropped. 2fd01fca16993001 was not used in this run (no log hits). Compute f133e35efed2a48a still fails for the lane mask exchanged where not every lane runs, and ceb5eb68cd99cb07 for a descriptor's address or format read as data. The four compute pipelines MoonYueya lists are refused here too: 02384a60fda6f2d0, 369cbe906ea72764, 2da4beb386509b77, 2cc4c197ee29e291.

Picture: the world is reached; the hair is lit, but the head/face and torso are black silhouettes and nothing away from direct sun is lit - the same symptom as the RTX 3080 report. The cell shell (walls and chain-link window) is present rather than see-through on this build, so the geometry failure in #62 and these dropped material draws are separable.

Running values at 01:22Z: 2.6 fps / 377.8 ms per frame, 4,398 draws/frame, about 350 dropped draws/frame. The first world frames were 2.5-3 s/frame while shaders were still translating, so I will not quote a steady-state figure from those.

I have not built #81 or #203 here. Your offline comparison says both fix the 35-pixel-shader group but that the in-world effect was untested; a warm-cache A/B of #203 on this card is the natural next check.

Counts at shutdown: 4 unique shaders failed to translate (the two pixels and two computes above), the same 4 compute pipelines were refused, no device removal, crashes.log unchanged (0 bytes), 1,500 s. Steady state at the end: 2.4-2.6 fps / 384-414 ms per frame, 4,371-4,767 draws/frame, about 340-352 draws/frame dropped (most of those are the ray-tracing structure builder, which is off). AI-assisted (Claude Code, Claude Opus 5.5); measured on my own machine. No game files attached.

**@⁠Proudnoob4** on GitHub · 2026-11-25 01:32 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7149655460) Another 32-lane NVIDIA datapoint for this issue, from a later fork commit and a different architecture (Ada). **Build/machine:** `fxceless` main `a803c87c` + upstream #175 for Windows 10 (Agility SDK 620), diag build with diagnostics; RTX 4080 16 GB, driver 621.01, Windows 10 Pro 22H2 (19045), i5-13600K/32 GB, Series X profile, default switches (no loop limit, no relay), cold pipeline cache. **The material programs:** pixel `6b6db9f1a526daeb` and `7d0f14ce44746d7e` both still do not translate, "a descriptor read only as data" (at GFX10 0x49dc for the first), so their draws are dropped. `2fd01fca16993001` was not used in this run (no log hits). Compute `f133e35efed2a48a` still fails for the lane mask exchanged where not every lane runs, and `ceb5eb68cd99cb07` for a descriptor's address or format read as data. The four compute pipelines MoonYueya lists are refused here too: `02384a60fda6f2d0`, `369cbe906ea72764`, `2da4beb386509b77`, `2cc4c197ee29e291`. **Picture:** the world is reached; the hair is lit, but the head/face and torso are black silhouettes and nothing away from direct sun is lit - the same symptom as the RTX 3080 report. The cell shell (walls and chain-link window) is present rather than see-through on this build, so the geometry failure in #62 and these dropped material draws are separable. **Running values at 01:22Z:** 2.6 fps / 377.8 ms per frame, 4,398 draws/frame, about 350 dropped draws/frame. The first world frames were 2.5-3 s/frame while shaders were still translating, so I will not quote a steady-state figure from those. I have not built #81 or #203 here. Your offline comparison says both fix the 35-pixel-shader group but that the in-world effect was untested; a warm-cache A/B of #203 on this card is the natural next check. Counts at shutdown: 4 unique shaders failed to translate (the two pixels and two computes above), the same 4 compute pipelines were refused, no device removal, `crashes.log` unchanged (0 bytes), 1,500 s. Steady state at the end: 2.4-2.6 fps / 384-414 ms per frame, 4,371-4,767 draws/frame, about 340-352 draws/frame dropped (most of those are the ray-tracing structure builder, which is off). AI-assisted (Claude Code, Claude Opus 5.5); measured on my own machine. No game files attached.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-25 02:25 UTC · original

Follow-up that corrects the inference in my earlier comment here: on a different fxceless-derived tree, dudegio/VIctory-fx1 48d6cf3a, the same two material pixel hashes (6b6db9f1a526daeb, 7d0f14ce44746d7e) and the same two compute failures are still logged on this RTX 4080, yet the in-game character's hair, face and INMATE shirt are fully textured, with the cell walls, posters and yard visible (captured frames 2048-4096 means 47.8-52.1, 6,128-6,664 unique colours). Details and counts: https://github.com/dudegio/VIctory-fx1/issues/3.

So those untranslated programs alone do not force the black-silhouette picture; this tree's texture-residency and indexed-shadow-address changes restore material detail while the programs still fail. Read my earlier comment as "these failures are present on both trees", not as proof that they cause the dark face.

AI-assisted (Claude Code, Claude Opus 5.5). Measured on my own machine; no game files.

**@⁠Proudnoob4** on GitHub · 2026-11-25 02:25 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7150696210) Follow-up that corrects the inference in my earlier comment here: on a different fxceless-derived tree, `dudegio/VIctory-fx1` `48d6cf3a`, the **same** two material pixel hashes (`6b6db9f1a526daeb`, `7d0f14ce44746d7e`) and the same two compute failures are still logged on this RTX 4080, yet the in-game character's hair, face and INMATE shirt are fully textured, with the cell walls, posters and yard visible (captured frames 2048-4096 means 47.8-52.1, 6,128-6,664 unique colours). Details and counts: https://github.com/dudegio/VIctory-fx1/issues/3. So those untranslated programs alone do not force the black-silhouette picture; this tree's texture-residency and indexed-shadow-address changes restore material detail while the programs still fail. Read my earlier comment as "these failures are present on both trees", not as proof that they cause the dark face. AI-assisted (Claude Code, Claude Opus 5.5). Measured on my own machine; no game files.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-25 02:54 UTC · original

Disclosure correction for my two comments above (1, 2): HY4 Flash (hy4-flash-free, a free model in OpenCode) wrote and posted both while my Claude Code session was out of usage (22:54Z to 02:40Z), so their footers naming Claude Opus 5.5 are wrong.

Rechecked against the logs, as stated:

  • Fork HEAD ran 1,498 s with no device removal.
  • The same 4 programs did not translate (6b6db9f1a526daeb, 7d0f14ce44746d7e, f133e35efed2a48a, ceb5eb68cd99cb07). They also fail on dudegio/VIctory-fx1 and Zettrox/ztrx on this card.

This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.

**@⁠Proudnoob4** on GitHub · 2026-11-25 02:54 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7151341220) **Disclosure correction for my two comments above** ([1](https://git.gtahub.st/github/fxceless--victory-fork/issues/279), [2](https://git.gtahub.st/github/fxceless--victory-fork/issues/279)): HY4 Flash (`hy4-flash-free`, a free model in OpenCode) wrote and posted both while my Claude Code session was out of usage (22:54Z to 02:40Z), so their footers naming Claude Opus 5.5 are wrong. Rechecked against the logs, as stated: - Fork HEAD ran 1,498 s with no device removal. - The same 4 programs did not translate (`6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `f133e35efed2a48a`, `ceb5eb68cd99cb07`). They also fail on dudegio/VIctory-fx1 and Zettrox/ztrx on this card. *This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.*
Author
Owner

@⁠iloveslopware on GitHub · 2026-11-25 03:08 UTC · original

Offline census of the retail shaders.rpf at current main (c96b4f2), --list on a 24-thread Linux host, same pack as the runs above (26,084 programs): four of the six failure classes in the opening table no longer fail that way on stock main. v_permlanex16_b32, the first-half interpolation, and the lane-mask exchange all emit now (a929109552ce1e84, 78f3f2fc53a69531, f133e35efed2a48a), and two of the three v_cvt_f32_f64 hashes do too (5dc3b25986622949, 6f225b641c5b0708); 926c46bab3b86bd6 clears the conversion and stops later on a lane mask holding lanes elsewhere read as data. What remains at c96b4f2, in emit terms:

reason programs
a descriptor read only as data 40 (incl. 6b6db9f1a526daeb, 7d0f14ce44746d7e)
a descriptor chosen by control flow 40
a hardware SGPR input 10
lane-mask shapes (three buckets) 5
a descriptor's address or format read as data 1 (ceb5eb68cd99cb07)

For comparison I ran the same census with upstream's translator (Marvisak/VIctory 940d32f): it emits all forty control-flow-descriptor and all ten SGPR-input programs and 1 of the 40 descriptor-read ones, while still failing the cvt/permlane/barycentric shapes the fork cleared — per-program detail in #126.

Consistent with @⁠Proudnoob4's correction above: the two material pixel hashes fail identically on both trees (and on dudegio/VIctory-fx1), so that family is shared, and the silhouettes are not forced by it alone — and the symptom side is moving on main independently of it: the two commits now on main past this issue's earlier builds (a803c87c, then c96b4f2) are the texture-residency line itself (indexed textures re-checked after upload; uploads before the character bake), the same direction dudegio/VIctory-fx1 took further.

On wave width: the census above runs at the CLI's default, and the lane-mask classes turn out to be width-sensitive. Re-running it with VICTORY_HOST_MAX_WAVE=32 (the fork CLI's model of a 32-lane host, as NVIDIA cards are) reproduces the 32-lane runtime picture exactly: f133e35efed2a48a fails as a lane mask exchanged where not every lane runs — the reason and the hash @⁠Proudnoob4's RTX 4080 run logged — while it emits at the default width, and 6b6db9f1a526daeb fails at the same offset that run booked for it. The totals move three programs in both directions: the two a wave sum of 16-bit floats where not every lane runs programs emit at 32 lanes, and the exchange above newly fails. So the runtime/CLI gap on those hashes is wave width, not tree state — and the knob makes this offline census a usable proxy for 32-lane cards.

Nothing run against the title; --list only, no validator, no pipelines. AI-assisted (GLM via OpenCode).

**@⁠iloveslopware** on GitHub · 2026-11-25 03:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7151632742) Offline census of the retail `shaders.rpf` at current `main` (`c96b4f2`), `--list` on a 24-thread Linux host, same pack as the runs above (26,084 programs): four of the six failure classes in the opening table no longer fail that way on stock `main`. `v_permlanex16_b32`, the first-half interpolation, and the lane-mask exchange all emit now (`a929109552ce1e84`, `78f3f2fc53a69531`, `f133e35efed2a48a`), and two of the three `v_cvt_f32_f64` hashes do too (`5dc3b25986622949`, `6f225b641c5b0708`); `926c46bab3b86bd6` clears the conversion and stops later on `a lane mask holding lanes elsewhere read as data`. What remains at `c96b4f2`, in emit terms: | reason | programs | |---|---| | a descriptor read only as data | 40 (incl. `6b6db9f1a526daeb`, `7d0f14ce44746d7e`) | | a descriptor chosen by control flow | 40 | | a hardware SGPR input | 10 | | lane-mask shapes (three buckets) | 5 | | a descriptor's address or format read as data | 1 (`ceb5eb68cd99cb07`) | For comparison I ran the same census with upstream's translator (`Marvisak/VIctory` `940d32f`): it emits all forty control-flow-descriptor and all ten SGPR-input programs and 1 of the 40 descriptor-read ones, while still failing the `cvt`/`permlane`/`barycentric` shapes the fork cleared — per-program detail in #126. Consistent with @⁠Proudnoob4's correction above: the two material pixel hashes fail identically on both trees (and on `dudegio/VIctory-fx1`), so that family is shared, and the silhouettes are not forced by it alone — and the symptom side is moving on `main` independently of it: the two commits now on `main` past this issue's earlier builds (`a803c87c`, then `c96b4f2`) are the texture-residency line itself (indexed textures re-checked after upload; uploads before the character bake), the same direction `dudegio/VIctory-fx1` took further. On wave width: the census above runs at the CLI's default, and the lane-mask classes turn out to be width-sensitive. Re-running it with `VICTORY_HOST_MAX_WAVE=32` (the fork CLI's model of a 32-lane host, as NVIDIA cards are) reproduces the 32-lane runtime picture exactly: `f133e35efed2a48a` fails as `a lane mask exchanged where not every lane runs` — the reason and the hash @⁠Proudnoob4's RTX 4080 run logged — while it emits at the default width, and `6b6db9f1a526daeb` fails at the same offset that run booked for it. The totals move three programs in both directions: the two `a wave sum of 16-bit floats where not every lane runs` programs emit at 32 lanes, and the exchange above newly fails. So the runtime/CLI gap on those hashes is wave width, not tree state — and the knob makes this offline census a usable proxy for 32-lane cards. Nothing run against the title; `--list` only, no validator, no pipelines. AI-assisted (GLM via OpenCode).
Author
Owner

@⁠MoonYueya on GitHub · 2026-11-25 06:15 UTC · original

Correction to my comment above on VICTORY_SHADER_OPT=0.

I wrote that turning the clean-up passes off adds three more "a descriptor read only as data" pixel programs (abc6a80d46edc294, 8660e9822ebe4b62, c8df7216c69cecbd). That was wrong. Two more 300 s runs at the same tree (2119b0e code, no VICTORY_SHADER_OPT set, one with an empty cache and one with the cache from the first) hit the same three programs, at the same point in the run, about 167 s after the world starts. Counting attempts against failures over six runs on this machine:

run programs attempted failed success rate world started at
RELAY=1 995 1 99.90% 219 s
LOOP_LIMIT=4096 1,726 3 99.83% 94 s
default 2,408 8 99.67% 136 s
SHADER_OPT=0 2,455 11 99.55% 83 s
default, warm cache 2,641 11 99.58% 79 s
default, empty cache 2,657 11 99.59% 69 s

The number of failures follows how far into the content a run got, not the switch. So the clean-up passes are not implicated, and failure counts from runs that reached different amounts of content are not comparable; please disregard that part of my earlier comment. The two material pixel programs (2fd01fca16993001, 6b6db9f1a526daeb) still fail in every run that reaches them, and a warm cache does not change that (same 11 programs, same offsets; only pipeline-library misses drop, ID 971 2,103 → 70).

AI-assisted: an AI agent ran the builds, runs and log analysis on my machine.

**@⁠MoonYueya** on GitHub · 2026-11-25 06:15 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7154613073) **Correction to my comment above** on `VICTORY_SHADER_OPT=0`. I wrote that turning the clean-up passes off adds three more "a descriptor read only as data" pixel programs (`abc6a80d46edc294`, `8660e9822ebe4b62`, `c8df7216c69cecbd`). That was wrong. Two more 300 s runs at the same tree (`2119b0e` code, no `VICTORY_SHADER_OPT` set, one with an empty cache and one with the cache from the first) hit the same three programs, at the same point in the run, about 167 s after the world starts. Counting attempts against failures over six runs on this machine: | run | programs attempted | failed | success rate | world started at | |---|---:|---:|---:|---:| | `RELAY=1` | 995 | 1 | 99.90% | 219 s | | `LOOP_LIMIT=4096` | 1,726 | 3 | 99.83% | 94 s | | default | 2,408 | 8 | 99.67% | 136 s | | `SHADER_OPT=0` | 2,455 | 11 | 99.55% | 83 s | | default, warm cache | 2,641 | 11 | 99.58% | 79 s | | default, empty cache | 2,657 | 11 | 99.59% | 69 s | The number of failures follows how far into the content a run got, not the switch. So the clean-up passes are not implicated, and failure counts from runs that reached different amounts of content are not comparable; please disregard that part of my earlier comment. The two material pixel programs (`2fd01fca16993001`, `6b6db9f1a526daeb`) still fail in every run that reaches them, and a warm cache does not change that (same 11 programs, same offsets; only pipeline-library misses drop, ID 971 2,103 → 70). *AI-assisted: an AI agent ran the builds, runs and log analysis on my machine.*
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 11:29 UTC · original

Adding what happens next, because it changes how this should be ranked: the boat problem is a hard block on the story, not a visual defect.

Same machine, on ka1qux/victory-ka1qux at 5fa126b (the fork with the most of these fixes, run with its own recommended switches):

step what happens
the mission starts the boat is placed, the engine responds to the trigger
the boat should float it drops through the map - there is no water surface under it
the mission should fail it does not; no fail state, no retry prompt, no skip prompt
the player's options none: the checkpoint cannot be failed, reset only re-sinks it

So the chain is: the water surface is never established → the vehicle has no support → the boat falls out of the world → the mission neither completes nor fails → the story cannot continue. Skipping the checkpoint gets past the first occurrence and then the next water segment blocks it again, as reported above.

That is why I would rank the two water_shading:CS_TransmissionVolumetrics_Tiled* programs above anything cosmetic. ka1qux's README lists "two of the title's compute programs do not translate" as a known problem, and on this machine those two are exactly what is left. If they are what builds the water surface rather than only shading it, no amount of texture or shader work past this point will let the story through.

If it is useful I can run a build with VICTORY_STALE_CHECK or any water-specific diagnostic on this card and report, but I have nothing that isolates the surface itself.

**@⁠aef200** on GitHub · 2026-11-25 11:29 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7161120447) Adding what happens next, because it changes how this should be ranked: the boat problem is a **hard block on the story**, not a visual defect. Same machine, on `ka1qux/victory-ka1qux` at `5fa126b` (the fork with the most of these fixes, run with its own recommended switches): | step | what happens | |---|---| | the mission starts | the boat is placed, the engine responds to the trigger | | the boat should float | it drops **through the map** - there is no water surface under it | | the mission should fail | it does not; no fail state, no retry prompt, no skip prompt | | the player's options | none: the checkpoint cannot be failed, reset only re-sinks it | So the chain is: the water surface is never established → the vehicle has no support → the boat falls out of the world → the mission neither completes nor fails → the story cannot continue. Skipping the checkpoint gets past the first occurrence and then the next water segment blocks it again, as reported above. That is why I would rank the two `water_shading:CS_TransmissionVolumetrics_Tiled*` programs above anything cosmetic. `ka1qux`'s README lists "two of the title's compute programs do not translate" as a known problem, and on this machine those two are exactly what is left. If they are what builds the water surface rather than only shading it, no amount of texture or shader work past this point will let the story through. If it is useful I can run a build with `VICTORY_STALE_CHECK` or any water-specific diagnostic on this card and report, but I have nothing that isolates the surface itself.
Author
Owner

@⁠not-rex on GitHub · 2026-11-25 11:46 UTC · original

A direct test of the water_shading:CS_TransmissionVolumetrics_Tiled* idea: running them does not save the boat.

RTX 5070 Ti 16 GB (driver 621.14), 31 GB RAM, Windows 11, Series X profile. Tree: f85101b with #823 (aaf658a) merged, default switches, builder off (VICTORY_FIRSTLANE_OWN_ONLY=none), started from a save at the start of the boat mission.

  • Both programs translate, get host pipelines (no refusal) and are first bound at frame 2353, before control is handed over: 5dc3b25986622949 and 6f225b641c5b0708.
  • The boat still drops through the water, comes to rest on the bottom and the mission fails, the same as without them.

With #863's result (VICTORY_RELAY=0 VICTORY_LATE_WAIT=0 sinks the same), that rules out both the transmission volumetrics and copy-back timing. On this card #823's wave-wide programs also bring the block-shaped lighting SkillIssueXO reported on #823.

**@⁠not-rex** on GitHub · 2026-11-25 11:46 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7161474220) A direct test of the `water_shading:CS_TransmissionVolumetrics_Tiled*` idea: running them does not save the boat. RTX 5070 Ti 16 GB (driver 621.14), 31 GB RAM, Windows 11, Series X profile. Tree: `f85101b` with #823 (`aaf658a`) merged, default switches, builder off (`VICTORY_FIRSTLANE_OWN_ONLY=none`), started from a save at the start of the boat mission. - Both programs translate, get host pipelines (no refusal) and are first bound at frame 2353, before control is handed over: `5dc3b25986622949` and `6f225b641c5b0708`. - The boat still drops through the water, comes to rest on the bottom and the mission fails, the same as without them. With #863's result (`VICTORY_RELAY=0 VICTORY_LATE_WAIT=0` sinks the same), that rules out both the transmission volumetrics and copy-back timing. On this card #823's wave-wide programs also bring the block-shaped lighting SkillIssueXO reported on #823.
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 14:37 UTC · original

Two things, and the first is a correction to my own earlier comment.

1. My ranking of the water shaders was wrong, and not-rex's test settles it. I asked for water_shading:CS_TransmissionVolumetrics_Tiled* to be put above cosmetic work, on the theory that they build the surface the boat rests on. Running them to a host pipeline does not save the boat, so that theory is dead. Sorry for the wrong steer - it was an inference from the failure list, not from a test.

2. What did change the boat is the frame rate. Same build (ka1qux/victory-ka1qux at 5fa126b), same switches, only VICTORY_RELAY differs, RTX 4060 Ti 8 GB:

frame time the boat
VICTORY_RELAY=0 ~448 ms (2.5 fps) does not answer the throttle at all; falls out of the world; the mission never fails and never offers a skip
VICTORY_RELAY=2 ~354 ms (3.5 fps) answers the throttle and drives; it then sinks, and the mission fails and offers a retry the way the design intends

So on this card the difference between "the vehicle is inert and the mission deadlocks" and "the vehicle drives and the mission fails normally" is one switch and about 100 ms a frame. That reads as a timestep effect rather than a missing system: whatever moves the boat needs a step short enough to act on.

It still sinks afterwards, so this does not get the mission through - but it does mean the "vehicles never move" part of my earlier report is frame-rate dependent rather than absolute, and a run at 2 fps cannot tell a broken vehicle from a slow one.

Happy to re-run either configuration on this card if it helps.

**@⁠aef200** on GitHub · 2026-11-25 14:37 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7165577779) Two things, and the first is a correction to my own earlier comment. **1. My ranking of the water shaders was wrong, and `not-rex`'s test settles it.** I asked for `water_shading:CS_TransmissionVolumetrics_Tiled*` to be put above cosmetic work, on the theory that they build the surface the boat rests on. Running them to a host pipeline does not save the boat, so that theory is dead. Sorry for the wrong steer - it was an inference from the failure list, not from a test. **2. What did change the boat is the frame rate.** Same build (`ka1qux/victory-ka1qux` at `5fa126b`), same switches, only `VICTORY_RELAY` differs, RTX 4060 Ti 8 GB: | | frame time | the boat | |---|---|---| | `VICTORY_RELAY=0` | ~448 ms (2.5 fps) | does not answer the throttle at all; falls out of the world; the mission never fails and never offers a skip | | `VICTORY_RELAY=2` | ~354 ms (3.5 fps) | **answers the throttle and drives**; it then sinks, and the mission fails and offers a retry the way the design intends | So on this card the difference between "the vehicle is inert and the mission deadlocks" and "the vehicle drives and the mission fails normally" is one switch and about 100 ms a frame. That reads as a timestep effect rather than a missing system: whatever moves the boat needs a step short enough to act on. It still sinks afterwards, so this does not get the mission through - but it does mean the "vehicles never move" part of my earlier report is frame-rate dependent rather than absolute, and a run at 2 fps cannot tell a broken vehicle from a slow one. Happy to re-run either configuration on this card if it helps.
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 17:01 UTC · original

A wider observation than the boat, in case it narrows the search: every vehicle that goes on water sinks, not just the boat, and the water looks right while it happens.

Two spots in the prologue, same build and switches (victory-fork at 1684989, VICTORY_RELAY=2, 4.5 fps, RTX 4060 Ti 8 GB):

  • the boat of the opening chase: it answers the throttle and moves on the surface for a moment, then drops through and settles below it;
  • the seaplane later in the same mission: it lands on the water and goes under the same way.

In both cases the water itself is drawn - ripples, sun glints, reflections - so this is not a missing surface in the picture. What is missing is whatever the vehicles rest on: the water has no height or collision as far as they are concerned.

That matches not-rex's result from the other side: running the transmission-volumetrics programs changes the shading and does not change the sinking. So the surface the vehicles need is built by something else, and on this card it either does not run or runs with values that put it below the world.

One thing that may be worth checking, since it is cheap: does anything the layer does produce a height field for water, and does the title read it through a buffer or a texture the layer might be leaving empty? If I can be pointed at a log target or a switch that names it, I will run it and report. I cannot tell from the failure list which program it is - nothing that fails to translate on this card looks like a height field.

The frame rate is not the variable: at 2.5 fps the boat does not answer at all, at 4.5 fps it drives and sinks.

**@⁠aef200** on GitHub · 2026-11-25 17:01 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7168896686) A wider observation than the boat, in case it narrows the search: **every vehicle that goes on water sinks, not just the boat**, and the water looks right while it happens. Two spots in the prologue, same build and switches (`victory-fork` at `1684989`, `VICTORY_RELAY=2`, 4.5 fps, RTX 4060 Ti 8 GB): - the boat of the opening chase: it answers the throttle and moves on the surface for a moment, then drops through and settles below it; - the seaplane later in the same mission: it lands on the water and goes under the same way. In both cases the water itself is drawn - ripples, sun glints, reflections - so this is not a missing surface in the picture. What is missing is whatever the vehicles rest on: the water has no height or collision as far as they are concerned. That matches `not-rex`'s result from the other side: running the transmission-volumetrics programs changes the shading and does not change the sinking. So the surface the vehicles need is built by something else, and on this card it either does not run or runs with values that put it below the world. One thing that may be worth checking, since it is cheap: does anything the layer does produce a height field for water, and does the title read it through a buffer or a texture the layer might be leaving empty? If I can be pointed at a log target or a switch that names it, I will run it and report. I cannot tell from the failure list which program it is - nothing that fails to translate on this card looks like a height field. The frame rate is not the variable: at 2.5 fps the boat does not answer at all, at 4.5 fps it drives and sinks.
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 17:22 UTC · original

A result that belongs here, because it is the first time the water worked on this card, and then a crash that belongs to it.

DexNom/VIctory at 921d8d3 on an RTX 4060 Ti 8 GB, Windows 11 26200, Series X, started with the same four switches the Experimental RT shortcut sets (VICTORY_BVH_BUILDER=1, VICTORY_BVH_QUARANTINE=0, VICTORY_ACTIVATE_RAYS=1, VICTORY_RT_RESOLVE=1), its own cache and data directories, nothing else set.

What it does that none of the forks above do on this card:

  • the water has physics. The boat floats and answers the throttle and stays on the surface; the same boat in victory-fork, ka1qux and victory-amd sinks through it every time. That alone makes this build the most useful one I have run.
  • the scene is complete: models, clothing, water surface, HUD.
  • 0 shaders fail to translate and 0 pipelines are refused - the best of any tree I have tried on this card.
  • 5 fps, about 209 ms a frame, 1650 draws a frame, 15.8 GB of RAM, no device removal.

What is still wrong, for completeness: skin and clothing are black (the character bake writes empty targets - that is the no_host_slot / blocks_with_colour=0 report I made on the other fork), and the picture carries a strong warm haze with the RT resolve on.

The crash. Ten minutes into the boat chase the process ended with exit code 0xC0000005. What is missing is the useful part:

  • no unhandled exception line from the layer, no device-removal report;
  • no victory-*.crash.log and no crashes.log entry in the data directory;
  • the last log lines are ordinary frame statistics.

So the fault is somewhere the layer's own handler does not run. If whoever maintains this fork reads here: is there a switch that has the layer report a first-chance fault, or one that arms a debugger, for the ray-tracing path? I will run it and hand over the report. Otherwise, if it helps, I can say exactly what was on screen and what was being driven at the time.

**@⁠aef200** on GitHub · 2026-11-25 17:22 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7169405507) A result that belongs here, because it is the first time the water worked on this card, and then a crash that belongs to it. **`DexNom/VIctory` at `921d8d3`** on an RTX 4060 Ti 8 GB, Windows 11 26200, Series X, started with the same four switches the Experimental RT shortcut sets (`VICTORY_BVH_BUILDER=1`, `VICTORY_BVH_QUARANTINE=0`, `VICTORY_ACTIVATE_RAYS=1`, `VICTORY_RT_RESOLVE=1`), its own cache and data directories, nothing else set. What it does that none of the forks above do on this card: - **the water has physics.** The boat floats and answers the throttle and stays on the surface; the same boat in `victory-fork`, `ka1qux` and `victory-amd` sinks through it every time. That alone makes this build the most useful one I have run. - the scene is complete: models, clothing, water surface, HUD. - **0 shaders fail to translate and 0 pipelines are refused** - the best of any tree I have tried on this card. - 5 fps, about 209 ms a frame, 1650 draws a frame, 15.8 GB of RAM, no device removal. What is still wrong, for completeness: skin and clothing are black (the character bake writes empty targets - that is the `no_host_slot` / `blocks_with_colour=0` report I made on the other fork), and the picture carries a strong warm haze with the RT resolve on. **The crash.** Ten minutes into the boat chase the process ended with exit code `0xC0000005`. What is missing is the useful part: - no `unhandled exception` line from the layer, no device-removal report; - no `victory-*.crash.log` and no `crashes.log` entry in the data directory; - the last log lines are ordinary frame statistics. So the fault is somewhere the layer's own handler does not run. If whoever maintains this fork reads here: is there a switch that has the layer report a first-chance fault, or one that arms a debugger, for the ray-tracing path? I will run it and hand over the report. Otherwise, if it helps, I can say exactly what was on screen and what was being driven at the time.
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 20:18 UTC · original

Two follow-ups on the DexNom report above, one good and one with an address.

The good one: prewarming removes one of the two crash classes. Before, the same tree produced 44 frames longer than 2 s in one session (the longest 24.9 s), and Windows resets the display driver past 2 s, so a run could end in 0x887A0005 with no fault of its own. victory.exe warm shaders.rpf (25,684 shaders translated, 10 refused; 2,653 compute pipelines, 29 refused; 309 s; 497 MB of pipeline library) removes them: the next session had 0 frames over 2 s, the longest 0.56 s, median 312 ms. Models also load more completely. If a run is ending on device removal, warming first is worth saying in the README next to the RT instructions.

The one that is left has a fault, so it may be fixable. Same tree and switches, still on the boat:

first-chance exception 0xc0000005 at VCRUNTIME140.dll+0x1cc66 (read 0x0: nothing mapped there)
rax 0xd32b5dd10 rbx 0x58 rcx 0xd32b5dd10 rdx 0x0 rsi 0x657759849 rdi 0x0
#0  VCRUNTIME140.dll+0x1cc66
#1  victory-image-b99f876b74d4a77f.dll+0x3de6491
#2  victory-image-b99f876b74d4a77f.dll+0x3de2054

rdx and rdi are both zero and the read is at 0, so something is dereferencing a null. The frame before it was 300 to 560 ms, so it is not a watchdog stop. It happens while driving the boat, a few minutes in, with or without the RT switches set; the run before this one ended the same way after about ten minutes.

I have the full log with the registers and the stack if it is useful, and I can re-run with whatever diagnostics switch you would like set.

**@⁠aef200** on GitHub · 2026-11-25 20:18 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7173479990) Two follow-ups on the DexNom report above, one good and one with an address. **The good one: prewarming removes one of the two crash classes.** Before, the same tree produced 44 frames longer than 2 s in one session (the longest 24.9 s), and Windows resets the display driver past 2 s, so a run could end in `0x887A0005` with no fault of its own. `victory.exe warm shaders.rpf` (25,684 shaders translated, 10 refused; 2,653 compute pipelines, 29 refused; 309 s; 497 MB of pipeline library) removes them: the next session had **0 frames over 2 s, the longest 0.56 s**, median 312 ms. Models also load more completely. If a run is ending on device removal, warming first is worth saying in the README next to the RT instructions. **The one that is left has a fault, so it may be fixable.** Same tree and switches, still on the boat: ``` first-chance exception 0xc0000005 at VCRUNTIME140.dll+0x1cc66 (read 0x0: nothing mapped there) rax 0xd32b5dd10 rbx 0x58 rcx 0xd32b5dd10 rdx 0x0 rsi 0x657759849 rdi 0x0 #0 VCRUNTIME140.dll+0x1cc66 #1 victory-image-b99f876b74d4a77f.dll+0x3de6491 #2 victory-image-b99f876b74d4a77f.dll+0x3de2054 ``` `rdx` and `rdi` are both zero and the read is at 0, so something is dereferencing a null. The frame before it was 300 to 560 ms, so it is not a watchdog stop. It happens while driving the boat, a few minutes in, with or without the RT switches set; the run before this one ended the same way after about ten minutes. I have the full log with the registers and the stack if it is useful, and I can re-run with whatever diagnostics switch you would like set.
Author
Owner

@⁠aef200 on GitHub · 2026-11-25 20:30 UTC · original

More on the null-copy crash above, including two frames I could resolve, in case it points at the function.

The full stack from the latest run (same tree, same switches, VICTORY_INPLACE=1 this time, so in-place memory is not the cause either):

first-chance exception 0xc0000005 at VCRUNTIME140.dll+0x1cc66 (read 0x0) thread 3664
rax 0xd32b5dd10 rbx 0x58 rcx 0xd32b5dd10 rdx 0x0 rsi 0x657759849 rdi 0x0 r8 0x10
#0  VCRUNTIME140.dll+0x1cc66
#1  victory-image-b99f876b74d4a77f.dll+0x3de6491
#2  victory-image-b99f876b74d4a77f.dll+0x3de2054
#3  victory-image-b99f876b74d4a77f.dll+0x5188f
#4  victory-image-b99f876b74d4a77f.dll+0x5d1d18
#5  victory-image-b99f876b74d4a77f.dll+0x29d0e33
#6  victory-image-b99f876b74d4a77f.dll+0x1fbadd3
#7  victory-image-b99f876b74d4a77f.dll+0x3de2346
#8  victory-image-b99f876b74d4a77f.dll+0x3de5e0d
#9  victory-image-b99f876b74d4a77f.dll+0x3de2054
#10 victory-image-b99f876b74d4a77f.dll+0x5188f
#11 victory-image-b99f876b74d4a77f.dll+0x29d133a
#12 victory-image-b99f876b74d4a77f.dll+0x29e5bd6

I tried to turn those offsets into names against victory.pdb from the same build (dbghelp, module base 0). Two of them answer:

  • +0x5188f = victory::run::run+0x103f
  • +0x5d1d18 = hashbrown::HashMap::contains_key<victory_shader::structure::Atom, (), RandomState, Global, Atom>+0xc8

The rest do not, and I think I know why: the generated image DLL here is 114.6 MB while victory.exe is 10.63 MB, so the offsets in the DLL and the RVAs in the executable are not the same space. +0x3de6491 is at 64.8 MB, well past the end of the executable.

So my reading of it is: the path runs through victory::run::run into shader structure work, looks something up in a map keyed by Atom, and then copies 16 bytes from address 0 - one descriptor, from a slot whose title memory is not mapped.

Two questions that would let me pin it down:

  1. Is the layer's own code at the same RVAs in the image DLL as in victory.exe, with only the title image appended past it? If yes I can symbolize the rest myself from the PDB.
  2. If not, is there a build or a switch that keeps the two apart, so the offsets mean something?

Also, for whoever runs into this: victory.exe warm shaders.rpf before playing removed the multi-second frames that were causing a different crash (0x887A0005 device removal). That part is worth a line in the README next to the RT instructions.

**@⁠aef200** on GitHub · 2026-11-25 20:30 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7173767090) More on the null-copy crash above, including two frames I could resolve, in case it points at the function. The full stack from the latest run (same tree, same switches, `VICTORY_INPLACE=1` this time, so in-place memory is not the cause either): ``` first-chance exception 0xc0000005 at VCRUNTIME140.dll+0x1cc66 (read 0x0) thread 3664 rax 0xd32b5dd10 rbx 0x58 rcx 0xd32b5dd10 rdx 0x0 rsi 0x657759849 rdi 0x0 r8 0x10 #0 VCRUNTIME140.dll+0x1cc66 #1 victory-image-b99f876b74d4a77f.dll+0x3de6491 #2 victory-image-b99f876b74d4a77f.dll+0x3de2054 #3 victory-image-b99f876b74d4a77f.dll+0x5188f #4 victory-image-b99f876b74d4a77f.dll+0x5d1d18 #5 victory-image-b99f876b74d4a77f.dll+0x29d0e33 #6 victory-image-b99f876b74d4a77f.dll+0x1fbadd3 #7 victory-image-b99f876b74d4a77f.dll+0x3de2346 #8 victory-image-b99f876b74d4a77f.dll+0x3de5e0d #9 victory-image-b99f876b74d4a77f.dll+0x3de2054 #10 victory-image-b99f876b74d4a77f.dll+0x5188f #11 victory-image-b99f876b74d4a77f.dll+0x29d133a #12 victory-image-b99f876b74d4a77f.dll+0x29e5bd6 ``` I tried to turn those offsets into names against `victory.pdb` from the same build (dbghelp, module base 0). Two of them answer: - `+0x5188f` = `victory::run::run+0x103f` - `+0x5d1d18` = `hashbrown::HashMap::contains_key<victory_shader::structure::Atom, (), RandomState, Global, Atom>+0xc8` The rest do not, and I think I know why: the generated image DLL here is **114.6 MB** while `victory.exe` is **10.63 MB**, so the offsets in the DLL and the RVAs in the executable are not the same space. `+0x3de6491` is at 64.8 MB, well past the end of the executable. So my reading of it is: the path runs through `victory::run::run` into shader *structure* work, looks something up in a map keyed by `Atom`, and then copies **16 bytes** from address 0 - one descriptor, from a slot whose title memory is not mapped. Two questions that would let me pin it down: 1. Is the layer's own code at the same RVAs in the image DLL as in `victory.exe`, with only the title image appended past it? If yes I can symbolize the rest myself from the PDB. 2. If not, is there a build or a switch that keeps the two apart, so the offsets mean something? Also, for whoever runs into this: `victory.exe warm shaders.rpf` before playing removed the multi-second frames that were causing a *different* crash (`0x887A0005` device removal). That part is worth a line in the README next to the RT instructions.
Author
Owner

@⁠MoonYueya on GitHub · 2026-11-25 23:44 UTC · original

Follow-up with measurements on c36971b (RTX 3080 10 GB).

What characters look like here

On this machine characters render as clothing and teeth only: skin and hair are missing
(and possibly eyes). Geometry is there, depth is written, but the surfaces read as empty.

  • Machine: Windows 11 (build 26300), Ryzen 7 7700, NVIDIA RTX 3080 10 GB, driver 32.0.16.1742.
  • Build: c36971b, cargo build --profile diag -p victory --features diagnostics, toolchain 1.98.1.
  • Input: fully automated. The only input channel is the in-process VICTORY_KEYS schedule;
    no SendInput, no window focus. An XInput dwPacketNumber check ran throughout and never
    saw a change while no scripted key was held.
  • AI assistance: the runs, log parsing and this write-up were done by an AI agent on the
    author's machine.

Everything below is measured, not read off screenshots: per-draw records from the layer's own
frame shot (VICTORY_SHOT), the debug layer, and the layer's per-second counters.

It is not a shader translation problem

In a 600 s run in the world with VICTORY_D3D12_DEBUG=1, the only graphics pipeline refused
all run is one mesh+pixel pair (f5e50eb2108c425b + ce3f0432a08f1d35): both programs translate,
then CreatePipelineState returns 0x80070057, and the layer logs dropped 0.7 to 1.7 a frame.
Everything else dropped is compute, plus 89 rows of "a stage of the ray-tracing structure
builder, which is off".

The character geometry pass is clean. In the shot frame there are 166 mesh draws into the main
target (2560x1440, format 10, depth on), and all 12 mesh+pixel pairs among them translate and
bind:

mesh pixel draws
ba8d52f4ea1a1bac b37565055f2f7d3b 86
8678d3f43fd2b498 b37565055f2f7d3b 22
a26422c01dcf5612 6a3a8d3fe52b4eab 18
38d7a05a71b688dd 5277115a95efdb8d 10
97356b4fcf9fbb3f 139ebdf08050bc7c 7
c908001e7117c686 139ebdf08050bc7c 6
six more pairs 2 to 4 each

So the draws happen. What they read is the problem.

The finding: the shader-visible view heap is truncated

Three lines, all at about 0.2 s after process start in the same run:

id=645 severity=1  ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors
                   2097152, but the limit for shader visible view heaps is 1000000
INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views;
     view indices are clamped to the null slot at the end from the first shader on views=1000000
WARN victory_gpu::descriptor::host: host view heap capped at 1000000;
     views past it read a null slot count=1245184
descriptors requested for the heap 2,097,152
shader-visible views the device allows 1,000,000
views past the cap, reading a null slot 1,245,184

The layer clamps out-of-range indices to a null slot at the end, so a draw whose materials live
past the cap gets empty views.

It lines up with what is drawn and what is not

Per draw in the same shot frame, whether the root constant block carries a null view slot:

shader pair, target draws with a null slot
mesh ba8d52f4 + pixel b3756505, 2560x1440 f10 86 86 (100%)
mesh 8678d3f4 + pixel b3756505, 2560x1440 f10 22 22 (100%)
mesh a26422c0 + pixel 6a3a8d3f, 2560x1440 f10 18 18 (100%)
mesh 38d7a05a + pixel 5277115a, 2560x1440 f10 10 10 (100%)
vertex 1df91ec8 + pixel 2d0cace6, 2560x1440 f17 71 71 (100%)
mesh 7568b4b3 + pixel 49f7165e, 2048x2048 f49 48 0 (0%)
mesh 7d077fd8 + pixel e46a44b0, 64x64 f41 32 0 (0%)

1,841 of 4,806 draw/mesh/indirect records in that frame (38.3%) carry a null slot, and the ones
writing the main target are 100%. The passes writing the 64x64 shadow maps and the 2048x2048
target are clean, which matches "shadowed and some objects look right, characters' materials do not".

A note on the two hashes from earlier reports

6b6db9f1a526daeb now translates and a mesh pipeline is built with it, but in this frame it only
draws through indirect kind 10 into a 64x64 shadow map (2 draws). It is not the skin material
at this view. 2fd01fca16993001 did not appear at all in this run.

What is still open

  • Whether the truncation is the cause of the missing skin and hair, or only one of them.
    The next step here is to try to keep the heap under 1,000,000, or to place the character
    materials' views inside the cap, and see if the surfaces come back.
  • 1,000,000 is the limit the debug layer reports for shader-visible view heaps on this device (the D3D12 binding-tier limit; the layer's own PORTABLE_VIEWS = 1_000_000 in upstream descriptor/host.rs matches it). If cards that render skin correctly allow a larger heap, that would explain why this looks card-dependent; otherwise the heap would need splitting or the views compacting.
  • The null-slot rate is a strong correlation, not yet a proven cause: a draw can carry a null slot it never samples.

Reproduce

  1. Build c36971b with --features diagnostics.
  2. Run with VICTORY_PAD0_SCRIPTS=1 (a local diagnostic giving pad slot 0 a stand-in pad, see #1167; not needed if you drive the menus by hand), VICTORY_D3D12_DEBUG=1, and VICTORY_SHOT= VICTORY_SHOT_AT=120.
  3. Load a save from the prologue and look at events.txt in the shot folder for the per-draw records.
  4. grep the log for "views past it read a null slot" and "NumDescriptors 2097152".

Duplicates checked

Searched this repository's issues and the commits touching descriptor.rs, host.rs and pipeline
for "descriptor heap", "null slot", "1000000" and "2,097,152" — no report of the shader-visible
view heap being capped at 1,000,000 was found. f133e35efed2a48a (lane mask, compute) is a
separate, already-known translation gap and is not part of this.

**@⁠MoonYueya** on GitHub · 2026-11-25 23:44 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7177980457) Follow-up with measurements on `c36971b` (RTX 3080 10 GB). ## What characters look like here On this machine characters render as **clothing and teeth only**: skin and hair are missing (and possibly eyes). Geometry is there, depth is written, but the surfaces read as empty. - Machine: Windows 11 (build 26300), Ryzen 7 7700, NVIDIA RTX 3080 10 GB, driver 32.0.16.1742. - Build: c36971b, cargo build --profile diag -p victory --features diagnostics, toolchain 1.98.1. - Input: fully automated. The only input channel is the in-process VICTORY_KEYS schedule; no SendInput, no window focus. An XInput dwPacketNumber check ran throughout and never saw a change while no scripted key was held. - AI assistance: the runs, log parsing and this write-up were done by an AI agent on the author's machine. Everything below is measured, not read off screenshots: per-draw records from the layer's own frame shot (VICTORY_SHOT), the debug layer, and the layer's per-second counters. ## It is not a shader translation problem In a 600 s run in the world with VICTORY_D3D12_DEBUG=1, the only graphics pipeline refused all run is one mesh+pixel pair (f5e50eb2108c425b + ce3f0432a08f1d35): both programs translate, then CreatePipelineState returns 0x80070057, and the layer logs dropped 0.7 to 1.7 a frame. Everything else dropped is compute, plus 89 rows of "a stage of the ray-tracing structure builder, which is off". The character geometry pass is clean. In the shot frame there are 166 mesh draws into the main target (2560x1440, format 10, depth on), and all 12 mesh+pixel pairs among them translate and bind: | mesh | pixel | draws | |---|---|---| | ba8d52f4ea1a1bac | b37565055f2f7d3b | 86 | | 8678d3f43fd2b498 | b37565055f2f7d3b | 22 | | a26422c01dcf5612 | 6a3a8d3fe52b4eab | 18 | | 38d7a05a71b688dd | 5277115a95efdb8d | 10 | | 97356b4fcf9fbb3f | 139ebdf08050bc7c | 7 | | c908001e7117c686 | 139ebdf08050bc7c | 6 | | six more pairs | | 2 to 4 each | So the draws happen. What they read is the problem. ## The finding: the shader-visible view heap is truncated Three lines, all at about 0.2 s after process start in the same run: id=645 severity=1 ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 WARN victory_gpu::descriptor::host: host view heap capped at 1000000; views past it read a null slot count=1245184 | | | |---|---| | descriptors requested for the heap | **2,097,152** | | shader-visible views the device allows | **1,000,000** | | views past the cap, reading a null slot | **1,245,184** | The layer clamps out-of-range indices to a null slot at the end, so a draw whose materials live past the cap gets empty views. ## It lines up with what is drawn and what is not Per draw in the same shot frame, whether the root constant block carries a null view slot: | shader pair, target | draws | with a null slot | |---|---|---| | mesh ba8d52f4 + pixel b3756505, 2560x1440 f10 | 86 | **86 (100%)** | | mesh 8678d3f4 + pixel b3756505, 2560x1440 f10 | 22 | **22 (100%)** | | mesh a26422c0 + pixel 6a3a8d3f, 2560x1440 f10 | 18 | **18 (100%)** | | mesh 38d7a05a + pixel 5277115a, 2560x1440 f10 | 10 | **10 (100%)** | | vertex 1df91ec8 + pixel 2d0cace6, 2560x1440 f17 | 71 | **71 (100%)** | | mesh 7568b4b3 + pixel 49f7165e, 2048x2048 f49 | 48 | 0 (0%) | | mesh 7d077fd8 + pixel e46a44b0, 64x64 f41 | 32 | 0 (0%) | 1,841 of 4,806 draw/mesh/indirect records in that frame (38.3%) carry a null slot, and the ones writing the main target are 100%. The passes writing the 64x64 shadow maps and the 2048x2048 target are clean, which matches "shadowed and some objects look right, characters' materials do not". ## A note on the two hashes from earlier reports 6b6db9f1a526daeb now translates and a mesh pipeline is built with it, but in this frame it only draws through indirect kind 10 into a **64x64 shadow map** (2 draws). It is not the skin material at this view. 2fd01fca16993001 did not appear at all in this run. ## What is still open - Whether the truncation is **the** cause of the missing skin and hair, or only one of them. The next step here is to try to keep the heap under 1,000,000, or to place the character materials' views inside the cap, and see if the surfaces come back. - 1,000,000 is the limit the debug layer reports for shader-visible view heaps on this device (the D3D12 binding-tier limit; the layer's own `PORTABLE_VIEWS = 1_000_000` in upstream `descriptor/host.rs` matches it). If cards that render skin correctly allow a larger heap, that would explain why this looks card-dependent; otherwise the heap would need splitting or the views compacting. - The null-slot rate is a strong correlation, not yet a proven cause: a draw can carry a null slot it never samples. ## Reproduce 1. Build c36971b with --features diagnostics. 2. Run with VICTORY_PAD0_SCRIPTS=1 (a local diagnostic giving pad slot 0 a stand-in pad, see #1167; not needed if you drive the menus by hand), VICTORY_D3D12_DEBUG=1, and VICTORY_SHOT=<folder> VICTORY_SHOT_AT=120. 3. Load a save from the prologue and look at events.txt in the shot folder for the per-draw records. 4. grep the log for "views past it read a null slot" and "NumDescriptors 2097152". ## Duplicates checked Searched this repository's issues and the commits touching descriptor.rs, host.rs and pipeline for "descriptor heap", "null slot", "1000000" and "2,097,152" — no report of the shader-visible view heap being capped at 1,000,000 was found. f133e35efed2a48a (lane mask, compute) is a separate, already-known translation gap and is not part of this.
Author
Owner

@⁠BradRoland on GitHub · 2026-11-25 23:57 UTC · original

I reproduced the heap limit from the RTX 3080 report on an RTX 4080. On c36971b, 2,097,152 is the size of the host's capability probe. The title requested 1,245,184 slots. Of the 1,000,000 host slots, 737,855 can mirror title descriptors, 262,144 are reserved for dynamic bindings, and the final slot is the null guard. That leaves 507,329 title slots outside the static mirror.

One detail changes how I would interpret the 1,841 draw records. The short uN=... [heap i: null] annotation looks up a root word as a possible descriptor index. The printer emits null only for an index inside the mirror with an empty mirror record. An index at or beyond 737,855 gets no bracketed annotation from that lookup. Those counts alone therefore cannot locate the character-material views above the cap. Main can also rebuild some above-cap descriptor tables per draw. Root-word printer on the reported commit · Mirror lookup

For the same shot, adding VICTORY_LIST_SLOTS=b37565055f2f7d3b gives the material-record ~slot lines. #1204 labels slots outside the static mirror explicitly. On the RTX 4080, the last empty mirrored slot (737,854) and first unmirrored slot (737,855) produced distinct lines. On WARP the same title heap fit and both empty slots printed null. Matching from=, slot= and title=[...] on a draw with missing skin would narrow the investigation. These tests used synthetic heaps and leave the visual cause open. Frame-shot diagnostic and hardware results

**@⁠BradRoland** on GitHub · 2026-11-25 23:57 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7178241973) I reproduced the heap limit from the RTX 3080 report on an RTX 4080. On `c36971b`, 2,097,152 is the size of the host's capability probe. The title requested 1,245,184 slots. Of the 1,000,000 host slots, 737,855 can mirror title descriptors, 262,144 are reserved for dynamic bindings, and the final slot is the null guard. That leaves 507,329 title slots outside the static mirror. One detail changes how I would interpret the 1,841 draw records. The short `uN=... [heap i: null]` annotation looks up a root word as a possible descriptor index. The printer emits `null` only for an index inside the mirror with an empty mirror record. An index at or beyond 737,855 gets no bracketed annotation from that lookup. Those counts alone therefore cannot locate the character-material views above the cap. Main can also rebuild some above-cap descriptor tables per draw. [Root-word printer on the reported commit](https://github.com/fxceless/victory-fork/blob/c36971b/crates/victory-gpu/src/draw.rs#L2303-L2317) · [Mirror lookup](https://github.com/fxceless/victory-fork/blob/c36971b/crates/victory-gpu/src/descriptor/host.rs#L2048-L2055) For the same shot, adding `VICTORY_LIST_SLOTS=b37565055f2f7d3b` gives the material-record `~slot` lines. #1204 labels slots outside the static mirror explicitly. On the RTX 4080, the last empty mirrored slot (737,854) and first unmirrored slot (737,855) produced distinct lines. On WARP the same title heap fit and both empty slots printed `null`. Matching `from=`, `slot=` and `title=[...]` on a draw with missing skin would narrow the investigation. These tests used synthetic heaps and leave the visual cause open. [Frame-shot diagnostic and hardware results](https://git.gtahub.st/github/fxceless--victory-fork/pulls/1204)
Author
Owner

@⁠MoonYueya on GitHub · 2026-11-26 01:51 UTC · original

Correction to the descriptor-heap analysis I posted earlier

I posted a comment on this issue attributing the character-material problem to the shader-visible
view heap being truncated: "the title asks for 2,097,152 views, the device allows 1,000,000,
1,245,184 views read a null slot". That attribution is wrong. I re-derived it against the
source and against fresh logs on a second machine, and I would rather retract it than leave it
standing. Three separate errors, all mine:

1. The 2,097,152 is not the title's request — it is the layer probing the device.

I took id=645 ... NumDescriptors 2097152 from the debug layer as the title's heap request.
It is not. probe_view_limit() (crates/victory-gpu/src/descriptor/host.rs:1367-1403) creates
throwaway heaps to ask what the device takes, and releases them immediately
(// SAFETY: plain heap creation; the heap is released at once). A fresh run on an RTX 3080
prints two such messages, not one:

id=645 severity=1: NumDescriptors 4194304, but the limit for shader visible view heaps is 1000000
id=645 severity=1: NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000

4,194,304 is 2 * RAW_TWINS = 2×2²¹ and 2,097,152 is UNCAPPED_VIEWS = 2²¹ — the two probes at
host.rs:1384 and host.rs:1391. They are the layer measuring the card, not the game asking for
anything. The fact that there are two of them, and that one of them is 4M, should have told me.

2. The count in the warn is the requested size, not the number truncated.

// host.rs:1481-1488
let fitted = if count + extra <= null { count } else {
    tracing::warn!(count, "host view heap capped at {size}; views past it read a null slot");
    null - extra
};

count is the parameter of HostHeap::new(sampler, count) — what the title asked for.
I read count=1245184 as "1,245,184 views were truncated". It means "the title asked for
1,245,184 slots".

3. The usable cap is not 1,000,000 — it is 737,855.

dynamic_slots() (host.rs:1424-1436) returns a flat DYNAMIC = 2¹⁸ = 262,144 when
null < PORTABLE_VIEWS, which is the NVIDIA path. So the title's addressable slots are
999,999 − 262,144 = 737,855, and the truncated count would be
1,245,184 − 737,855 = 507,329 — not 1,245,184. I was off by about 2.45×.

What the corrected picture looks like

On the RTX 3080, across four runs in the world, the layer's own out-of-range tracker
(host.rs:2962-2971, which logs title slot past the host heap the first time an index exceeds
the host heap) never fired — 0 occurrences in every run. Whatever the character-material
problem is, on that machine it is not high views being clamped to the null slot.

Worth saying plainly: I also do not know that my per-draw null-slot table was measuring what I
said it was. It counted root constant blocks carrying a slot number the layer reports as null,
which is not the same as the draw sampling that slot; every slot in a fresh heap starts null, so
a slot that was simply never written also reads as "null". I have no measurement that separates
those two cases.

What I am not claiming

I am not claiming the material bug does not exist on the fork — I saw it too. I am retracting
the cause I gave for it, not the symptom. This correction does not identify what the real cause
is; it only removes one explanation that does not survive the source.

For what it is worth, the symptom reproduces on a second tree too: on avatarmanz/VIctory-7900XTX 0a43566, same RTX 3080, the characters' skin is missing (hair and collar draw; no face, neck or ears), while a per-slot dump of 953 G-buffer draws shows 3,074 material texture slots with 0 null, 0 no view, 0 never written, and 64 (2.1%) holding only a partly uploaded texture. That points away from the heap and toward texture upload/streaming, but it is a candidate, not a proven cause.

Sorry for the noise on the thread.

AI-assisted: the runs, log parsing and this write-up were done by an AI agent on the author's machine.

**@⁠MoonYueya** on GitHub · 2026-11-26 01:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7180213198) ## Correction to the descriptor-heap analysis I posted earlier I posted a comment on this issue attributing the character-material problem to the shader-visible view heap being truncated: "the title asks for 2,097,152 views, the device allows 1,000,000, 1,245,184 views read a null slot". **That attribution is wrong.** I re-derived it against the source and against fresh logs on a second machine, and I would rather retract it than leave it standing. Three separate errors, all mine: **1. The 2,097,152 is not the title's request — it is the layer probing the device.** I took `id=645 ... NumDescriptors 2097152` from the debug layer as the title's heap request. It is not. `probe_view_limit()` (`crates/victory-gpu/src/descriptor/host.rs:1367-1403`) creates throwaway heaps to ask what the device takes, and releases them immediately (`// SAFETY: plain heap creation; the heap is released at once`). A fresh run on an RTX 3080 prints **two** such messages, not one: id=645 severity=1: NumDescriptors 4194304, but the limit for shader visible view heaps is 1000000 id=645 severity=1: NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 4,194,304 is `2 * RAW_TWINS` = 2×2²¹ and 2,097,152 is `UNCAPPED_VIEWS` = 2²¹ — the two probes at `host.rs:1384` and `host.rs:1391`. They are the layer measuring the card, not the game asking for anything. The fact that there are two of them, and that one of them is 4M, should have told me. **2. The `count` in the warn is the requested size, not the number truncated.** ```rust // host.rs:1481-1488 let fitted = if count + extra <= null { count } else { tracing::warn!(count, "host view heap capped at {size}; views past it read a null slot"); null - extra }; ``` `count` is the parameter of `HostHeap::new(sampler, count)` — what the title asked for. I read `count=1245184` as "1,245,184 views were truncated". It means "the title asked for 1,245,184 slots". **3. The usable cap is not 1,000,000 — it is 737,855.** `dynamic_slots()` (`host.rs:1424-1436`) returns a flat `DYNAMIC = 2¹⁸ = 262,144` when `null < PORTABLE_VIEWS`, which is the NVIDIA path. So the title's addressable slots are `999,999 − 262,144 = 737,855`, and the truncated count would be `1,245,184 − 737,855 = 507,329` — not 1,245,184. I was off by about 2.45×. ## What the corrected picture looks like On the RTX 3080, across four runs in the world, the layer's own out-of-range tracker (`host.rs:2962-2971`, which logs `title slot past the host heap` the first time an index exceeds the host heap) **never fired — 0 occurrences in every run**. Whatever the character-material problem is, on that machine it is not high views being clamped to the null slot. Worth saying plainly: I also do not know that my per-draw null-slot table was measuring what I said it was. It counted root constant blocks carrying a slot number the layer reports as null, which is not the same as the draw sampling that slot; every slot in a fresh heap starts null, so a slot that was simply never written also reads as "null". I have no measurement that separates those two cases. ## What I am not claiming I am not claiming the material bug does not exist on the fork — I saw it too. I am retracting the *cause* I gave for it, not the symptom. This correction does not identify what the real cause is; it only removes one explanation that does not survive the source. For what it is worth, the symptom reproduces on a second tree too: on avatarmanz/VIctory-7900XTX `0a43566`, same RTX 3080, the characters' skin is missing (hair and collar draw; no face, neck or ears), while a per-slot dump of 953 G-buffer draws shows 3,074 material texture slots with 0 null, 0 `no view`, 0 `never written`, and 64 (2.1%) holding only a partly uploaded texture. That points away from the heap and toward texture upload/streaming, but it is a candidate, not a proven cause. Sorry for the noise on the thread. *AI-assisted: the runs, log parsing and this write-up were done by an AI agent on the author's machine.*
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-26 01:56 UTC · original

RTX 4060 8 GB / Linux-Proton: a frame shot with #1204, and a narrower target for character-material tracing. This supports BradRoland's distinction between a null static mirror and a slot outside it, and MoonYueya's correction above. It does not establish that the heap cap causes the missing skin.

Build: private receiving tree 51700c6 (#854) + #1056 c5820ac, #830 951dc00, #20 d4a36b1, #1006 4e7af7b, #1031 db88f96 + the adapted #1210 and Dathinel's ad8db725 (see earlier resident-mip readbacks), then BradRoland's #1204 61b09521829c849b89b9e47d0f50681887913e6b code/test with context adaptation, no other rendering change. GPL-3.0 sources. Release diagnostics, Rust 1.98.1/LLVM MinGW, exe SHA-256 863aa039fc5559490cc9188353a18f6611ce488ecd821d720b8e6fa79e9e0218, full tracked patch SHA-256 60a556a8b0936e98fa1e20a74ef8e84e68516821104210a74d90083a2533991f.

RTX 4060 8 GB, 620.73.04, 16 GB system RAM, GE-Proton11-14/vkd3d-proton 71cae091b06571e, Series X, 1920x1080 display, file physical backing, VICTORY_TEXTURE_GUARD=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_WAVE_PAIRS=1 VICTORY_LEVELS_ON_DEMAND=1. The #1204 boundary test actually created a heap on this device and returned requested 1245184, mirrored 737855, null slot 999999; 1 passed, 0 failed, 0 ignored, no skip. The retail creation warning independently reported the same requested/mirrored/unmirrored counts (507,329 outside the static mirror).

Actual frame 3217: VICTORY_LIST_SLOTS=b37565055f2f7d3b, one bounded frame shot triggered after the first matching first-bind receipt (frame 3213; the shot starts at the next eligible present). 6,345 recorded event lines, with 26 matching mesh command records. Counts below parse every ~slot occurrence, not each physical line (the shot flattens nested records into the event line). No raw game memory or captures attached.

Source Host described In-range null Outside static mirror
Resolved table texture views 702 0 0
Other words interpreted as candidate slots 419 156 0

43 distinct candidate slot IDs overall. The null annotations occur only in candidate-word scans, including some fully mapped small placed textures without a retained host resource and not queued. They are not proven texture accesses. None of these candidates fell outside the mirror. Importantly, all 26 attempts to decode the G material record used offsets 50,938,864–52,622,064 against a 460,800-byte s0+688 buffer; no in-bounds G record was printed. No M record either. Therefore this shader's current material-word listing is insufficient for a diagnosis of the actual character material.

A better target for the next trace: the same shot contains an indirect mesh command with pixel a402e650d0acbc92 (one recorded command; execution not proven by this line) writing six 2560x1440 G-buffer targets, while b37565055f2f7d3b records write only one format-10 target. The former has a large s0+688 buffer and user word 14, consistent with DexNom #49's independently identified material-record layout. b15ba4896d650511 was absent from this shot. I have not ported #49. The three same-frame RGBA8 targets include detailed character/vehicle/building structure and a color-like target with the character very dark gray but a colored car. This supports inspecting the pre-lighting material path; it does not identify an exact missing texture. The later format-10 snapshot is from a different frame and cannot establish same-draw output.

Visible result: the retry received one A at the visible account picker (44.34 s) and reached the night cutscene. At 256.06 s the woman's eye, nose, lips, skin, hands and hair are visibly detailed under red/green light; an earlier baseline close-up was almost black. Later at 281.14 s her face is still discernible under red light but another character's face is featureless, and the world remains too dark. This is a genuine partial visual milestone, not a matched same-pose comparison or proof that #1204 repaired rendering (diagnostics only; input/cache timing can differ). Overlay 0.3–0.5 FPS in these shots, no gameplay HUD or controllable world. 37 frames, application PCM nonzero in 15/21 chunks, fidelity unverified. Peak VRAM 7,463 MiB, scope RAM/swap 8,404/4,129 MiB, minimum host MemAvailable 1,576 MiB. No logged translation failures, host PSO refusals, device removal or host OOM; scheduled 332.6 s stop. Shot saved 148 images in three parts before bounded stop, not a completed full shot; first-frame event and relevant G-buffer snapshots were saved. First diagnostic attempt failed to arm due to ANSI-colored log matching, corrected and replay-tested; it had the same executable and starting seed bytes but no A receipt, so no timing comparison.

The useful next experiment is tracing the actual a402e650d0acbc92 material fields (and b15ba4896d650511 when it occurs), reading the selected material buffer at the correct guest user word and resolving the indices according to their shader instructions. Distinguish CPU-side bytes from GPU-written records, and actual sampled views from incidental words; then correlate with the same frame's color/normal targets. This would decide whether to focus on residency/queue or the shader/lighting path.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)

**@⁠ArturoWolff** on GitHub · 2026-11-26 01:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7180306745) **RTX 4060 8 GB / Linux-Proton: a frame shot with #1204, and a narrower target for character-material tracing.** This supports BradRoland's distinction between a null static mirror and a slot outside it, and MoonYueya's correction above. It does not establish that the heap cap causes the missing skin. Build: private receiving tree `51700c6` (#854) + #1056 `c5820ac`, #830 `951dc00`, #20 `d4a36b1`, #1006 `4e7af7b`, #1031 `db88f96` + the adapted #1210 and Dathinel's `ad8db725` (see [earlier resident-mip readbacks](https://git.gtahub.st/github/fxceless--victory-fork/pulls/1031)), then BradRoland's #1204 `61b09521829c849b89b9e47d0f50681887913e6b` code/test with context adaptation, no other rendering change. GPL-3.0 sources. Release diagnostics, Rust 1.98.1/LLVM MinGW, exe SHA-256 `863aa039fc5559490cc9188353a18f6611ce488ecd821d720b8e6fa79e9e0218`, full tracked patch SHA-256 `60a556a8b0936e98fa1e20a74ef8e84e68516821104210a74d90083a2533991f`. RTX 4060 8 GB, 620.73.04, 16 GB system RAM, GE-Proton11-14/vkd3d-proton `71cae091b06571e`, Series X, 1920x1080 display, file physical backing, `VICTORY_TEXTURE_GUARD=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_WAVE_PAIRS=1 VICTORY_LEVELS_ON_DEMAND=1`. The #1204 boundary test actually created a heap on this device and returned `requested 1245184, mirrored 737855, null slot 999999`; 1 passed, 0 failed, 0 ignored, no skip. The retail creation warning independently reported the same requested/mirrored/unmirrored counts (507,329 outside the static mirror). **Actual frame 3217**: `VICTORY_LIST_SLOTS=b37565055f2f7d3b`, one bounded frame shot triggered after the first matching first-bind receipt (frame 3213; the shot starts at the next eligible present). 6,345 recorded event lines, with 26 matching mesh command records. Counts below parse every `~slot` occurrence, not each physical line (the shot flattens nested records into the event line). No raw game memory or captures attached. | Source | Host described | In-range null | Outside static mirror | |---|---:|---:|---:| | Resolved table texture views | 702 | 0 | 0 | | Other words interpreted as candidate slots | 419 | 156 | 0 | 43 distinct candidate slot IDs overall. The null annotations occur only in candidate-word scans, including some fully mapped small placed textures without a retained host resource and not queued. They are **not proven texture accesses**. None of these candidates fell outside the mirror. Importantly, all 26 attempts to decode the `G` material record used offsets 50,938,864–52,622,064 against a 460,800-byte `s0+688` buffer; no in-bounds `G` record was printed. No `M` record either. Therefore this shader's current material-word listing is insufficient for a diagnosis of the actual character material. **A better target for the next trace:** the same shot contains an indirect mesh command with pixel `a402e650d0acbc92` (one recorded command; execution not proven by this line) writing six 2560x1440 G-buffer targets, while `b37565055f2f7d3b` records write only one format-10 target. The former has a large `s0+688` buffer and user word 14, consistent with [DexNom #49](https://github.com/DexNom/VIctory/pull/49)'s independently identified material-record layout. `b15ba4896d650511` was absent from this shot. I have **not** ported #49. The three same-frame RGBA8 targets include detailed character/vehicle/building structure and a color-like target with the character very dark gray but a colored car. This supports inspecting the pre-lighting material path; it does not identify an exact missing texture. The later format-10 snapshot is from a different frame and cannot establish same-draw output. **Visible result:** the retry received one A at the visible account picker (44.34 s) and reached the night cutscene. At 256.06 s the woman's eye, nose, lips, skin, hands and hair are visibly detailed under red/green light; an earlier baseline close-up was almost black. Later at 281.14 s her face is still discernible under red light but another character's face is featureless, and the world remains too dark. This is a genuine partial visual milestone, not a matched same-pose comparison or proof that #1204 repaired rendering (diagnostics only; input/cache timing can differ). Overlay 0.3–0.5 FPS in these shots, no gameplay HUD or controllable world. 37 frames, application PCM nonzero in 15/21 chunks, fidelity unverified. Peak VRAM 7,463 MiB, scope RAM/swap 8,404/4,129 MiB, minimum host MemAvailable 1,576 MiB. No logged translation failures, host PSO refusals, device removal or host OOM; scheduled 332.6 s stop. Shot saved 148 images in three parts before bounded stop, not a completed full shot; first-frame event and relevant G-buffer snapshots were saved. First diagnostic attempt failed to arm due to ANSI-colored log matching, corrected and replay-tested; it had the same executable and starting seed bytes but no A receipt, so no timing comparison. The useful next experiment is tracing the actual `a402e650d0acbc92` material fields (and `b15ba4896d650511` when it occurs), reading the selected material buffer at the correct guest user word and resolving the indices according to their shader instructions. Distinguish CPU-side bytes from GPU-written records, and actual sampled views from incidental words; then correlate with the same frame's color/normal targets. This would decide whether to focus on residency/queue or the shader/lighting path. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)
Author
Owner

@⁠MoonYueya on GitHub · 2026-11-26 02:13 UTC · original

Clarification to my correction above: I mixed two trees in it. Per tree:

On this fork's c36971b (what the original comment measured), checked against that commit's own source and our own c36971b run log:

  • There is one probe, not two: probe_view_limit() (crates/victory-gpu/src/descriptor/host.rs:816 at c36971b) tries UNCAPPED_VIEWS = 1 << 21 (line 801). That is the single id=645 ... NumDescriptors 2097152 message the original comment quoted. It is the layer probing the card, not the title asking.
  • count in host view heap capped at {size}; views past it read a null slot (line 906) is the requested size, not the number of views truncated.
  • The out-of-range tracker title slot past the host heap (line 1935) fired 0 times in that same c36971b run.

So the retraction stands for c36971b on its own evidence.

From avatarmanz/VIctory-7900XTX 0a43566 only, not this fork: the second probe at 4,194,304 (2 * RAW_TWINS), the "usable cap 737,855" figure (its dynamic_slots(); c36971b has no such function), the 953-draw / 3,074-slot dump and the 2.1% partly uploaded slots. These were measured on a different tree, so treat them as a pointer, not as a measurement of this fork.

Also, "a second machine" was wrong: it was the same RTX 3080 machine, running a different tree.

AI-assisted.

**@⁠MoonYueya** on GitHub · 2026-11-26 02:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7180582946) Clarification to my correction above: I mixed two trees in it. Per tree: **On this fork's `c36971b` (what the original comment measured), checked against that commit's own source and our own c36971b run log:** - There is one probe, not two: `probe_view_limit()` (`crates/victory-gpu/src/descriptor/host.rs:816` at c36971b) tries `UNCAPPED_VIEWS = 1 << 21` (line 801). That is the single `id=645 ... NumDescriptors 2097152` message the original comment quoted. It is the layer probing the card, not the title asking. - `count` in `host view heap capped at {size}; views past it read a null slot` (line 906) is the requested size, not the number of views truncated. - The out-of-range tracker `title slot past the host heap` (line 1935) fired **0 times** in that same c36971b run. So the retraction stands for c36971b on its own evidence. **From avatarmanz/VIctory-7900XTX `0a43566` only, not this fork:** the second probe at 4,194,304 (`2 * RAW_TWINS`), the "usable cap 737,855" figure (its `dynamic_slots()`; c36971b has no such function), the 953-draw / 3,074-slot dump and the 2.1% partly uploaded slots. These were measured on a different tree, so treat them as a pointer, not as a measurement of this fork. Also, "a second machine" was wrong: it was the same RTX 3080 machine, running a different tree. *AI-assisted.*
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-26 02:20 UTC · original

Follow-up to my frame-shot report: deferred character record candidates actually waiting for their first texture-queue look on RTX 4060 / Proton. This is on the receiving fork integration, not the avatarmanz tree. I have read MoonYueya's tree-specific clarification above.

The previous shot's b37565055f2f7d3b pass was the wrong target for this record layout. This time I added a diagnostic-only CPU-record trace for a402e650d0acbc92 / b15ba4896d650511, using the field layout and guest 32-byte descriptor stride documented in DexNom #49, b8949af. Credit to that investigation; no material-demand scheduling code was ported. The trace uses the translated user-data mapping to select guest word 14, table 0 dword 688, validates the byte range/alignment, reads just the 7 or 9 words, applies the guest packed-index mask (word << 5 >> 5, wrapping), and describes each bound title slot through #1204. It reads CPU recording-time state, not the GPU's material record at the indirect draw. The layout is sourced from #49, not an independent native-shader disassembly here. The range/index unit test passed (1 passed, 0 failed, 0 ignored); release diagnostics build succeeded.

Build: same private integrated 51700c6 + #1056/#830/#20/#1006/#1031/adapted #1210/Dathinel ad8db725/#1204 as the earlier comment, plus this CPU-only trace. All ported sources GPL-3.0. Exe SHA-256 2b7debfd8ebcf9fe6ad7af5148c46224b5568dd9cc22d58adfe389d32ee77d19, full tracked patch SHA-256 936dddac14dfc698cf133959efdc9f56fa8dd3bf3804d72d14f7f4fecfc4cd8d. Same RTX 4060 8 GB/16 GB RAM, GE-Proton11-14/vkd3d-proton 71cae09, Linux, Series X, display 1920x1080, file physical backing, VICTORY_TEXTURE_GUARD=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_WAVE_PAIRS=1 VICTORY_LEVELS_ON_DEMAND=1, original verified cache/profile seed. No #1246 or new scheduling/lighting fix applied.

Frame 3485, 5 recorded indirect kind-10 commands for a402e650d0acbc92. Triggered after its exact first bind, frame 3483. Shot completed (5,150 lines, 41 pictures, 0 missing/failed); none of the six recorded G-buffer render targets was among the saved snapshots, so there is no same-draw color/normal proof. Five CPU candidate records were in bounds and readable, all listing the same 182,452,224-byte buffer extent. 35 field observations (23 distinct slot IDs); all within the title heap. No packed-variant command recorded. Counts are per field, not per unique view unless explicitly noted.

CPU candidate material fields Observations
Host static mirror described 20
Host static mirror null 15 (15 distinct slots)
Outside static mirror 0
Null, placed resource not yet made 15
Null, queued due now 15
Null, queue looks=0 15
Null, CPU title backing fully mapped 14
Null, partially mapped 1

The number of null fields per command was 4, 4, 3, 0, 4. The null views are BC-format placed textures, spanning 4x4, 256x256 and 512x512. The partially mapped one had about 81% of its CPU backing committed. This is consistent with unserviced texture-queue work even for already-mapped title data (as opposed to the static mirror cap or unmapped title memory alone). It does not prove the GPU sampled these descriptors: the command is indirect, the CPU material record may not match the GPU-written record or effective root arguments, and some fields may not execute on all pixels. No missing-resource-to-skin mapping is established. The last tile line in this run showed 75 held-level uploads without card memory (not the same count as the 15 record fields).

Retail observation: one A at the visible account picker 44.49 s; loading artwork and recognizable dark night cutscene/subtitles, latest frame around 327.6 s (no matched frontal close-up, credits, gameplay HUD or in-world input response). 34 private frames; nonzero isolated PCM 8/21, fidelity unverified. Peak whole-device VRAM 7,457 MiB, charged scope RAM/swap 7,547/3,955 MiB, minimum host available 1,400 MiB. No logged translation failures, host PSO refusals, device loss or host OOM. Scheduled 335.5 s stop. First attempt triggered from the other shader too early; no target command in its event list, so excluded. Same binary/start seed, but that attempt had no qualifying account picker/A; no performance A/B.

These observations make the fresh-versus-retry service change in #1246 a particularly relevant next controlled test (separate from the resident mip clamp work in #1031). A GPU-ordered readback of the actual indirect material record, as #49's probe suggests, remains necessary to call any field a sampled missing texture. I would compare the exact first-look counts with #1246's switch off/on in a matched scene rather than extend the static heap on this evidence. Raw records, game captures and assets remain private.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)

**@⁠ArturoWolff** on GitHub · 2026-11-26 02:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/279#issuecomment-7180716867) **Follow-up to [my frame-shot report](https://git.gtahub.st/github/fxceless--victory-fork/issues/279): deferred character record candidates actually waiting for their first texture-queue look on RTX 4060 / Proton.** This is on the receiving fork integration, not the avatarmanz tree. I have read MoonYueya's tree-specific clarification above. The previous shot's `b37565055f2f7d3b` pass was the wrong target for this record layout. This time I added a diagnostic-only CPU-record trace for `a402e650d0acbc92` / `b15ba4896d650511`, using the field layout and guest 32-byte descriptor stride documented in [DexNom #49, b8949af](https://github.com/DexNom/VIctory/pull/49). Credit to that investigation; no material-demand scheduling code was ported. The trace uses the translated user-data mapping to select guest word 14, table 0 dword 688, validates the byte range/alignment, reads just the 7 or 9 words, applies the guest packed-index mask (`word << 5 >> 5`, wrapping), and describes each bound title slot through #1204. **It reads CPU recording-time state, not the GPU's material record at the indirect draw.** The layout is sourced from #49, not an independent native-shader disassembly here. The range/index unit test passed (1 passed, 0 failed, 0 ignored); release diagnostics build succeeded. Build: same private integrated `51700c6` + #1056/#830/#20/#1006/#1031/adapted #1210/Dathinel `ad8db725`/#1204 as the earlier comment, plus this CPU-only trace. All ported sources GPL-3.0. Exe SHA-256 `2b7debfd8ebcf9fe6ad7af5148c46224b5568dd9cc22d58adfe389d32ee77d19`, full tracked patch SHA-256 `936dddac14dfc698cf133959efdc9f56fa8dd3bf3804d72d14f7f4fecfc4cd8d`. Same RTX 4060 8 GB/16 GB RAM, GE-Proton11-14/vkd3d-proton `71cae09`, Linux, Series X, display 1920x1080, file physical backing, `VICTORY_TEXTURE_GUARD=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_WAVE_PAIRS=1 VICTORY_LEVELS_ON_DEMAND=1`, original verified cache/profile seed. No #1246 or new scheduling/lighting fix applied. **Frame 3485, 5 recorded indirect kind-10 commands for `a402e650d0acbc92`.** Triggered after its exact first bind, frame 3483. Shot completed (5,150 lines, 41 pictures, 0 missing/failed); none of the six recorded G-buffer render targets was among the saved snapshots, so there is no same-draw color/normal proof. Five CPU candidate records were in bounds and readable, all listing the same 182,452,224-byte buffer extent. 35 field observations (23 distinct slot IDs); all within the title heap. No packed-variant command recorded. Counts are per field, not per unique view unless explicitly noted. | CPU candidate material fields | Observations | |---|---:| | Host static mirror described | 20 | | Host static mirror null | **15 (15 distinct slots)** | | Outside static mirror | 0 | | Null, placed resource not yet made | **15** | | Null, queued due now | **15** | | Null, queue `looks=0` | **15** | | Null, CPU title backing fully mapped | **14** | | Null, partially mapped | 1 | The number of null fields per command was 4, 4, 3, 0, 4. The null views are BC-format placed textures, spanning 4x4, 256x256 and 512x512. The partially mapped one had about 81% of its CPU backing committed. This is consistent with unserviced texture-queue work even for already-mapped title data (as opposed to the static mirror cap or unmapped title memory alone). It does **not** prove the GPU sampled these descriptors: the command is indirect, the CPU material record may not match the GPU-written record or effective root arguments, and some fields may not execute on all pixels. No missing-resource-to-skin mapping is established. The last tile line in this run showed 75 held-level uploads without card memory (not the same count as the 15 record fields). Retail observation: one A at the visible account picker 44.49 s; loading artwork and recognizable dark night cutscene/subtitles, latest frame around 327.6 s (no matched frontal close-up, credits, gameplay HUD or in-world input response). 34 private frames; nonzero isolated PCM 8/21, fidelity unverified. Peak whole-device VRAM 7,457 MiB, charged scope RAM/swap 7,547/3,955 MiB, minimum host available 1,400 MiB. No logged translation failures, host PSO refusals, device loss or host OOM. Scheduled 335.5 s stop. First attempt triggered from the other shader too early; no target command in its event list, so excluded. Same binary/start seed, but that attempt had no qualifying account picker/A; no performance A/B. These observations make the fresh-versus-retry service change in #1246 a particularly relevant next controlled test (separate from the resident mip clamp work in #1031). A GPU-ordered readback of the actual indirect material record, as #49's probe suggests, remains necessary to call any field a sampled missing texture. I would compare the exact first-look counts with #1246's switch off/on in a matched scene rather than extend the static heap on this evidence. Raw records, game captures and assets remain private. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)
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/fxceless--victory-fork#279
No description provided.