World: which untranslated shaders cost the most draws (ranked from two runs) #293

Open
opened 2026-11-26 03:58:11 +00:00 by github-bot · 84 comments
Owner

@⁠gw1337x on GitHub · 2026-11-24 02:06 UTC · original

To help pick shader-translation work by in-game impact, here are the shaders whose pipelines are dropped most in the world, ranked by draws and dispatches lost per frame.

Source: the diagnostics drop summary (dropped N/frame without a host pipeline: <stage> <hash>), joined with each shader's shader does not translate ... error= reason. It covers two real-GPU runs into the opening cutscene on an RX 7800 XT (main d2a4bae + #135 + #242 + #230 + #124 + #130, Series X mode, v1.0.2.1). Both runs give the same order.

The rates are averaged over every summary interval of a run, menus included, so the world rates are higher than shown. Use them for ranking, not as absolute numbers.

By failure reason (run 1, sum of per-shader rates)

Lost per frame Shaders Reason Open PR I found
~600 31 an address in an SGPR that is no root parameter –
~462 8 (all mesh) a descriptor neither loaded nor built –
~276 8 a structured buffer of unknown stride #193
~91 8 a scalar memory read as data maybe #136
~66 3 a lane-mask join of an untracked mask –
~63 1 an address not from a root parameter –
~53 3 image_sample_d_cl –
~50 3 image_gather4_l #136
~37 2 a hardware SGPR input –
~20 1 barycentrics read directly #281?
~18 4 a 64-bit image atomic (#173 closed)

The total is about 1,770 per frame over 82 shaders. The top two reasons alone are about 60% of it, and I found no open PR for either.

Top 15 shaders

Lost per frame Stage and hash Reason
250.9 mesh 910b4be059bfb28f a descriptor neither loaded nor built
234.0 compute e30970f1727063fd a structured buffer of unknown stride
125.6 mesh 321d411b20a35ef9 a descriptor neither loaded nor built
119.6 compute 3b90165a77d95cdf an address in an SGPR that is no root parameter
86.2 compute f6e47efa50226beb an address in an SGPR that is no root parameter
80.2 compute caa78b8ca62bc3d6 an address in an SGPR that is no root parameter
62.6 compute caf96a3229145fa6 an address not from a root parameter
47.1 pixel 7bdefdfde461f6e3 image_sample_d_cl
40.4 compute 28918b7150a7aad5 an address in an SGPR that is no root parameter
39.2 mesh adc5c689b0552cc2 a descriptor neither loaded nor built
37.4 compute 2561af9577c47289 a lane-mask join of an untracked mask
33.9 compute 5552dac6a2b7a1fd an address in an SGPR that is no root parameter
29.1 vertex 4e35b816f2f91d68 a scalar memory read as data
28.1 pixel b37565055f2f7d3b a lane-mask join of an untracked mask
27.8 compute f28a33a89eaa2caa an address in an SGPR that is no root parameter

Separately, about 246 indirect rectangle-list draws per frame are dropped for another reason; that is #255.

I can rerun with other builds and post the same table, so a translation PR's effect can be measured in game.

**@⁠gw1337x** on GitHub · 2026-11-24 02:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/293) To help pick shader-translation work by in-game impact, here are the shaders whose pipelines are dropped most in the world, ranked by draws and dispatches lost per frame. **Source:** the diagnostics drop summary (`dropped N/frame without a host pipeline: <stage> <hash>`), joined with each shader's `shader does not translate ... error=` reason. It covers two real-GPU runs into the opening cutscene on an RX 7800 XT (`main` `d2a4bae` + #135 + #242 + #230 + #124 + #130, Series X mode, v1.0.2.1). Both runs give the same order. The rates are averaged over every summary interval of a run, menus included, so the world rates are higher than shown. Use them for ranking, not as absolute numbers. ### By failure reason (run 1, sum of per-shader rates) | Lost per frame | Shaders | Reason | Open PR I found | |---|---|---|---| | ~600 | 31 | an address in an SGPR that is no root parameter | – | | ~462 | 8 (all mesh) | a descriptor neither loaded nor built | – | | ~276 | 8 | a structured buffer of unknown stride | #193 | | ~91 | 8 | a scalar memory read as data | maybe #136 | | ~66 | 3 | a lane-mask join of an untracked mask | – | | ~63 | 1 | an address not from a root parameter | – | | ~53 | 3 | `image_sample_d_cl` | – | | ~50 | 3 | `image_gather4_l` | #136 | | ~37 | 2 | a hardware SGPR input | – | | ~20 | 1 | barycentrics read directly | #281? | | ~18 | 4 | a 64-bit image atomic | (#173 closed) | The total is about 1,770 per frame over 82 shaders. The top two reasons alone are about 60% of it, and I found no open PR for either. ### Top 15 shaders | Lost per frame | Stage and hash | Reason | |---|---|---| | 250.9 | mesh `910b4be059bfb28f` | a descriptor neither loaded nor built | | 234.0 | compute `e30970f1727063fd` | a structured buffer of unknown stride | | 125.6 | mesh `321d411b20a35ef9` | a descriptor neither loaded nor built | | 119.6 | compute `3b90165a77d95cdf` | an address in an SGPR that is no root parameter | | 86.2 | compute `f6e47efa50226beb` | an address in an SGPR that is no root parameter | | 80.2 | compute `caa78b8ca62bc3d6` | an address in an SGPR that is no root parameter | | 62.6 | compute `caf96a3229145fa6` | an address not from a root parameter | | 47.1 | pixel `7bdefdfde461f6e3` | `image_sample_d_cl` | | 40.4 | compute `28918b7150a7aad5` | an address in an SGPR that is no root parameter | | 39.2 | mesh `adc5c689b0552cc2` | a descriptor neither loaded nor built | | 37.4 | compute `2561af9577c47289` | a lane-mask join of an untracked mask | | 33.9 | compute `5552dac6a2b7a1fd` | an address in an SGPR that is no root parameter | | 29.1 | vertex `4e35b816f2f91d68` | a scalar memory read as data | | 28.1 | pixel `b37565055f2f7d3b` | a lane-mask join of an untracked mask | | 27.8 | compute `f28a33a89eaa2caa` | an address in an SGPR that is no root parameter | Separately, about 246 indirect rectangle-list draws per frame are dropped for another reason; that is #255. I can rerun with other builds and post the same table, so a translation PR's effect can be measured in game.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:11 +00:00
Author
Owner

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

This table is the most useful thing in the tracker for choosing work, thank you. Two of its rows have a PR that should clear them, and I cannot measure it myself (I have no copy of the title; everything in my PRs is tested with hand-assembled programs on an RTX 5070):

  • image_sample_d_cl (~53/frame, 3 shaders): #160 lowers it, with its _o and _g16 forms. #318 covers the same opcode.
  • image_gather4_l (~50/frame, 3 shaders): #160 lowers it when the level is a known 0 (a DXIL gather reads level 0 only). A gather at any other level stays refused, with the reason a gather at a level not known to be 0, so your table would show which case the title has. #136 and #360 touch the same opcode.

If you rerun, could you include #160 (head 7265593) and say whether those six shaders translate and what, if anything, they stop at next? A before/after of this table is exactly the evidence that PR is missing.

The same goes for most of the open translation PRs, mine included: #163 (106 more opcodes), #164 (LDS and buffer atomics) and #265 (scratch memory) do not appear to address any row here, which is worth knowing. They make instructions translate that this ranking says the world is not currently blocked on. The rows that matter most (an address in an SGPR that is no root parameter, a descriptor neither loaded nor built) need someone who can look at those shaders.

No game data used.

**@⁠r4tedx** on GitHub · 2026-11-24 02:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7120401469) This table is the most useful thing in the tracker for choosing work, thank you. Two of its rows have a PR that should clear them, and I cannot measure it myself (I have no copy of the title; everything in my PRs is tested with hand-assembled programs on an RTX 5070): - **`image_sample_d_cl` (~53/frame, 3 shaders):** #160 lowers it, with its `_o` and `_g16` forms. #318 covers the same opcode. - **`image_gather4_l` (~50/frame, 3 shaders):** #160 lowers it when the level is a known 0 (a DXIL gather reads level 0 only). A gather at any other level stays refused, with the reason `a gather at a level not known to be 0`, so your table would show which case the title has. #136 and #360 touch the same opcode. If you rerun, could you include #160 (head `7265593`) and say whether those six shaders translate and what, if anything, they stop at next? A before/after of this table is exactly the evidence that PR is missing. The same goes for most of the open translation PRs, mine included: #163 (106 more opcodes), #164 (LDS and buffer atomics) and #265 (scratch memory) do not appear to address any row here, which is worth knowing. They make instructions translate that this ranking says the world is not currently blocked on. The rows that matter most (`an address in an SGPR that is no root parameter`, `a descriptor neither loaded nor built`) need someone who can look at those shaders. No game data used.
Author
Owner

@⁠Mesrine67 on GitHub · 2026-11-24 02:45 UTC · original

I opened PR #378 to add the runtime BLAKE3 container hash to translate --list and include duplicate-DXIL containers in that listing.

On my local v1.0.2.1 shader archive, using clean upstream d2a4bae, these hashes map to:

  • 910b4be059bfb28f — MSNC_VS_LinearDepthSkin_1b4b70ba_Wrapped: descriptor neither loaded nor built.
  • 321d411b20a35ef9 — MSNC_VS_LinearDepthSkin_f1f2249c_Wrapped: descriptor neither loaded nor built.
  • adc5c689b0552cc2 — MS_VS_PropFoliageDeferred_7cf79608_Wrapped: descriptor neither loaded nor built.
  • e30970f1727063fd — CS_ComputeImposterTransform_15082ab2_Wrapped: structured buffer of unknown stride.
  • caf96a3229145fa6 — CS_CollisionRaytraced_2776e795_Wrapped: address not from a root parameter.

This was a static translation scan, not a game run. It does not include the PR stack in the RX 7800 XT runs above, so these are failure mappings only; they are not updated draw-loss rates.

**@⁠Mesrine67** on GitHub · 2026-11-24 02:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7120457945) I opened PR #378 to add the runtime BLAKE3 container hash to `translate --list` and include duplicate-DXIL containers in that listing. On my local v1.0.2.1 shader archive, using clean upstream `d2a4bae`, these hashes map to: - `910b4be059bfb28f` — `MSNC_VS_LinearDepthSkin_1b4b70ba_Wrapped`: descriptor neither loaded nor built. - `321d411b20a35ef9` — `MSNC_VS_LinearDepthSkin_f1f2249c_Wrapped`: descriptor neither loaded nor built. - `adc5c689b0552cc2` — `MS_VS_PropFoliageDeferred_7cf79608_Wrapped`: descriptor neither loaded nor built. - `e30970f1727063fd` — `CS_ComputeImposterTransform_15082ab2_Wrapped`: structured buffer of unknown stride. - `caf96a3229145fa6` — `CS_CollisionRaytraced_2776e795_Wrapped`: address not from a root parameter. This was a static translation scan, not a game run. It does not include the PR stack in the RX 7800 XT runs above, so these are failure mappings only; they are not updated draw-loss rates.
Author
Owner

@⁠Mesrine67 on GitHub · 2026-11-24 03:08 UTC · original

I reran the local v1.0.2.1 shaders.rpf census on clean d2a4bae and on the exact #160 head 726559372b0859730de404242b53dd0fb4c96b72, using translate --validate --list. Both runs saw 26,503 containers and 26,698 program instances. The static rejection tally did not change: 27 instances remain under emit: image_sample_d_cl, and 12 under emit: image_gather4_l.

The priority pixel shader 7bdefdfde461f6e3 remains emit: image_sample_d_cl on #160. As one gather example, e918b781c12d5815 remains emit: image_gather4_l. The CLI reports these failures by opcode, so this scan alone does not expose a more specific per-shader reason. The targeted synthetic test sample_and_gather_forms_lower_to_valid_dxil passes on #160 (1/1); that demonstrates the tested forms, but not that these title programs translate.

This was static CPU translation plus DXIL validation only: no host pipelines were created, no game executable was run, and it does not update the RX 7800 XT per-frame draw-loss measurements.

**@⁠Mesrine67** on GitHub · 2026-11-24 03:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7120814801) I reran the local v1.0.2.1 `shaders.rpf` census on clean `d2a4bae` and on the exact #160 head `726559372b0859730de404242b53dd0fb4c96b72`, using `translate --validate --list`. Both runs saw 26,503 containers and 26,698 program instances. The static rejection tally did not change: 27 instances remain under `emit: image_sample_d_cl`, and 12 under `emit: image_gather4_l`. The priority pixel shader `7bdefdfde461f6e3` remains `emit: image_sample_d_cl` on #160. As one gather example, `e918b781c12d5815` remains `emit: image_gather4_l`. The CLI reports these failures by opcode, so this scan alone does not expose a more specific per-shader reason. The targeted synthetic test `sample_and_gather_forms_lower_to_valid_dxil` passes on #160 (1/1); that demonstrates the tested forms, but not that these title programs translate. This was static CPU translation plus DXIL validation only: no host pipelines were created, no game executable was run, and it does not update the RX 7800 XT per-frame draw-loss measurements.
Author
Owner

@⁠EduAzevedo on GitHub · 2026-11-24 03:08 UTC · original

Measured 7265593 against main d2a4bae on the retail shaders (v1.0.2.1, Series X package), offline with victory translate --jobs 8 and --list, same 26,148 programs both times. Only counts and refusal reasons below.

Vertex and pixel programs emitted as DXIL: 12,284 → 12,332 (+48).

Refusal on main Programs With this PR
a biased image sample with 16-bit coordinates 108 44 translate; 48 now stop at a scalar memory read as data, 16 at a lane mask read as data
image_sample_d_cl 27 none translate yet: 25 (all pixel) now stop at an image address, 2 at a cross-lane operation outside compute
image_gather4_l 12 all 12 now stop at a gather at a level not known to be 0
image_sample_o 4 all translate
v_swap_b32 / v_xnor_b32 11 / 1 all translate

To your question in #293:

  • image_gather4_l: the title's 12 gathers are all at a level the translator cannot prove is 0, so none of them lower with the level-0 rule.
  • image_sample_d_cl: the opcode itself is handled, but 25 of the 27 programs then hit an image address (on main that reason had 2 programs). So the next refusal for those draws is the image address. I can run any follow-up the same way in a few minutes.

AI-assisted.

**@⁠EduAzevedo** on GitHub · 2026-11-24 03:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7120815748) Measured `7265593` against `main` `d2a4bae` on the retail shaders (v1.0.2.1, Series X package), offline with `victory translate --jobs 8` and `--list`, same 26,148 programs both times. Only counts and refusal reasons below. **Vertex and pixel programs emitted as DXIL: 12,284 → 12,332 (+48).** | Refusal on `main` | Programs | With this PR | |---|---|---| | `a biased image sample with 16-bit coordinates` | 108 | 44 translate; 48 now stop at `a scalar memory read as data`, 16 at `a lane mask read as data` | | `image_sample_d_cl` | 27 | **none translate yet**: 25 (all pixel) now stop at `an image address`, 2 at `a cross-lane operation outside compute` | | `image_gather4_l` | 12 | all 12 now stop at `a gather at a level not known to be 0` | | `image_sample_o` | 4 | all translate | | `v_swap_b32` / `v_xnor_b32` | 11 / 1 | all translate | To your question in #293: - **`image_gather4_l`:** the title's 12 gathers are all at a level the translator cannot prove is 0, so none of them lower with the level-0 rule. - **`image_sample_d_cl`:** the opcode itself is handled, but 25 of the 27 programs then hit `an image address` (on `main` that reason had 2 programs). So the next refusal for those draws is the image address. I can run any follow-up the same way in a few minutes. AI-assisted.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 03:09 UTC · original

Follow-up, after reviewing the open PRs that target this table's rows (built each on main d2a4bae, RTX 5070; details are on the PRs):

Row PR State after review
an address in an SGPR that is no root parameter (~600) #302 (its author reports 34 to 4 programs) can bind the wrong root argument when a program loads into s16 and up; repro on the PR
a descriptor neither loaded nor built (~462) #307 (author reports 298 to 3) shader tests pass, but victory.exe does not build (non-exhaustive match in translate.rs); one-line fix on the PR
a structured buffer of unknown stride (~276) #193 fallback reads a structured view through a raw handle, which the PR itself says returns 0 on NVIDIA
a scalar memory read as data (~91), image_gather4_l (~50) #136 the s_buffer fix looks right; two other parts can change results silently
a lane-mask join of an untracked mask (~66) #320 (fixed there for the console flow) –
image_sample_d_cl (~53), image_gather4_l (~50) #160, #318 –

Since nobody without the title can see these shaders, here are questions a tester can answer with counts or yes/no (no shader contents needed), which would let the two top rows be fixed properly:

  1. Of the 31 shaders on the first reason, how many are compute, mesh, other stages (victory translate --list)?
  2. With #302 applied, how many of the 31 still fail, and with which reasons (count per reason)?
  3. For the mesh / merged-stage ones that remain: is the failing load's base register s0 or s1 (yes/no), and does any root parameter in victory shader-info --verbose start below user data 8 (yes/no)?
  4. With #307 applied (plus the translate.rs fix noted there), how many of the 8 mesh shaders still fail with a descriptor neither loaded nor built?
  5. For any that remain: does the program contain v_readfirstlane_b32, s_cselect_b*, ds_read* or buffer_load* before the failing offset (yes/no each), and does the descriptor's SGPR range fall inside a root parameter's user SGPRs (yes/no)?

No game data used.

**@⁠r4tedx** on GitHub · 2026-11-24 03:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7120825219) Follow-up, after reviewing the open PRs that target this table's rows (built each on `main` `d2a4bae`, RTX 5070; details are on the PRs): | Row | PR | State after review | |---|---|---| | an address in an SGPR that is no root parameter (~600) | #302 (its author reports 34 to 4 programs) | can bind the wrong root argument when a program loads into s16 and up; repro on the PR | | a descriptor neither loaded nor built (~462) | #307 (author reports 298 to 3) | shader tests pass, but `victory.exe` does not build (non-exhaustive match in `translate.rs`); one-line fix on the PR | | a structured buffer of unknown stride (~276) | #193 | fallback reads a structured view through a raw handle, which the PR itself says returns 0 on NVIDIA | | a scalar memory read as data (~91), `image_gather4_l` (~50) | #136 | the s_buffer fix looks right; two other parts can change results silently | | a lane-mask join of an untracked mask (~66) | #320 (fixed there for the console flow) | – | | `image_sample_d_cl` (~53), `image_gather4_l` (~50) | #160, #318 | – | Since nobody without the title can see these shaders, here are questions a tester can answer with counts or yes/no (no shader contents needed), which would let the two top rows be fixed properly: 1. Of the 31 shaders on the first reason, how many are compute, mesh, other stages (`victory translate --list`)? 2. With #302 applied, how many of the 31 still fail, and with which reasons (count per reason)? 3. For the mesh / merged-stage ones that remain: is the failing load's base register s0 or s1 (yes/no), and does any root parameter in `victory shader-info --verbose` start below user data 8 (yes/no)? 4. With #307 applied (plus the `translate.rs` fix noted there), how many of the 8 mesh shaders still fail with `a descriptor neither loaded nor built`? 5. For any that remain: does the program contain `v_readfirstlane_b32`, `s_cselect_b*`, `ds_read*` or `buffer_load*` before the failing offset (yes/no each), and does the descriptor's SGPR range fall inside a root parameter's user SGPRs (yes/no)? No game data used.
Author
Owner

@⁠aycow on GitHub · 2026-11-24 04:03 UTC · original

Thanks for the refusal census. The largest buckets now have active work in #302, #307, and #193. On #302, spill-loaded pointers expose downstream root UAV and typed-view refusals, with raw root UAV work already in #294. On #307, the leading mesh hash still needs a matched rerun for the descriptor-phi case.

If you’re authorized to run the title and share diagnostics, could you repeat the same opening-cutscene frame window on main and then one candidate PR at a time? Please share the build SHA and PRs, GPU and driver, frame range and frame count, and counts by stage, shader hash, and refusal reason. When a reason changes, please include the next reason for that hash. If you own an overlapping fix or already have a matched run, please link its PR or comparison so we can reuse it. Aggregate counts and hashes are sufficient. Timing is tracked in #71.

**@⁠aycow** on GitHub · 2026-11-24 04:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7121662412) Thanks for the refusal census. The largest buckets now have active work in #302, #307, and #193. On #302, spill-loaded pointers expose downstream root UAV and typed-view refusals, with raw root UAV work already in #294. On #307, the leading mesh hash still needs a matched rerun for the descriptor-phi case. If you’re authorized to run the title and share diagnostics, could you repeat the same opening-cutscene frame window on main and then one candidate PR at a time? Please share the build SHA and PRs, GPU and driver, frame range and frame count, and counts by stage, shader hash, and refusal reason. When a reason changes, please include the next reason for that hash. If you own an overlapping fix or already have a matched run, please link its PR or comparison so we can reuse it. Aggregate counts and hashes are sufficient. Timing is tracked in #71.
Author
Owner

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

Two measurements nobody has made yet, for anyone with the shaders or an AMD card. Both are cheap and neither needs the world to render.

1. Offline counts for three PRs that have none. #163 (106 more opcodes), #164 (memory atomics, sub-dword buffer accesses) and #265 (scratch memory) pass their own tests, but as far as I can tell they match no row of this table, and no one has run them over the title's shaders. The same comparison @⁠EduAzevedo ran for #160, #307 and #309 would settle whether they matter: victory translate --jobs 8 --list on main and on each head, then how many programs are emitted, which refusal reasons change, and whether anything that translated on main stops. If the answer is "nothing changes", that is worth knowing too: it says those PRs can wait.

2. One run of the wave64 stack on a 64-lane GPU. #223 / #233 / #320 / #439 have title runs on three machines, all NVIDIA, and the reports list "a 64-lane adapter" under not tested. On an AMD card the stack should change nothing (console wave64 programs keep running natively), and that is exactly what has not been checked: the same program-by-program comparison against main, expecting 0 gained and 0 lost, or translate --validate --pipelines --list counts on both. #439's head is e49302a.

Counts and reasons only, please. I have no copy of the title. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 04:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7122077684) Two measurements nobody has made yet, for anyone with the shaders or an AMD card. Both are cheap and neither needs the world to render. **1. Offline counts for three PRs that have none.** #163 (106 more opcodes), #164 (memory atomics, sub-dword buffer accesses) and #265 (scratch memory) pass their own tests, but as far as I can tell they match no row of this table, and no one has run them over the title's shaders. The same comparison @⁠EduAzevedo ran for #160, #307 and #309 would settle whether they matter: `victory translate --jobs 8 --list` on `main` and on each head, then how many programs are emitted, which refusal reasons change, and whether anything that translated on `main` stops. If the answer is "nothing changes", that is worth knowing too: it says those PRs can wait. **2. One run of the wave64 stack on a 64-lane GPU.** #223 / #233 / #320 / #439 have title runs on three machines, all NVIDIA, and the reports list "a 64-lane adapter" under not tested. On an AMD card the stack should change nothing (console wave64 programs keep running natively), and that is exactly what has not been checked: the same program-by-program comparison against `main`, expecting 0 gained and 0 lost, or `translate --validate --pipelines --list` counts on both. #439's head is `e49302a`. Counts and reasons only, please. I have no copy of the title. AI-assisted.
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 05:27 UTC · original

Taking the 64-lane AMD A/B requested above.

I am running main d2a4bae and #439 head e49302a over my local v1.0.2.1 shaders.rpf, using translate --validate --pipelines --list --jobs 8 and explicitly selecting the Radeon adapter. D3D12 reports 32..64 lanes on it. The main build has only a local adapter-selection harness change; its translation code is unchanged.

No title or world run. I will report program-by-program gained/lost counts and validation/pipeline counts only, without shader contents or extracted data. AI-assisted (Kimi).

**@⁠Halfect** on GitHub · 2026-11-24 05:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7122958042) Taking the 64-lane AMD A/B requested above. I am running `main` `d2a4bae` and #439 head `e49302a` over my local v1.0.2.1 `shaders.rpf`, using `translate --validate --pipelines --list --jobs 8` and explicitly selecting the Radeon adapter. D3D12 reports **32..64 lanes** on it. The main build has only a local adapter-selection harness change; its translation code is unchanged. No title or world run. I will report program-by-program gained/lost counts and validation/pipeline counts only, without shader contents or extracted data. AI-assisted (Kimi).
Author
Owner

@⁠EduAzevedo on GitHub · 2026-11-24 05:28 UTC · original

Two measurements nobody has made yet, for anyone with the shaders or an AMD card. Both are cheap and neither needs the world to render.

1. Offline counts for three PRs that have none. #163 (106 more opcodes), #164 (memory atomics, sub-dword buffer accesses) and #265 (scratch memory) pass their own tests, but as far as I can tell they match no row of this table, and no one has run them over the title's shaders. The same comparison @⁠EduAzevedo ran for #160, #307 and #309 would settle whether they matter: victory translate --jobs 8 --list on main and on each head, then how many programs are emitted, which refusal reasons change, and whether anything that translated on main stops. If the answer is "nothing changes", that is worth knowing too: it says those PRs can wait.

2. One run of the wave64 stack on a 64-lane GPU. #223 / #233 / #320 / #439 have title runs on three machines, all NVIDIA, and the reports list "a 64-lane adapter" under not tested. On an AMD card the stack should change nothing (console wave64 programs keep running natively), and that is exactly what has not been checked: the same program-by-program comparison against main, expecting 0 gained and 0 lost, or translate --validate --pipelines --list counts on both. #439's head is e49302a.

Counts and reasons only, please. I have no copy of the title. AI-assisted.

The three offline counts asked for above, on the retail shaders (v1.0.2.1, Series X package): victory translate --jobs 8 --list on main d2a4bae and on each head, all 26,148 programs, compared program by program.

PR Head Vertex and pixel emitted Programs gained Programs lost Refusal reasons that change
main d2a4bae 12,284 – – –
#163 ce1f138 12,284 0 0 v_cvt_f32_f64 4 → 0, floating-point arithmetic in f64 is not implemented by the DXIL emitter 0 → 4 (the same 4 programs)
#164 3bbc9ba 12,284 0 0 none
#265 7463484 12,284 0 0 none

So on the title's shaders none of the three changes what translates: no row of the table above, and nothing lost. #163 only renames the refusal of the 4 programs that use v_cvt_f32_f64. As you said, that says these can wait.

AI-assisted.

**@⁠EduAzevedo** on GitHub · 2026-11-24 05:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7122982817) > Two measurements nobody has made yet, for anyone with the shaders or an AMD card. Both are cheap and neither needs the world to render. > > **1. Offline counts for three PRs that have none.** [#163](https://git.gtahub.st/github/Marvisak--VIctory/pulls/163) (106 more opcodes), [#164](https://git.gtahub.st/github/Marvisak--VIctory/pulls/164) (memory atomics, sub-dword buffer accesses) and [#265](https://git.gtahub.st/github/Marvisak--VIctory/pulls/265) (scratch memory) pass their own tests, but as far as I can tell they match no row of this table, and no one has run them over the title's shaders. The same comparison [@⁠EduAzevedo](https://github.com/EduAzevedo) ran for [#160](https://git.gtahub.st/github/Marvisak--VIctory/pulls/160), [#307](https://git.gtahub.st/github/Marvisak--VIctory/pulls/307) and [#309](https://git.gtahub.st/github/Marvisak--VIctory/pulls/309) would settle whether they matter: `victory translate --jobs 8 --list` on `main` and on each head, then how many programs are emitted, which refusal reasons change, and whether anything that translated on `main` stops. If the answer is "nothing changes", that is worth knowing too: it says those PRs can wait. > > **2. One run of the wave64 stack on a 64-lane GPU.** [#223](https://git.gtahub.st/github/Marvisak--VIctory/pulls/223) / [#233](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233) / [#320](https://git.gtahub.st/github/Marvisak--VIctory/pulls/320) / [#439](https://git.gtahub.st/github/Marvisak--VIctory/pulls/439) have title runs on three machines, all NVIDIA, and the reports list "a 64-lane adapter" under not tested. On an AMD card the stack should change nothing (console wave64 programs keep running natively), and that is exactly what has not been checked: the same program-by-program comparison against `main`, expecting 0 gained and 0 lost, or `translate --validate --pipelines --list` counts on both. [#439](https://git.gtahub.st/github/Marvisak--VIctory/pulls/439)'s head is `e49302a`. > > Counts and reasons only, please. I have no copy of the title. AI-assisted. The three offline counts asked for above, on the retail shaders (v1.0.2.1, Series X package): `victory translate --jobs 8 --list` on `main` `d2a4bae` and on each head, all 26,148 programs, compared program by program. | PR | Head | Vertex and pixel emitted | Programs gained | Programs lost | Refusal reasons that change | |---|---|---|---|---|---| | `main` | `d2a4bae` | 12,284 | – | – | – | | #163 | `ce1f138` | 12,284 | 0 | 0 | `v_cvt_f32_f64` 4 → 0, `floating-point arithmetic in f64 is not implemented by the DXIL emitter` 0 → 4 (the same 4 programs) | | #164 | `3bbc9ba` | 12,284 | 0 | 0 | none | | #265 | `7463484` | 12,284 | 0 | 0 | none | So on the title's shaders none of the three changes what translates: no row of the table above, and nothing lost. #163 only renames the refusal of the 4 programs that use `v_cvt_f32_f64`. As you said, that says these can wait. AI-assisted.
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 05:33 UTC · original

Completed the requested 64-lane AMD A/B for main d2a4bae and #439 head e49302a.

Environment: AMD Radeon 610M (PCI DEV_13C0), driver 32.0.21030.2001, Windows 11 build 22631, Rust 1.98.1. D3D12 reports 32..64 lanes. Both runs explicitly selected the Radeon adapter; the candidate logged host waves 32-64 lanes. The main build used only the local adapter-selection harness change noted above, with translation code unchanged.

Command on both: victory translate <local shaders.rpf> --validate --pipelines --list --jobs 8, using dxil.dll from Windows SDK 10.0.26100.0. Local shader archive: v1.0.2.1. Both runs saw 26,503 containers (614 duplicates skipped) and translated 26,084 / 26,084 programs.

Stage main: emitted / validated / pipelines #439: emitted / validated / pipelines
Vertex + pixel 12,272 / 12,172 / 12,272 12,272 / 12,172 / 12,272
Compute 1,693 / 1,670 / 1,693 1,715 / 1,672 / 1,715
Mesh 8,191 / 8,129 / 8,191 8,191 / 8,129 / 8,191
Total 22,156 / 21,971 / 22,156 22,178 / 21,973 / 22,178

Program-by-program comparison used 25,889 shared labels; 23 base-only and 43 candidate-only labels were excluded because parallel duplicate-DXIL container selection can choose different labels. Validator diagnostic suffixes added by the candidate were normalized before comparing outcomes.

  • DXIL validation: 0 gained, 0 lost.
  • D3D12 pipeline creation: 0 gained, 0 lost.
  • All 22,178 modules emitted by the candidate successfully created pipelines.
  • Only two failure-reason reclassifications occurred on shared labels, one program each: a descriptor chosen by control flow → an SCC the emitter did not compute, and a descriptor's address or format read as data → an SCC the emitter did not compute. Neither changed a successful outcome into a failure or vice versa.

The aggregate +22 compute emitted / +2 validated is reported as a whole-stack total, not attributed to Wave64 alone; #439 includes its underlying PR stack. The matched-label result is the requested 64-lane check: no validation or pipeline-creation regression was found on this AMD host.

Offline translation, DXIL validation and pipeline creation only; no title executable or world run. No shader contents or extracted data included. AI-assisted (Kimi).

**@⁠Halfect** on GitHub · 2026-11-24 05:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7123052457) Completed the requested **64-lane AMD A/B** for `main` `d2a4bae` and #439 head `e49302a`. **Environment:** AMD Radeon 610M (PCI `DEV_13C0`), driver `32.0.21030.2001`, Windows 11 build 22631, Rust 1.98.1. D3D12 reports **32..64 lanes**. Both runs explicitly selected the Radeon adapter; the candidate logged `host waves 32-64 lanes`. The main build used only the local adapter-selection harness change noted above, with translation code unchanged. Command on both: `victory translate <local shaders.rpf> --validate --pipelines --list --jobs 8`, using `dxil.dll` from Windows SDK `10.0.26100.0`. Local shader archive: v1.0.2.1. Both runs saw 26,503 containers (614 duplicates skipped) and translated 26,084 / 26,084 programs. | Stage | `main`: emitted / validated / pipelines | #439: emitted / validated / pipelines | |---|---:|---:| | Vertex + pixel | 12,272 / 12,172 / 12,272 | 12,272 / 12,172 / 12,272 | | Compute | 1,693 / 1,670 / 1,693 | 1,715 / 1,672 / 1,715 | | Mesh | 8,191 / 8,129 / 8,191 | 8,191 / 8,129 / 8,191 | | **Total** | **22,156 / 21,971 / 22,156** | **22,178 / 21,973 / 22,178** | Program-by-program comparison used **25,889 shared labels**; 23 base-only and 43 candidate-only labels were excluded because parallel duplicate-DXIL container selection can choose different labels. Validator diagnostic suffixes added by the candidate were normalized before comparing outcomes. - **DXIL validation: 0 gained, 0 lost.** - **D3D12 pipeline creation: 0 gained, 0 lost.** - All **22,178** modules emitted by the candidate successfully created pipelines. - Only two failure-reason reclassifications occurred on shared labels, one program each: `a descriptor chosen by control flow` → `an SCC the emitter did not compute`, and `a descriptor's address or format read as data` → `an SCC the emitter did not compute`. Neither changed a successful outcome into a failure or vice versa. The aggregate **+22 compute emitted / +2 validated** is reported as a whole-stack total, not attributed to Wave64 alone; #439 includes its underlying PR stack. The matched-label result is the requested 64-lane check: no validation or pipeline-creation regression was found on this AMD host. Offline translation, DXIL validation and pipeline creation only; no title executable or world run. No shader contents or extracted data included. AI-assisted (Kimi).
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 05:35 UTC · original

Synthetic run of @⁠r4tedx's integration/testers tree (7670a8acd0) on a second GPU family, without the title. It isn't the title measurement this issue asks for; it only shows the combined tree builds and passes its tests on Ampere as well as the RTX 5070 it was put together on.

Tested

  • NVIDIA GeForce RTX 3070 (Ampere, driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, Rust 1.100.0 MSVC; Windows SDK dxil.dll present, so test modules are validated.
  • cargo build -p victory and cargo build -p victory --profile diag --features diagnostics: both build.
  • cargo test --workspace --no-fail-fast -- --test-threads=1: 388 passed, 0 failed, 5 ignored (22 test binaries).

Not tested: the title (no copy here), AMD, wave64.

AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-24 05:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7123096811) Synthetic run of @⁠r4tedx's `integration/testers` tree (`7670a8acd0`) on a second GPU family, without the title. It isn't the title measurement this issue asks for; it only shows the combined tree builds and passes its tests on Ampere as well as the RTX 5070 it was put together on. **Tested** - NVIDIA GeForce RTX 3070 (Ampere, driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, Rust 1.100.0 MSVC; Windows SDK `dxil.dll` present, so test modules are validated. - `cargo build -p victory` and `cargo build -p victory --profile diag --features diagnostics`: both build. - `cargo test --workspace --no-fail-fast -- --test-threads=1`: **388 passed, 0 failed, 5 ignored** (22 test binaries). **Not tested:** the title (no copy here), AMD, wave64. AI-assisted (Claude Code).
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 05:41 UTC · original

Correction to the comparison in my result above: the first matcher left the failing instruction offset in failure labels, so emit → success transitions were incorrectly left unmatched. Re-matching by container + program label gives 25,912 shared labels, with 20 candidate-only labels excluded.

The corrected matched-label result is:

  • 22 programs change emit: a lane-mask join of an untracked mask → ok.
  • DXIL validation: gained 2, lost 0.
  • Pipeline creation: gained 22, lost 0.

The stage totals and all other reported reason changes are unchanged. Thus the aggregate +22 compute pipelines are accounted for by the underlying stack's lane-mask fixes, rather than being an unexplained Wave64 difference. The 64-lane conclusion is unchanged in the important direction: no validation or pipeline-creation loss was found. Sorry for the undercount in the first comparison.

**@⁠Halfect** on GitHub · 2026-11-24 05:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7123190853) **Correction to the comparison in my result above:** the first matcher left the failing instruction offset in failure labels, so `emit → success` transitions were incorrectly left unmatched. Re-matching by container + program label gives **25,912 shared labels**, with 20 candidate-only labels excluded. The corrected matched-label result is: - **22** programs change `emit: a lane-mask join of an untracked mask` → `ok`. - **DXIL validation: gained 2, lost 0.** - **Pipeline creation: gained 22, lost 0.** The stage totals and all other reported reason changes are unchanged. Thus the aggregate +22 compute pipelines are accounted for by the underlying stack's lane-mask fixes, rather than being an unexplained Wave64 difference. The 64-lane conclusion is unchanged in the important direction: **no validation or pipeline-creation loss was found**. Sorry for the undercount in the first comparison.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 05:51 UTC · original

@⁠EduAzevedo @⁠Halfect thank you both. That answers the two measurements I asked for above.

#163, #164, #265 (counts): 0 programs gained and 0 lost for each on the title's shaders, and #163 only renames the refusal of four programs. None of the three moves a row of this table, so they can wait behind the PRs that do.

The wave64 stack on a 64-lane GPU (result, correction): nothing lost on a Radeon 610M, in validation or in pipeline creation. My expectation that the stack "should change nothing" there was wrong, and the corrected comparison shows where: 22 compute programs go from a lane-mask join of an untracked mask to translating. That looks like #320, which translates such programs in the console flow on every host and not only on 32-lane ones. On NVIDIA the same reason goes from 21 to 0 at #320's head (table).

A caveat from the same numbers: 22 programs gain a pipeline, but validation gains only 2. On NVIDIA, 20 of the 21 fail validation with the compute sample message of #201, which #180 clears on main (23 to 0 in the census rerun). I have not seen the validator message for the 20 on the Radeon. If it is the same one, they are that class.

I ran nothing myself for this comment; the numbers are the linked testers'. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 05:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7123336537) @⁠EduAzevedo @⁠Halfect thank you both. That answers the two measurements I asked for above. **#163, #164, #265** ([counts](https://git.gtahub.st/github/Marvisak--VIctory/issues/293)): 0 programs gained and 0 lost for each on the title's shaders, and #163 only renames the refusal of four programs. None of the three moves a row of this table, so they can wait behind the PRs that do. **The wave64 stack on a 64-lane GPU** ([result](https://git.gtahub.st/github/Marvisak--VIctory/issues/293), [correction](https://git.gtahub.st/github/Marvisak--VIctory/issues/293)): nothing lost on a Radeon 610M, in validation or in pipeline creation. My expectation that the stack "should change nothing" there was wrong, and the corrected comparison shows where: 22 compute programs go from `a lane-mask join of an untracked mask` to translating. That looks like #320, which translates such programs in the console flow on every host and not only on 32-lane ones. On NVIDIA the same reason goes from 21 to 0 at #320's head ([table](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233)). A caveat from the same numbers: 22 programs gain a pipeline, but validation gains only 2. On NVIDIA, 20 of the 21 fail validation with the compute `sample` message of #201, which #180 clears on `main` (23 to 0 in [the census rerun](https://git.gtahub.st/github/Marvisak--VIctory/issues/201)). I have not seen the validator message for the 20 on the Radeon. If it is the same one, they are that class. I ran nothing myself for this comment; the numbers are the linked testers'. AI-assisted.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 06:53 UTC · original

Untranslated shaders from one world load, counted by reason (RTX 4060 Ti)

This does not answer "which shader costs the most draws" — the log does not attribute
dropped draws to a shader — but it does give the population to rank against: every shader
that fails to translate in one world load, with the converter's own reason.

Environment

GPU RTX 4060 Ti, driver 32.0.16.1656, VICTORY_D3D12_WARP=1 for stability
Build cargo build --release -p victory @ d2a4bae
Run one world load, victory.exe run <game>\game_scarlett_master.exe --execute

Counts

324 distinct shaders, each refused once. By stage:

Stage Count
compute 277
pixel 30
mesh 15
vertex 2

By reason, with the converter's per-address prefix stripped:

Reason Count
a select on an untracked mask is not supported 73
a lane mask holding lanes elsewhere read as data is not supported 69
an address in an SGPR that is no root parameter is not supported 35
a structured buffer of unknown stride is not supported 30
an address not from a root parameter is not supported 17
a descriptor read only as data is not supported 15
a 64-bit image atomic is not supported 10
an address from a phi is not supported 8
a scalar memory read as data is not supported 8
a descriptor neither loaded nor built is not supported 8
image_gather4_l is not supported 5
LDS the program does not allocate is not supported 4
everything else (one or two each) 42

The first two families are 142 of 324, and both are mask-tracking rather than new
instructions. That is worth noting against the 64-bit image atomics: on this package the
atomics are 10 shaders, the mask cases are 142.

Frame context while this list was collected

189 draws/frame, dropped 175 (35 being made), 456 indirect
671 draws/frame, dropped 2005 (70 being made), 1122 indirect
384 draws/frame, dropped 488 (3 being made)
peak dropped in one frame across runs: 2023
lowest fps: 0.4

So the drops fall as pipelines finish; what does not recover is the 324 above.

The list

Full hash<TAB>stage<TAB>reason list is available — 324 lines, no game data. Say the word
and I will paste it here or attach it; the hashes are exactly the ones the log prints.

**@⁠rocobalt1** on GitHub · 2026-11-24 06:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7124400779) # Untranslated shaders from one world load, counted by reason (RTX 4060 Ti) This does not answer "which shader costs the most draws" — the log does not attribute dropped draws to a shader — but it does give the population to rank against: every shader that fails to translate in one world load, with the converter's own reason. ## Environment | | | |---|---| | GPU | RTX 4060 Ti, driver 32.0.16.1656, `VICTORY_D3D12_WARP=1` for stability | | Build | `cargo build --release -p victory` @ `d2a4bae` | | Run | one world load, `victory.exe run <game>\game_scarlett_master.exe --execute` | ## Counts **324 distinct shaders**, each refused once. By stage: | Stage | Count | |---|---| | compute | 277 | | pixel | 30 | | mesh | 15 | | vertex | 2 | By reason, with the converter's per-address prefix stripped: | Reason | Count | |---|---| | a select on an untracked mask is not supported | 73 | | a lane mask holding lanes elsewhere read as data is not supported | 69 | | an address in an SGPR that is no root parameter is not supported | 35 | | a structured buffer of unknown stride is not supported | 30 | | an address not from a root parameter is not supported | 17 | | a descriptor read only as data is not supported | 15 | | a 64-bit image atomic is not supported | 10 | | an address from a phi is not supported | 8 | | a scalar memory read as data is not supported | 8 | | a descriptor neither loaded nor built is not supported | 8 | | image_gather4_l is not supported | 5 | | LDS the program does not allocate is not supported | 4 | | everything else (one or two each) | 42 | The first two families are 142 of 324, and both are mask-tracking rather than new instructions. That is worth noting against the 64-bit image atomics: on this package the atomics are 10 shaders, the mask cases are 142. ## Frame context while this list was collected ``` 189 draws/frame, dropped 175 (35 being made), 456 indirect 671 draws/frame, dropped 2005 (70 being made), 1122 indirect 384 draws/frame, dropped 488 (3 being made) peak dropped in one frame across runs: 2023 lowest fps: 0.4 ``` So the drops fall as pipelines finish; what does not recover is the 324 above. ## The list Full `hash<TAB>stage<TAB>reason` list is available — 324 lines, no game data. Say the word and I will paste it here or attach it; the hashes are exactly the ones the log prints.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 06:58 UTC · original

Implemented lowering for both image_sample_d_cl (DXIL opcode 63 with clamp operand) and image_gather4_l/_l_o (DXIL opcode 73) in PR #694. Synthetic unit tests in ictory-shader pass and asset policy is clean.

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7124475433) Implemented lowering for both image_sample_d_cl (DXIL opcode 63 with clamp operand) and image_gather4_l/_l_o (DXIL opcode 73) in PR #694. Synthetic unit tests in ictory-shader pass and asset policy is clean.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 06:54 UTC · original · edited 2026-11-24 06:59 UTC

The full list behind the counts above, as hash<TAB>stage<TAB>reason:

https://gist.github.com/rocobalt1/3f4f2261ebd1058dc55b07fcb945d147

324 lines, no game data: the hashes are the ones the log prints, and the reason is the converter's own string with only the GFX10 code at 0x... offset removed.

**@⁠rocobalt1** on GitHub · 2026-11-24 06:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7124421483) · edited 2026-11-24 06:59 UTC The full list behind the counts above, as `hash<TAB>stage<TAB>reason`: https://gist.github.com/rocobalt1/3f4f2261ebd1058dc55b07fcb945d147 324 lines, no game data: the hashes are the ones the log prints, and the reason is the converter's own string with only the `GFX10 code at 0x...` offset removed.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 06:23 UTC · original · edited 2026-11-24 07:41 UTC

Tester tree, update 3. integration/testers is now 18c2dc4 (was 7670a8a, fast-forward; still on main d2a4bae): https://github.com/r4tedx/VIctory/tree/integration/testers. INTEGRATION.md at its root has all of this in full.

  • What it adds: #493, #483, #206, #469, #459, #454 and #579, each as its own merge commit, and the wave64 stack up to #439's head e6936e3.
  • Why these: with them the tree holds every PR of the set that testers ran in the world without the device removal on three NVIDIA cards (RTX 5080, 3080, 3070; #71, comments 7123097017, 7123060678, 7123087811), except #189. In #189's place it has the wave64 stack (#223, #233, #320, #439, #180). The two change the same lowering and cannot be in one tree.
  • What is known about that swap: Zignixx ran the set with #439 at f653ea4 in #189's place on an RTX 5080 (result on #439): no device removal in a 7-minute run at loop limit 32, draws dropped without a host pipeline 1,470 → 958 per frame, the richest full-size G-buffer target 67.9% covered against 10.5%, frame time 850 → 1,233 ms (slower), presented frame still black. One run per build, their own merge, not this tree.
  • Nobody has run this tree with the title yet. The run that would say most is a diagnostics build with VICTORY_SHADER_LOOP_LIMIT=32, which tells whether the no-hang result holds with the tree's other PRs on top. If it hangs, VICTORY_SKIP_WAVE64=mesh,compute (#579, diagnostics build) is the switch to try next.
  • Dynamic descriptor slots: a capped view heap keeps 262,144 dynamic slots here, not the 65,536 of #336's later commit, because of Zignixx's measurement in the first comment linked above (22–30% of slot requests refused at 65,536, none at 262,144; one run per row). A test holds it.
  • Fixes made while merging (under "Changes made in this branch"): the host copy that a root SRV table views is moved to its read state, as #334 does for root views (#493 was written without #334); #307's per-lane heap index goes through #483's guard.
  • Known failure: #169's test fails on an AMD Radeon integrated GPU, before and after this update; it passes on the RTX 5070.
  • Left out: #189 (as above), #578 (#579's switch does the same on request), #136 (two testers bisected black frames to it, #71).
  • How it was checked: cargo test --workspace on an RTX 5070, 403 passed, 0 failed, 5 ignored; release and diagnostics builds. The title was not used in these tests.

A useful report is the same as before: GPU, driver and Windows build; the variables you set; dropped counts by reason; the device-removal block if there is one; whether the world shows geometry. Counts and messages only.

Update, 06:42 UTC: the head is now 46ca402 (fast-forward from 18c2dc4). One code commit is added, #439's d2189ff (compute selects take lane masks held as numbers), plus a notes line. cargo test --workspace on the RTX 5070: 404 passed, 0 failed, 5 ignored; the title was not used. Everything above still holds.

Update, 06:50 UTC: the head is now f61acfa (fast-forward from 46ca402). It follows #439 to 901eef9: ifBars's fix for loop-carried inputs of console mask joins and its test on every hardware adapter, plus a notes line. cargo test --workspace on the RTX 5070: 405 passed, 0 failed, 5 ignored; the title was not used.

Update, 07:40 UTC: the head is now 3076d0e (fast-forward from f61acfa). It follows #439 to e4d899f: a translator stack overflow on a lane mask copied dword by dword now stops with a reason, and a lane read beside a whole-wave section takes the console flow. The pick conflicted in three small hunks of emit/lower.rs; the resolution is listed in INTEGRATION.md. cargo test --workspace --no-fail-fast on the RTX 5070: 406 passed, 1 failed, 5 ignored; the title was not used. The failure is frame::tests::waits_end_on_ticks_and_count_frames, a load-sensitive 5 ms timing test in victory-gpu that fails intermittently, also without this change.

One caveat for runs of this tree, from a tester's target dumps on #160 (comment, one run per arm): with #160, the draws of this issue's top G-buffer pixel shader 7bdefdfde461f6e3 run and cover the depth and colour targets with near-constant values, not a scene; with #587 on top the targets look like the run without #160. The tree carries #160 and neither #586 nor #587, so expect that here.

AI-assisted

**@⁠r4tedx** on GitHub · 2026-11-24 06:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7123885331) · edited 2026-11-24 07:41 UTC **Tester tree, update 3.** `integration/testers` is now `18c2dc4` (was `7670a8a`, fast-forward; still on `main` `d2a4bae`): https://github.com/r4tedx/VIctory/tree/integration/testers. `INTEGRATION.md` at its root has all of this in full. - **What it adds:** #493, #483, #206, #469, #459, #454 and #579, each as its own merge commit, and the wave64 stack up to #439's head `e6936e3`. - **Why these:** with them the tree holds every PR of the set that testers ran in the world without the device removal on three NVIDIA cards (RTX 5080, 3080, 3070; #71, comments [7123097017](https://git.gtahub.st/github/Marvisak--VIctory/issues/71), [7123060678](https://git.gtahub.st/github/Marvisak--VIctory/issues/71), [7123087811](https://git.gtahub.st/github/Marvisak--VIctory/issues/71)), except #189. In #189's place it has the wave64 stack (#223, #233, #320, #439, #180). The two change the same lowering and cannot be in one tree. - **What is known about that swap:** Zignixx ran the set with #439 at `f653ea4` in #189's place on an RTX 5080 ([result on #439](https://git.gtahub.st/github/Marvisak--VIctory/pulls/439)): no device removal in a 7-minute run at loop limit 32, draws dropped without a host pipeline 1,470 → 958 per frame, the richest full-size G-buffer target 67.9% covered against 10.5%, frame time 850 → 1,233 ms (slower), presented frame still black. One run per build, their own merge, not this tree. - **Nobody has run this tree with the title yet.** The run that would say most is a diagnostics build with `VICTORY_SHADER_LOOP_LIMIT=32`, which tells whether the no-hang result holds with the tree's other PRs on top. If it hangs, `VICTORY_SKIP_WAVE64=mesh,compute` (#579, diagnostics build) is the switch to try next. - **Dynamic descriptor slots:** a capped view heap keeps 262,144 dynamic slots here, not the 65,536 of #336's later commit, because of Zignixx's measurement in the first comment linked above (22–30% of slot requests refused at 65,536, none at 262,144; one run per row). A test holds it. - **Fixes made while merging** (under "Changes made in this branch"): the host copy that a root SRV table views is moved to its read state, as #334 does for root views (#493 was written without #334); #307's per-lane heap index goes through #483's guard. - **Known failure:** #169's test fails on an AMD Radeon integrated GPU, before and after this update; it passes on the RTX 5070. - **Left out:** #189 (as above), #578 (#579's switch does the same on request), #136 (two testers bisected black frames to it, #71). - **How it was checked:** `cargo test --workspace` on an RTX 5070, 403 passed, 0 failed, 5 ignored; release and diagnostics builds. The title was not used in these tests. A useful report is the same as before: GPU, driver and Windows build; the variables you set; dropped counts by reason; the device-removal block if there is one; whether the world shows geometry. Counts and messages only. **Update, 06:42 UTC:** the head is now `46ca402` (fast-forward from `18c2dc4`). One code commit is added, #439's `d2189ff` (compute selects take lane masks held as numbers), plus a notes line. `cargo test --workspace` on the RTX 5070: 404 passed, 0 failed, 5 ignored; the title was not used. Everything above still holds. **Update, 06:50 UTC:** the head is now `f61acfa` (fast-forward from `46ca402`). It follows #439 to `901eef9`: ifBars's fix for loop-carried inputs of console mask joins and its test on every hardware adapter, plus a notes line. `cargo test --workspace` on the RTX 5070: 405 passed, 0 failed, 5 ignored; the title was not used. **Update, 07:40 UTC:** the head is now `3076d0e` (fast-forward from `f61acfa`). It follows #439 to `e4d899f`: a translator stack overflow on a lane mask copied dword by dword now stops with a reason, and a lane read beside a whole-wave section takes the console flow. The pick conflicted in three small hunks of `emit/lower.rs`; the resolution is listed in `INTEGRATION.md`. `cargo test --workspace --no-fail-fast` on the RTX 5070: 406 passed, 1 failed, 5 ignored; the title was not used. The failure is `frame::tests::waits_end_on_ticks_and_count_frames`, a load-sensitive 5 ms timing test in victory-gpu that fails intermittently, also without this change. One caveat for runs of this tree, from a tester's target dumps on #160 ([comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/160), one run per arm): with #160, the draws of this issue's top G-buffer pixel shader `7bdefdfde461f6e3` run and cover the depth and colour targets with near-constant values, not a scene; with #587 on top the targets look like the run without #160. The tree carries #160 and neither #586 nor #587, so expect that here. AI-assisted
Author
Owner

@⁠ghost on GitHub · 2026-11-24 07:49 UTC · original

@⁠r4tedx First title runs of integration/testers, at 7670a8a (before update 3): AMD RDNA4 (RX 9060 XT, Windows 11), diag + DRED, opening cutscene. Base: d2a4bae + #135 + #365 (B), 5 runs.

  • Survival: device lost 251 and 153 s into the world, and 148 s with #591 + #500 and dumps on top (B: 40–94 s). Each time 0x887A0006, the known inside freed texture fault.
  • Refused programs (unique hashes in the runtime log): 178 (B: 372–387).
  • First 60 s in the world, warm cache, host line's own total, top rows from its per-shader lines:
tree B
dropped per frame 1,292 968–1,183
an address in an SGPR that is no root parameter 891 508–739
a descriptor read from the first lane of a phi 306 –
a structured buffer of unknown stride 226 213–241
a descriptor neither loaded nor built – 168–304
  • Picture: world frames black apart from the opening-credit text. Target dumps show #160's full-screen pattern where 7bdefdfde461f6e3 draws (no #587 in the tree).

I'll rerun at 3076d0e.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 07:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7125407618) @⁠r4tedx First title runs of `integration/testers`, at `7670a8a` (before update 3): AMD RDNA4 (RX 9060 XT, Windows 11), `diag` + DRED, opening cutscene. Base: `d2a4bae` + #135 + #365 (B), 5 runs. - **Survival:** device lost 251 and 153 s into the world, and 148 s with #591 + #500 and dumps on top (B: 40–94 s). Each time `0x887A0006`, the known `inside freed texture` fault. - **Refused programs** (unique hashes in the runtime log): 178 (B: 372–387). - **First 60 s in the world**, warm cache, host line's own total, top rows from its per-shader lines: | | tree | B | |---|---|---| | dropped per frame | 1,292 | 968–1,183 | | an address in an SGPR that is no root parameter | 891 | 508–739 | | a descriptor read from the first lane of a phi | 306 | – | | a structured buffer of unknown stride | 226 | 213–241 | | a descriptor neither loaded nor built | – | 168–304 | - **Picture:** world frames black apart from the opening-credit text. Target dumps show #160's full-screen pattern where `7bdefdfde461f6e3` draws (no #587 in the tree). I'll rerun at `3076d0e`. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

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

@⁠nullmarsh thank you, this is the first run of the tree with the title, and the table says where to go next.

The tree moved while you were writing: integration/testers is now 2b1a569 (update 4), not 3076d0e. If you rerun, that is the head to take, because of your second row:

  • a descriptor read from the first lane of a phi, 306 per frame. Update 4 adds #566 at 6c63dea (and the rest of #307), which is aimed at exactly this reason. What is verified is synthetic only: its tests pass in the tree on an RTX 5070 and WARP. Whether those programs then run, or stop at a later reason, is what your rerun would show; nobody has measured it in the title.
  • an address in an SGPR that is no root parameter, 891 per frame. Nothing in the tree addresses it yet. #302 is left out on purpose and its follow-up #489 and #294 are not in; each conflicts with the tree (#489 in one file, #294 in five) and neither is merged into it yet.
  • a structured buffer of unknown stride, 226 per frame. Also not addressed: #193 is left out (its raw-handle read returns 0 on NVIDIA), and #704 on top of it is not in the tree yet.
  • #160's full-screen pattern at 7bdefdfde461f6e3: #587 is not in the tree. It has not been reviewed for it yet.

Update 4 also brings the wave64 stack to #439's 055aef9. INTEGRATION.md at the root has the details, including one thing you should know before trusting the tree's own tests: on the integration machine the shader GPU tests are not stable when run together (11 of 14 runs passed; one stalled and in one the driver removed the device under tests that were already in the tree). Those are test programs, not the title.

The longer survival (153 to 251 s against 40 to 94 s) with the same 0x887A0006 fault is useful to have on record. I have no explanation for it and am not claiming the tree fixes anything there.

The title was not used in the tests behind this update; the per-frame numbers above are yours. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 08:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7126028856) @⁠nullmarsh thank you, this is the first run of the tree with the title, and the table says where to go next. The tree moved while you were writing: `integration/testers` is now `2b1a569` (update 4), not `3076d0e`. If you rerun, that is the head to take, because of your second row: - **`a descriptor read from the first lane of a phi`, 306 per frame.** Update 4 adds #566 at `6c63dea` (and the rest of #307), which is aimed at exactly this reason. What is verified is synthetic only: its tests pass in the tree on an RTX 5070 and WARP. Whether those programs then run, or stop at a later reason, is what your rerun would show; nobody has measured it in the title. - **`an address in an SGPR that is no root parameter`, 891 per frame.** Nothing in the tree addresses it yet. #302 is left out on purpose and its follow-up #489 and #294 are not in; each conflicts with the tree (#489 in one file, #294 in five) and neither is merged into it yet. - **`a structured buffer of unknown stride`, 226 per frame.** Also not addressed: #193 is left out (its raw-handle read returns 0 on NVIDIA), and #704 on top of it is not in the tree yet. - **#160's full-screen pattern at `7bdefdfde461f6e3`:** #587 is not in the tree. It has not been reviewed for it yet. Update 4 also brings the wave64 stack to #439's `055aef9`. `INTEGRATION.md` at the root has the details, including one thing you should know before trusting the tree's own tests: on the integration machine the shader GPU tests are not stable when run together (11 of 14 runs passed; one stalled and in one the driver removed the device under tests that were already in the tree). Those are test programs, not the title. The longer survival (153 to 251 s against 40 to 94 s) with the same `0x887A0006` fault is useful to have on record. I have no explanation for it and am not claiming the tree fixes anything there. The title was not used in the tests behind this update; the per-frame numbers above are yours. AI-assisted.
Author
Owner

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

For anyone running the title: I have put the open PRs that passed a build-and-test review into one tree, so fixes can be measured together instead of one PR at a time.

Branch: integration/testers at https://github.com/r4tedx/VIctory/tree/integration/testers (head 2b1a569 since 08:20 UTC, update 4. The list below describes 7670a8a (update 2); update 3 and update 4 say what changed since, and INTEGRATION.md is current). INTEGRATION.md at its root lists everything below in full.

  • What it is: 49 open PRs merged one by one (git log --first-parent shows each), so any of them can be reverted or left out. It is not a release, and the maintainer has not reviewed any of it.
  • How it was checked: each PR was built and its tests run on an RTX 5070 before inclusion; the combined tree passes cargo test --workspace (388 passed at 7670a8a) and builds in release and diagnostics. I have not run it against the title, so nobody has run this tree with it yet. It makes no claim about results in the title.
  • What is in it: the buffer-state tracker for the vertex-buffer-in-UAV-state errors of #199 / #264 (#334), descriptor pool and table fixes (#336, #251, #365, #205, #123, #86, #83), pipeline cache fixes (#275, #347, #352, #358), textures and presentation (#89, #331, #211, #260), instruction PRs that match AMD's ISA reference (#48, #25, #169, #276, #168, #110, #154, #98), descriptor tracking and validator fixes (#307, #309, #306, #333, #105, #288, #343, #353, #326, #259, #179, #176, #226, #286), image sampling (#160, which clears the image_sample_d_cl and image_gather4_l rows here on the title's shaders, measured by EduAzevedo), depth bounds (#158), wave64 on 32-lane hosts (#223, #233, #320, #439 with peter-bonanni's whole-wave-section commit, and #180 for compute samples; the modules that failed validation and kept #320 / #439 as drafts were compute image_sample, which #180 fixes), and a test-hang fix (#433).
  • What is left out, and why: PRs where the review found a defect (each has a note on its own thread: #302, #193, #136, #317, #269, #318, #138, #332, #342, #305, #360, #200, #282, #301, #55, #184, #174, #321, #242) and a draft (#185).
  • What it is not expected to fix: the hang itself (in-game runs of #334 still end in DEVICE_HUNG), the top rows of this table (#302 and #307's follow-ups are what address those; #307 is in, #302 is not until its fix lands), and faults on textures the title freed earlier.

A report that would help most, counts and messages only: GPU, driver and Windows build; the drop summary by reason, in this table's form; victory translate --validate --pipelines --list counts (created / refused / failing validation); the device-removal block from crashes.log if there is one; and whether the world shows geometry. If the tree is worse than main anywhere, git log --first-parent and a bisect over the merges will name the PR.

I will keep the branch updated as PRs are fixed, and note changes in INTEGRATION.md.

Update, 05:10 UTC: the branch moved to 7670a8a: the whole wave64 stack and #180 are in (testers measured 70 of 119 driver-refused compute programs running on an RTX 5070 Ti with that stack, nothing lost against main; image results not checked). One thing to check first on this head: compute samples now take the console's quads, so a wave64 compute program that samples, uses LDS and has more than 64 threads may be refused on a 32-lane host where the earlier head translated it. INTEGRATION.md has the details. Not in yet: real queries (#159) on the state tracker, the s_buffer descriptor-read part of #136, and an opt-in diagnostic for passes that read what a dropped pass would have written.

**@⁠r4tedx** on GitHub · 2026-11-24 04:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7121877273) · edited 2026-11-24 08:28 UTC For anyone running the title: I have put the open PRs that passed a build-and-test review into one tree, so fixes can be measured together instead of one PR at a time. **Branch:** `integration/testers` at https://github.com/r4tedx/VIctory/tree/integration/testers (head `2b1a569` since 08:20 UTC, update 4. The list below describes `7670a8a` (update 2); [update 3](https://git.gtahub.st/github/Marvisak--VIctory/issues/293) and [update 4](https://git.gtahub.st/github/Marvisak--VIctory/issues/293) say what changed since, and `INTEGRATION.md` is current). `INTEGRATION.md` at its root lists everything below in full. - **What it is:** 49 open PRs merged one by one (`git log --first-parent` shows each), so any of them can be reverted or left out. It is not a release, and the maintainer has not reviewed any of it. - **How it was checked:** each PR was built and its tests run on an RTX 5070 before inclusion; the combined tree passes `cargo test --workspace` (388 passed at `7670a8a`) and builds in release and diagnostics. I have not run it against the title, so **nobody has run this tree with it yet**. It makes no claim about results in the title. - **What is in it:** the buffer-state tracker for the vertex-buffer-in-UAV-state errors of #199 / #264 (#334), descriptor pool and table fixes (#336, #251, #365, #205, #123, #86, #83), pipeline cache fixes (#275, #347, #352, #358), textures and presentation (#89, #331, #211, #260), instruction PRs that match AMD's ISA reference (#48, #25, #169, #276, #168, #110, #154, #98), descriptor tracking and validator fixes (#307, #309, #306, #333, #105, #288, #343, #353, #326, #259, #179, #176, #226, #286), image sampling (#160, which clears the `image_sample_d_cl` and `image_gather4_l` rows here on the title's shaders, measured by EduAzevedo), depth bounds (#158), wave64 on 32-lane hosts (#223, #233, #320, #439 with peter-bonanni's whole-wave-section commit, and #180 for compute samples; the modules that failed validation and kept #320 / #439 as drafts were compute `image_sample`, which #180 fixes), and a test-hang fix (#433). - **What is left out, and why:** PRs where the review found a defect (each has a note on its own thread: #302, #193, #136, #317, #269, #318, #138, #332, #342, #305, #360, #200, #282, #301, #55, #184, #174, #321, #242) and a draft (#185). - **What it is not expected to fix:** the hang itself (in-game runs of #334 still end in DEVICE_HUNG), the top rows of this table (#302 and #307's follow-ups are what address those; #307 is in, #302 is not until its fix lands), and faults on textures the title freed earlier. A report that would help most, counts and messages only: GPU, driver and Windows build; the drop summary by reason, in this table's form; `victory translate --validate --pipelines --list` counts (created / refused / failing validation); the device-removal block from `crashes.log` if there is one; and whether the world shows geometry. If the tree is worse than `main` anywhere, `git log --first-parent` and a bisect over the merges will name the PR. I will keep the branch updated as PRs are fixed, and note changes in `INTEGRATION.md`. **Update, 05:10 UTC:** the branch moved to `7670a8a`: the whole wave64 stack and #180 are in (testers measured 70 of 119 driver-refused compute programs running on an RTX 5070 Ti with that stack, nothing lost against `main`; image results not checked). One thing to check first on this head: compute samples now take the console's quads, so a wave64 compute program that samples, uses LDS and has more than 64 threads may be refused on a 32-lane host where the earlier head translated it. `INTEGRATION.md` has the details. Not in yet: real queries (#159) on the state tracker, the `s_buffer` descriptor-read part of #136, and an opt-in diagnostic for passes that read what a dropped pass would have written.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 08:41 UTC · original · edited 2026-11-24 08:48 UTC

First title run of integration/testers at 2b1a569 (update 4), as asked. Counts and messages only.

Environment: RTX 4060 Ti 8 GB (driver 32.0.16.1656, wave32), Ryzen 9 5900X, Windows 11 Pro 26200. diag profile with --features diagnostics. Variables: VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1.

One thing to subtract when comparing with @⁠nullmarsh: this machine has TdrDelay=60 (set before all runs today, HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers), not the default 2 s. Survival here is therefore not directly comparable to the 153-251 s at 7670a8a.

Survival

Device removed 517 s after start (8m37) with 0x887A0006, after a submission of 1 list.

host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list)
["2/2 None", "31/31 None", ..., "20/20 Some(0)", ...];
device removed: The GPU will not respond to more commands ... (0x887A0006)

Breadcrumbs exist on this head (on main the same failure said "no breadcrumbs"), but 500+ entries read None; the only named one is 20/20 Some(0). So a run with VICTORY_D3D12_DEBUG=1 is still the way to name the command - the breadcrumbs alone do not.

Refused programs

169 unique hashes (at 7670a8a @⁠nullmarsh saw 178): compute 137, mesh 19, pixel 9, vertex 4.

Reason Programs
a structured buffer of unknown stride is not supported 35
an address in an SGPR that is no root parameter is not supported 35
console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported 25
a scalar memory read as data is not supported 19
an address not from a root parameter is not supported 17
an address from a phi is not supported 8
a lane mask read as data is not supported 5
a descriptor read from the first lane of computed VGPRs is not supported 4

The 25 console wave64 lanes in a group of more than 64 threads are the caveat INTEGRATION.md warned about for this head, and they are real on this 32-lane host: they did not appear in the same run's shape at 7670a8a.

Dropped per frame

Last report before the removal: 509 draws/frame, dropped 1213 without a host pipeline (537 being made), 499 indirect, 0.4 fps, 2636 ms/frame.

Picture

The opening-credit text and several animal artworks with their patterns (a serpent, a flamingo and others), on black, from the moment they appear until the removal. The 3D scene behind them never appears, and it is not a still frame: the credits and the artwork keep drawing until the device goes. So a textured 2D element of that size decodes and uploads on this head - what fails is the 3D scene, not 2D texture data.

I can rerun at a later head or with VICTORY_D3D12_DEBUG=1 on request; I will also revert TdrDelay to the default and repeat if that comparison is more useful.

**@⁠rocobalt1** on GitHub · 2026-11-24 08:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7126449865) · edited 2026-11-24 08:48 UTC First title run of `integration/testers` at **`2b1a569`** (update 4), as asked. Counts and messages only. **Environment:** RTX 4060 Ti 8 GB (driver 32.0.16.1656, wave32), Ryzen 9 5900X, Windows 11 Pro 26200. `diag` profile with `--features diagnostics`. Variables: `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`. **One thing to subtract when comparing with @⁠nullmarsh:** this machine has `TdrDelay=60` (set before all runs today, `HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers`), not the default 2 s. Survival here is therefore not directly comparable to the 153-251 s at `7670a8a`. ## Survival Device removed **517 s** after start (8m37) with `0x887A0006`, after **a submission of 1 list**. ``` host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) ["2/2 None", "31/31 None", ..., "20/20 Some(0)", ...]; device removed: The GPU will not respond to more commands ... (0x887A0006) ``` Breadcrumbs exist on this head (on `main` the same failure said "no breadcrumbs"), but 500+ entries read `None`; the only named one is `20/20 Some(0)`. So a run with `VICTORY_D3D12_DEBUG=1` is still the way to name the command - the breadcrumbs alone do not. ## Refused programs **169 unique hashes** (at `7670a8a` @⁠nullmarsh saw 178): compute 137, mesh 19, pixel 9, vertex 4. | Reason | Programs | |---|---| | a structured buffer of unknown stride is not supported | 35 | | an address in an SGPR that is no root parameter is not supported | 35 | | console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported | **25** | | a scalar memory read as data is not supported | 19 | | an address not from a root parameter is not supported | 17 | | an address from a phi is not supported | 8 | | a lane mask read as data is not supported | 5 | | a descriptor read from the first lane of computed VGPRs is not supported | 4 | The 25 `console wave64 lanes in a group of more than 64 threads` are the caveat `INTEGRATION.md` warned about for this head, and they are real on this 32-lane host: they did not appear in the same run's shape at `7670a8a`. ## Dropped per frame Last report before the removal: **509 draws/frame, dropped 1213 without a host pipeline (537 being made), 499 indirect**, 0.4 fps, 2636 ms/frame. ## Picture The opening-credit text and several animal artworks with their patterns (a serpent, a flamingo and others), on black, from the moment they appear until the removal. The 3D scene behind them never appears, and it is not a still frame: the credits and the artwork keep drawing until the device goes. So a textured 2D element of that size decodes and uploads on this head - what fails is the 3D scene, not 2D texture data. I can rerun at a later head or with `VICTORY_D3D12_DEBUG=1` on request; I will also revert `TdrDelay` to the default and repeat if that comparison is more useful.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 08:52 UTC · original

@⁠rocobalt1 thank you. This is the first run of the tree on an NVIDIA card, and the reason table by program is exactly what was missing. The TdrDelay=60 note is understood: 517 s here and 153 to 251 s on @⁠nullmarsh's card are not the same measurement.

Reading your table against what the tree holds:

  • console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves, 25 programs. This is not something update 4 broke. The reason is only raised for hosts whose waves are 32 lanes, as its text says, so it belongs to your card; @⁠nullmarsh's run was on an AMD card, and their table did not list it. The wave64 work in the tree runs console wave64 compute on 32-lane hosts for groups of up to 64 threads. Larger groups are the known remainder. There is work in progress on them that is not in the tree. If INTEGRATION.md reads as if this head had fixed or newly caused it, tell me which sentence and I will correct it.
  • a structured buffer of unknown stride, 35, and an address in an SGPR that is no root parameter, 35. Not addressed in the tree, as in my reply above: #704 (on #193) and #489 / #294 are not merged into it yet.
  • a scalar memory read as data, 19. Nothing in the tree addresses it.
  • a descriptor read from the first lane of a phi is absent from your list. At 7670a8a it was 306 dropped draws per frame in @⁠nullmarsh's run. Update 4 added #566 for it, so its absence here is the first sign from the title that those programs now get past that reason. Two different cards, and your table covers 148 of the 169 programs, so it is a sign, not a comparison; if that reason is among the other 21, please say so. a descriptor read from the first lane of computed VGPRs, 4, is the reason some of them reach next.

The device removal. A removal after a submission of one list, with breadcrumbs that are almost all None, is still the failure nobody has named a command for. So yes, please: the run with VICTORY_D3D12_DEBUG=1, on the same head and with the same TdrDelay, so it can be set beside this one. What would help most from it is the first debug-layer message before the removal, and whether the removal still comes. Reverting TdrDelay is the less useful of your two offers.

On the head: the tree is at 92bc27b now. The only difference from 2b1a569 is #453 (pixel barycentrics) with a small fix, so there is no need to move for the debug-layer run; just say which head you built.

Your note on the picture matches @⁠nullmarsh's: the credit text and the 2D artwork draw until the device goes, and the 3D scene never appears. Nothing in the tree is claimed to fix that.

The title was not used in the tests behind the tree's updates; the numbers above are yours and @⁠nullmarsh's. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 08:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7126664977) @⁠rocobalt1 thank you. This is the first run of the tree on an NVIDIA card, and the reason table by program is exactly what was missing. The `TdrDelay=60` note is understood: 517 s here and 153 to 251 s on @⁠nullmarsh's card are not the same measurement. Reading your table against what the tree holds: - **`console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves`, 25 programs.** This is not something update 4 broke. The reason is only raised for hosts whose waves are 32 lanes, as its text says, so it belongs to your card; @⁠nullmarsh's run was on an AMD card, and their table did not list it. The wave64 work in the tree runs console wave64 compute on 32-lane hosts for groups of up to 64 threads. Larger groups are the known remainder. There is work in progress on them that is not in the tree. If `INTEGRATION.md` reads as if this head had fixed or newly caused it, tell me which sentence and I will correct it. - **`a structured buffer of unknown stride`, 35, and `an address in an SGPR that is no root parameter`, 35.** Not addressed in the tree, as in my reply above: #704 (on #193) and #489 / #294 are not merged into it yet. - **`a scalar memory read as data`, 19.** Nothing in the tree addresses it. - **`a descriptor read from the first lane of a phi` is absent from your list.** At `7670a8a` it was 306 dropped draws per frame in @⁠nullmarsh's run. Update 4 added #566 for it, so its absence here is the first sign from the title that those programs now get past that reason. Two different cards, and your table covers 148 of the 169 programs, so it is a sign, not a comparison; if that reason is among the other 21, please say so. `a descriptor read from the first lane of computed VGPRs`, 4, is the reason some of them reach next. **The device removal.** A removal after a submission of one list, with breadcrumbs that are almost all `None`, is still the failure nobody has named a command for. So yes, please: the run with `VICTORY_D3D12_DEBUG=1`, on the same head and with the same `TdrDelay`, so it can be set beside this one. What would help most from it is the first debug-layer message before the removal, and whether the removal still comes. Reverting `TdrDelay` is the less useful of your two offers. On the head: the tree is at `92bc27b` now. The only difference from `2b1a569` is #453 (pixel barycentrics) with a small fix, so there is no need to move for the debug-layer run; just say which head you built. Your note on the picture matches @⁠nullmarsh's: the credit text and the 2D artwork draw until the device goes, and the 3D scene never appears. Nothing in the tree is claimed to fix that. The title was not used in the tests behind the tree's updates; the numbers above are yours and @⁠nullmarsh's. AI-assisted.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:04 UTC · original

Answering the two questions, then the debug-layer run.

a descriptor read from the first lane of a phi is absent, and here is the complete reason table for the run at 2b1a569 (169 programs, 19 reasons, nothing omitted):

Reason Programs
a structured buffer of unknown stride is not supported 35
an address in an SGPR that is no root parameter is not supported 35
console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported 25
a scalar memory read as data is not supported 19
an address not from a root parameter is not supported 17
an address from a phi is not supported 8
a lane mask read as data is not supported 5
a descriptor read from the first lane of computed VGPRs is not supported 4
barycentrics read directly is not supported 4
a hardware SGPR input is not supported 3
a lane mask holding lanes elsewhere read as data is not supported 2
a program the console structure cannot hold is not supported 2
a packed input half no element holds is not supported 2
a descriptor neither loaded nor built is not supported 2
an LDS write of bytes or halves is not supported 2
an opaque lane mask is not supported 1
a descriptor partly joined by control flow is not supported 1
a descriptor chosen by control flow is not supported 1
a whole-wave section of a wave64 on a host without 64-lane waves is not supported 1

So the reason #566 targets is not among the 21 the earlier table left out; what its programs reach next is a descriptor read from the first lane of computed VGPRs (4) and an address from a phi (8), which are different reasons.

On @⁠andrewpozdnakov7-jpg's meter note: this table is not from Meter. These are the translator's own does not translate lines, one per shader hash, so the 1 s / 5 s drain cannot drop a program from it. Only the "dropped 1213 per frame" figure in my previous comment comes from the meter, and that one should be read with their caveat.

Debug-layer run: building 2b1a569 with VICTORY_D3D12_DEBUG=1 now, same TdrDelay=60, same package. I will report the first debug-layer message before the removal and whether the removal still happens.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7126927154) Answering the two questions, then the debug-layer run. **`a descriptor read from the first lane of a phi` is absent**, and here is the complete reason table for the run at `2b1a569` (169 programs, 19 reasons, nothing omitted): | Reason | Programs | |---|---| | a structured buffer of unknown stride is not supported | 35 | | an address in an SGPR that is no root parameter is not supported | 35 | | console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported | 25 | | a scalar memory read as data is not supported | 19 | | an address not from a root parameter is not supported | 17 | | an address from a phi is not supported | 8 | | a lane mask read as data is not supported | 5 | | a descriptor read from the first lane of computed VGPRs is not supported | 4 | | barycentrics read directly is not supported | 4 | | a hardware SGPR input is not supported | 3 | | a lane mask holding lanes elsewhere read as data is not supported | 2 | | a program the console structure cannot hold is not supported | 2 | | a packed input half no element holds is not supported | 2 | | a descriptor neither loaded nor built is not supported | 2 | | an LDS write of bytes or halves is not supported | 2 | | an opaque lane mask is not supported | 1 | | a descriptor partly joined by control flow is not supported | 1 | | a descriptor chosen by control flow is not supported | 1 | | a whole-wave section of a wave64 on a host without 64-lane waves is not supported | 1 | So the reason #566 targets is not among the 21 the earlier table left out; what its programs reach next is `a descriptor read from the first lane of computed VGPRs` (4) and `an address from a phi` (8), which are different reasons. On @⁠andrewpozdnakov7-jpg's meter note: this table is not from `Meter`. These are the translator's own `does not translate` lines, one per shader hash, so the 1 s / 5 s drain cannot drop a program from it. Only the "dropped 1213 per frame" figure in my previous comment comes from the meter, and that one should be read with their caveat. **Debug-layer run:** building `2b1a569` with `VICTORY_D3D12_DEBUG=1` now, same `TdrDelay=60`, same package. I will report the first debug-layer message before the removal and whether the removal still happens.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-24 08:58 UTC · original · edited 2026-11-24 09:16 UTC

The per-shader drop summary can miss entire bursts. In Meter::frame, the total, indirect and per-reason counters are drained on the roughly one-second caption sample, before the separate five-second log gate. This is present on the d2a4bae baseline used in this thread and in main at 58fed37. The detailed copy counters already use the full reporting interval after #87. Meter code

The proposed change drains report counters only when a report is emitted and uses every presentation since the previous report as the denominator. The caption has its own sample. In a CPU model with 2, 3, 5, 1 and 4 frames and 90 drops in the first sample, the old summary missed the burst. The revised summary averaged 6 drops per frame over 15 frames. The omitted intervals cannot be recovered from historical summary lines.

Windows follow-up on 8e79c80 (Rust 1.98.1, MSVC, diagnostics). The same regression ran once on the baseline and once with the patch. On the baseline, the caption sample emptied the pending shader-drop counter before the report. With the patch, it preserved the counter. A separate test of the patched report boundary passed and confirmed that the report drains the counter and resets the report frame count. Both checks used synthetic input without a D3D12 device or title files.

This applies to the per-frame counts from Meter. The translator emits its own does not translate lines independently.

AI-assisted source review and CPU/Windows checks.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-24 08:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7126801175) · edited 2026-11-24 09:16 UTC The per-shader drop summary can miss entire bursts. In `Meter::frame`, the total, indirect and per-reason counters are drained on the roughly one-second caption sample, before the separate five-second log gate. This is present on the `d2a4bae` baseline used in this thread and in main at `58fed37`. The detailed copy counters already use the full reporting interval after #87. [Meter code](https://github.com/Marvisak/VIctory/blob/58fed3704f72c49f48a18c013b4910986168a9ef/crates/victory-gpu/src/host.rs#L1493-L1548) The proposed change drains report counters only when a report is emitted and uses every presentation since the previous report as the denominator. The caption has its own sample. In a CPU model with 2, 3, 5, 1 and 4 frames and 90 drops in the first sample, the old summary missed the burst. The revised summary averaged 6 drops per frame over 15 frames. The omitted intervals cannot be recovered from historical summary lines. **Windows follow-up on `8e79c80` (Rust 1.98.1, MSVC, diagnostics).** The same regression ran once on the baseline and once with the patch. On the baseline, the caption sample emptied the pending shader-drop counter before the report. With the patch, it preserved the counter. A separate test of the patched report boundary passed and confirmed that the report drains the counter and resets the report frame count. Both checks used synthetic input without a D3D12 device or title files. This applies to the per-frame counts from `Meter`. The translator emits its own `does not translate` lines independently. AI-assisted source review and CPU/Windows checks.
Author
Owner

@⁠cdomergue on GitHub · 2026-11-24 09:09 UTC · original · edited 2026-11-24 09:26 UTC

I replayed 2,026 shader containers recovered by hash from a Series S intro trace on an RTX 4070 SUPER (title 1.0.2.1). Both mesh shaders at the top of this issue were bound at frame 1058 in that trace. I used the same files and the same Windows DXIL validator (dxil.dll 1.9.2602.17) for all three offline runs.

Translator revision Validated programs 910b4be059bfb28f 321d411b20a35ef9
#307 at 6285e19 1,668 first-lane phi at 0x2830 first-lane phi at 0x2570
#566 at 6c63dea 1,668 scalar memory read at 0x1098 scalar memory read at 0xdf0
Same revision + the first three emit/lower.rs hunks of #136 commit 8ae232f 1,685 validated validated

On #566 alone, all 13 programs that previously stopped at the first-lane phi still failed translation. Eight moved to a scalar memory read, four to a descriptor from computed VGPRs, and one to a descriptor partly joined by control flow.

I traced the eight scalar refusals through descriptor_data. In each case its selected consumer was s_buffer_load_dword on a table SRV with declared stride 80. For the first mesh shader, the descriptor load and consumer were at 0xec0 and 0xee4. For the second they were at 0xc18 and 0xc3c. The selected #136 hunks made all eight pass validation. This connects the per-hash ranking here to the earlier structured-view measurements on #136.

The 17 additional passes are on this trace sample. All 1,668 previous passes still validated, but 1,295 of those outputs changed their DXIL digest. The existing first-boot rendering regression report matters when testing this change. The next measurement I would prioritize is whether the two named mesh pipelines are actually created and their draws reach the host, with the start screen as a visual control. The replay measured translation and validation only.

AI-assisted with OpenAI Codex.

I ran these checks to help narrow down the next test. If updates like this get in the way, just let me know and I'll leave the thread to you.

Nov 24 update — in-game test on RTX 4070 SUPER. The game created both mesh pipelines with its own pixel shaders. VIctory recorded at least 2,048 ExecuteIndirect commands for 910b4be059bfb28f and 1,024 for 321d411b20a35ef9. Loading artwork and subtitles were visible, but the 3D scene stayed black. The run ended with DXGI_ERROR_DEVICE_HUNG about 50 seconds after the first dense 3D frame. This confirms pipeline creation and command recording for both shaders. Whether those draws wrote any pixels to an intermediate render target is still open.

**@⁠cdomergue** on GitHub · 2026-11-24 09:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127033571) · edited 2026-11-24 09:26 UTC I replayed 2,026 shader containers recovered by hash from a Series S intro trace on an RTX 4070 SUPER (title 1.0.2.1). Both mesh shaders at the top of this issue were bound at frame 1058 in that trace. I used the same files and the same Windows DXIL validator (dxil.dll 1.9.2602.17) for all three offline runs. | Translator revision | Validated programs | `910b4be059bfb28f` | `321d411b20a35ef9` | |---|---:|---|---| | #307 at `6285e19` | 1,668 | first-lane phi at `0x2830` | first-lane phi at `0x2570` | | #566 at `6c63dea` | 1,668 | scalar memory read at `0x1098` | scalar memory read at `0xdf0` | | Same revision + the first three `emit/lower.rs` hunks of #136 commit `8ae232f` | 1,685 | validated | validated | On #566 alone, all 13 programs that previously stopped at the first-lane phi still failed translation. Eight moved to a scalar memory read, four to a descriptor from computed VGPRs, and one to a descriptor partly joined by control flow. I traced the eight scalar refusals through `descriptor_data`. In each case its selected consumer was `s_buffer_load_dword` on a table SRV with declared stride 80. For the first mesh shader, the descriptor load and consumer were at `0xec0` and `0xee4`. For the second they were at `0xc18` and `0xc3c`. The selected #136 hunks made **all eight** pass validation. This connects the per-hash ranking here to the [earlier structured-view measurements on #136](https://git.gtahub.st/github/Marvisak--VIctory/pulls/136). The 17 additional passes are on this trace sample. All 1,668 previous passes still validated, but 1,295 of those outputs changed their DXIL digest. The existing [first-boot rendering regression report](https://git.gtahub.st/github/Marvisak--VIctory/pulls/136) matters when testing this change. The next measurement I would prioritize is whether the two named mesh pipelines are actually created and their draws reach the host, with the start screen as a visual control. The replay measured translation and validation only. AI-assisted with OpenAI Codex. I ran these checks to help narrow down the next test. If updates like this get in the way, just let me know and I'll leave the thread to you. **Nov 24 update — in-game test on RTX 4070 SUPER.** The game created both mesh pipelines with its own pixel shaders. VIctory recorded at least 2,048 `ExecuteIndirect` commands for `910b4be059bfb28f` and 1,024 for `321d411b20a35ef9`. Loading artwork and subtitles were visible, but the 3D scene stayed black. The run ended with `DXGI_ERROR_DEVICE_HUNG` about 50 seconds after the first dense 3D frame. This confirms pipeline creation and command recording for both shaders. Whether those draws wrote any pixels to an intermediate render target is still open.
Author
Owner

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

@⁠r4tedx On AMD, updates 3 and 4 don't get far enough for the measurements above. From the tree's #483 merge (7ef2c41) on, the title dies seconds into the world with an unhandled 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8), inside a D3D12 call into AMD's driver (stack victory.exe → D3D12Core → amdxc64). RX 9060 XT, driver 32.0.32029.2010 (amdxc64.dll 8.18.10.0514), diag.

  • Bisect over the first-parent merges 7670a8a..3076d0e, own shader cache per step, one run each: 41c98fa (#493) ran 147 s in the world without it. 7ef2c41 crashed 2 s in, and so did the later 454cee9 and d3bf14e.
  • Heads, all with #500: 3076d0e 1 of 1 runs, 2b1a569 3 of 3 (one with #587, one with a shader skipped).
  • 3076d0e with 7ef2c41 reverted: no crash, 154 s in the world to my limit.

That merge was hand-resolved and also routes #307's fetched_index through heap_guard, so I can't tell whether #483 itself or the merge causes it; #483 alone conflicts with my base. 92bc27b still carries the merge. Pointer on #483.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 09:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127440690) @⁠r4tedx On AMD, updates 3 and 4 don't get far enough for the measurements above. From the tree's #483 merge (`7ef2c41`) on, the title dies seconds into the world with an unhandled `0xc0000005` at `amdxc64.dll+0x861b9f` (read `0x8`), inside a D3D12 call into AMD's driver (stack `victory.exe` → `D3D12Core` → `amdxc64`). RX 9060 XT, driver 32.0.32029.2010 (`amdxc64.dll` 8.18.10.0514), `diag`. - **Bisect** over the first-parent merges `7670a8a..3076d0e`, own shader cache per step, one run each: `41c98fa` (#493) ran 147 s in the world without it. `7ef2c41` crashed 2 s in, and so did the later `454cee9` and `d3bf14e`. - **Heads, all with #500:** `3076d0e` 1 of 1 runs, `2b1a569` 3 of 3 (one with #587, one with a shader skipped). - **`3076d0e` with `7ef2c41` reverted:** no crash, 154 s in the world to my limit. That merge was hand-resolved and also routes #307's `fetched_index` through `heap_guard`, so I can't tell whether #483 itself or the merge causes it; #483 alone conflicts with my base. `92bc27b` still carries the merge. Pointer on #483. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:27 UTC · original

Ranked per-shader drop table from the title, which the issue asks for. Same run as my previous comment (2b1a569, diag, VICTORY_SHADER_LOOP_LIMIT=32, TdrDelay=60), still running at the opening cutscene when this was collected. The per-shader dropped N/frame without a host pipeline: <stage> <hash> lines exist in this build; my earlier comment's table came from the translator's per-shader refusals, this one from the meter, so @⁠andrewpozdnakov7-jpg's caveat applies to the numbers here.

125 distinct shaders were dropping draws, 2 093 draws/frame in total. Top 15 by the last reported value per shader:

Dropped/frame Stage Hash
335 mesh 910b4be059bfb28f
219 mesh 321d411b20a35ef9
196 compute e30970f1727063fd
92 compute 3b90165a77d95cdf
91 compute 28918b7150a7aad5
60 compute c42a31951201f9a0
60 compute 5279ae36796c31fc
60 compute 5062bc7a48e842f8
53 mesh 235e56869c1ea883
35 pixel 2d0cace65bc05bb2
32 vertex 6afab03d484fdba3
31 mesh fe660f2d6d57de76
31 compute 098fc28e44347a00
31 mesh 4ee6e34d8e008c63
30 mesh 903776ba469c8bac

Two things worth reading out of it:

  1. The two most expensive are mesh depth-skinning. 910b4be059bfb28f and 321d411b20a35ef9 are the two MSNC_VS_LinearDepthSkinΓǪ hashes that @⁠Mesrine67 mapped earlier to a descriptor neither loaded or built, which is the reason #307's follow-up addresses. They cost 554 draws/frame together, a quarter of the total.
  2. The top compute one is e30970f1727063fd, which the same list maps to CS_ComputeImposterTransform and a structured buffer of unknown stride - the #193 / #704 row. 196 draws/frame.

So the ranking says: after #566, the largest single win left is the mesh descriptor-phi follow-up, not the shader-instruction PRs.

Picture at this point: the intro's cards render with their text, the opening cutscene (Lucia's prison scene) plays its dialogue over a black picture, and the run has since reached the first interactive prompt ("Move around" / "Move the camera", L/R). So gameplay logic and its UI reach the player; only the 3D world is missing.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127443629) **Ranked per-shader drop table from the title**, which the issue asks for. Same run as my previous comment (`2b1a569`, diag, `VICTORY_SHADER_LOOP_LIMIT=32`, `TdrDelay=60`), still running at the opening cutscene when this was collected. The per-shader `dropped N/frame without a host pipeline: <stage> <hash>` lines exist in this build; my earlier comment's table came from the translator's per-shader refusals, this one from the meter, so @⁠andrewpozdnakov7-jpg's caveat applies to the numbers here. **125 distinct shaders were dropping draws, 2 093 draws/frame in total.** Top 15 by the last reported value per shader: | Dropped/frame | Stage | Hash | |---|---|---| | 335 | mesh | `910b4be059bfb28f` | | 219 | mesh | `321d411b20a35ef9` | | 196 | compute | `e30970f1727063fd` | | 92 | compute | `3b90165a77d95cdf` | | 91 | compute | `28918b7150a7aad5` | | 60 | compute | `c42a31951201f9a0` | | 60 | compute | `5279ae36796c31fc` | | 60 | compute | `5062bc7a48e842f8` | | 53 | mesh | `235e56869c1ea883` | | 35 | pixel | `2d0cace65bc05bb2` | | 32 | vertex | `6afab03d484fdba3` | | 31 | mesh | `fe660f2d6d57de76` | | 31 | compute | `098fc28e44347a00` | | 31 | mesh | `4ee6e34d8e008c63` | | 30 | mesh | `903776ba469c8bac` | Two things worth reading out of it: 1. **The two most expensive are mesh depth-skinning.** `910b4be059bfb28f` and `321d411b20a35ef9` are the two `MSNC_VS_LinearDepthSkinΓǪ` hashes that @⁠Mesrine67 mapped earlier to `a descriptor neither loaded or built`, which is the reason #307's follow-up addresses. They cost 554 draws/frame together, a quarter of the total. 2. **The top compute one is `e30970f1727063fd`**, which the same list maps to `CS_ComputeImposterTransform` and `a structured buffer of unknown stride` - the #193 / #704 row. 196 draws/frame. So the ranking says: after #566, the largest single win left is the mesh descriptor-phi follow-up, not the shader-instruction PRs. Picture at this point: the intro's cards render with their text, the opening cutscene (Lucia's prison scene) plays its dialogue over a black picture, and the run has since reached the first interactive prompt ("Move around" / "Move the camera", L/R). So gameplay logic and its UI reach the player; only the 3D world is missing.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:29 UTC · original

Joined the two tables on the same run (the drop meter per shader, and the translator's per-hash reason), which changes one priority. Same head 2b1a569, TdrDelay=60, still in the run. By now the run had refused 187 programs and 125 of them were dropping draws.

Dropped/frame Stage Hash Reason in this run
335 mesh 910b4be059bfb28f a scalar memory read as data
219 mesh 321d411b20a35ef9 a scalar memory read as data
196 compute e30970f1727063fd a structured buffer of unknown stride
91 compute 28918b7150a7aad5 an address in an SGPR that is no root parameter
88 compute 3b90165a77d95cdf an address in an SGPR that is no root parameter
60 compute c42a31951201f9a0 an address in an SGPR that is no root parameter
60 compute 5279ae36796c31fc an address in an SGPR that is no root parameter
60 compute 5062bc7a48e842f8 an address in an SGPR that is no root parameter
53 mesh 235e56869c1ea883 a lane mask read as data
35 pixel 2d0cace65bc05bb2 barycentrics read directly
32 vertex 6afab03d484fdba3 a scalar memory read as data
31 mesh fe660f2d6d57de76 a descriptor partly joined by control flow

Two corrections to earlier numbers in this thread:

  1. a scalar memory read as data is far more expensive in the title than the static census suggested. At ~91 programs in the census it looked minor; in the running title the two MSNC_VS_LinearDepthSkin… mesh hashes alone drop 554 draws/frame with this reason, more than half the total. If that row is cheap to lift, it is the largest single win after #566, ahead of the SGPR row.
  2. The two LinearDepthSkin hashes no longer stop at a descriptor neither loaded nor built. @⁠Mesrine67 mapped 910b4be059bfb28f and 321d411b20a35ef9 to that reason on d2a4bae; in this tree they get past it and stop at a scalar memory read as data. That is the same shape as #566's effect on the phi reason: the reason moved rather than the program disappearing.

Together with the compute rows, the arithmetic is: 554 (scalar memory, mesh) + 196 (structured stride) + 359 (SGPR, five compute) = 1 109 of the 2 093 dropped draws/frame, from 8 programs.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127483499) Joined the two tables on the same run (the drop meter per shader, and the translator's per-hash reason), which changes one priority. Same head `2b1a569`, `TdrDelay=60`, still in the run. By now the run had refused **187** programs and **125** of them were dropping draws. | Dropped/frame | Stage | Hash | Reason in this run | |---|---|---|---| | 335 | mesh | `910b4be059bfb28f` | a scalar memory read as data | | 219 | mesh | `321d411b20a35ef9` | a scalar memory read as data | | 196 | compute | `e30970f1727063fd` | a structured buffer of unknown stride | | 91 | compute | `28918b7150a7aad5` | an address in an SGPR that is no root parameter | | 88 | compute | `3b90165a77d95cdf` | an address in an SGPR that is no root parameter | | 60 | compute | `c42a31951201f9a0` | an address in an SGPR that is no root parameter | | 60 | compute | `5279ae36796c31fc` | an address in an SGPR that is no root parameter | | 60 | compute | `5062bc7a48e842f8` | an address in an SGPR that is no root parameter | | 53 | mesh | `235e56869c1ea883` | a lane mask read as data | | 35 | pixel | `2d0cace65bc05bb2` | barycentrics read directly | | 32 | vertex | `6afab03d484fdba3` | a scalar memory read as data | | 31 | mesh | `fe660f2d6d57de76` | a descriptor partly joined by control flow | Two corrections to earlier numbers in this thread: 1. **`a scalar memory read as data` is far more expensive in the title than the static census suggested.** At ~91 programs in the census it looked minor; in the running title the two `MSNC_VS_LinearDepthSkin…` mesh hashes alone drop **554 draws/frame** with this reason, more than half the total. If that row is cheap to lift, it is the largest single win after #566, ahead of the SGPR row. 2. **The two LinearDepthSkin hashes no longer stop at `a descriptor neither loaded nor built`.** @⁠Mesrine67 mapped `910b4be059bfb28f` and `321d411b20a35ef9` to that reason on `d2a4bae`; in this tree they get past it and stop at `a scalar memory read as data`. That is the same shape as #566's effect on the phi reason: the reason moved rather than the program disappearing. Together with the compute rows, the arithmetic is: 554 (scalar memory, mesh) + 196 (structured stride) + 359 (SGPR, five compute) = 1 109 of the 2 093 dropped draws/frame, from 8 programs.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:35 UTC · original

The run reached a steady state, so this is what the numbers say is still needed. Same session: after the cutscene and the first control prompt, the meter reported dropped 764 without a host pipeline (0 being made) - the compile queue is empty, so every remaining drop is a permanent refusal, not a pipeline in flight. 125 programs, 2 071 draws/frame summed per shader.

Mapping the expensive rows to the open work, with the state each PR is in today:

Row Draws/frame Programs Where the fix is State
a scalar memory read as data (mesh, 910b4be059bfb28f + 321d411b20a35ef9) 554 2 #136 (s_buffer descriptor reads) closed, not merged, and out of the tree because two testers bisected black frames to it
an address in an SGPR that is no root parameter (compute) 359 5 #302, then #489 open, left out of the tree for the defect noted on #302
a structured buffer of unknown stride (compute e30970f1727063fd) 196 1 #193, then #704 open, left out (the raw-handle read returns 0 on NVIDIA)
barycentrics read directly (pixel 2d0cace65bc05bb2) 35 1 #453 open, and it is what 92bc27b adds - so the next head should already clear it
a lane mask read as data (mesh 235e56869c1ea883) 53 1 - no PR in the tree or listed against it

So the shape of the remaining work is: one closed PR (#136) holds the fix for the single most expensive row, and two open pairs (#302/#489, #193/#704) cover the next two. That is different from what the static census implied - there, a scalar memory read as data was a 91-program row that looked minor next to SGPR.

Two things I can do from here, whichever is more useful to you:

  1. Build any head that carries one of those pairs over 92bc27b and run it the same way, to report whether the row moves and what the next reason for those hashes is.
  2. Try #136 alone over 92bc27b on this machine, since the black-frame bisect was done on other cards, and report the same counts - with the caveat that a black frame is exactly what we already see, so the test can only be "does it get worse", not "does it look right".

I have no copy of the shaders outside the title and no write access to the tree; I can only run what is published.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127615153) The run reached a steady state, so this is what the numbers say is still needed. Same session: after the cutscene and the first control prompt, the meter reported **`dropped 764 without a host pipeline (0 being made)`** - the compile queue is empty, so every remaining drop is a permanent refusal, not a pipeline in flight. 125 programs, 2 071 draws/frame summed per shader. Mapping the expensive rows to the open work, with the state each PR is in today: | Row | Draws/frame | Programs | Where the fix is | State | |---|---|---|---|---| | `a scalar memory read as data` (mesh, `910b4be059bfb28f` + `321d411b20a35ef9`) | 554 | 2 | #136 (s_buffer descriptor reads) | **closed, not merged**, and out of the tree because two testers bisected black frames to it | | `an address in an SGPR that is no root parameter` (compute) | 359 | 5 | #302, then #489 | open, left out of the tree for the defect noted on #302 | | `a structured buffer of unknown stride` (compute `e30970f1727063fd`) | 196 | 1 | #193, then #704 | open, left out (the raw-handle read returns 0 on NVIDIA) | | `barycentrics read directly` (pixel `2d0cace65bc05bb2`) | 35 | 1 | #453 | open, and it is what `92bc27b` adds - so the next head should already clear it | | `a lane mask read as data` (mesh `235e56869c1ea883`) | 53 | 1 | - | no PR in the tree or listed against it | So the shape of the remaining work is: **one closed PR (#136) holds the fix for the single most expensive row**, and two open pairs (#302/#489, #193/#704) cover the next two. That is different from what the static census implied - there, `a scalar memory read as data` was a 91-program row that looked minor next to SGPR. Two things I can do from here, whichever is more useful to you: 1. Build any head that carries one of those pairs over `92bc27b` and run it the same way, to report whether the row moves and what the next reason for those hashes is. 2. Try #136 alone over `92bc27b` on this machine, since the black-frame bisect was done on other cards, and report the same counts - with the caveat that a black frame is exactly what we already see, so the test can only be "does it get worse", not "does it look right". I have no copy of the shaders outside the title and no write access to the tree; I can only run what is published.
Author
Owner

@⁠cdomergue on GitHub · 2026-11-24 09:36 UTC · original

@⁠rocobalt1 Your top two rows match the shaders I tested. With the three scalar-load hunks from #136 on top of #566, the game created both mesh pipelines with its own pixel shaders and recorded ExecuteIndirect commands for both on my RTX 4070 SUPER. The 3D scene stayed black. Your combined 554 drops/frame make those two hashes worth an A/B on 2b1a569. Test details.

**@⁠cdomergue** on GitHub · 2026-11-24 09:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127639916) @⁠rocobalt1 Your top two rows match the shaders I tested. With the three scalar-load hunks from #136 on top of #566, the game created both mesh pipelines with its own pixel shaders and recorded `ExecuteIndirect` commands for both on my RTX 4070 SUPER. The 3D scene stayed black. Your combined 554 drops/frame make those two hashes worth an A/B on `2b1a569`. [Test details](https://git.gtahub.st/github/Marvisak--VIctory/issues/293).
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:39 UTC · original

Offline check of #136, because it does not merge cleanly into the tester tree. Method: main d2a4bae + #136 (3d3ea6a), victory translate <shaders.rpf> --validate --list --jobs 8, no GPU, no title.

Totals: 25 726 programs, 22 618 validated, 2 366 refused.

The family that costs the most draws in the title:

MSNC_VS_LinearDepthSkin…
programs 246
validated 237
refused 9

The 9 refusals are all resources: a descriptor neither loaded nor built, and all 9 are from the two label variants that @⁠Mesrine67 mapped to the hashes my run drops (_1b4b70ba and _f1f2249c).

Which makes the two fixes complementary rather than alternatives:

Build Those two hashes stop at
tester tree 2b1a569 (has #307/#566, no #136) a scalar memory read as data
main + #136 a descriptor neither loaded nor built

So #136 gets 237 of the 246 past the scalar-memory reason, and the tree gets the remaining 9 past the descriptor reason. Neither alone finishes the family; together they should, and that is the 554 draws/frame row.

The obstacle is mechanical: #136 conflicts with the tree in crates/victory-shader/src/emit/lower.rs and mod.rs (it touches 307 lines in those two files), so I cannot produce the combined build myself without resolving ~50 PRs' worth of translator changes by hand.

Question for you: is there a head that carries #136 on top of the tree's translator work, or would you rather someone with the tree resolve it? If you can point me at any branch that has both, I will run it the same way and report whether the LinearDepthSkin hashes stop dropping.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127702169) Offline check of #136, because it does not merge cleanly into the tester tree. Method: `main` `d2a4bae` + #136 (`3d3ea6a`), `victory translate <shaders.rpf> --validate --list --jobs 8`, no GPU, no title. **Totals:** 25 726 programs, 22 618 validated, 2 366 refused. **The family that costs the most draws in the title:** | `MSNC_VS_LinearDepthSkin…` | | |---|---| | programs | 246 | | validated | **237** | | refused | **9** | The 9 refusals are all `resources: a descriptor neither loaded nor built`, and all 9 are from the two label variants that @⁠Mesrine67 mapped to the hashes my run drops (`_1b4b70ba` and `_f1f2249c`). Which makes the two fixes complementary rather than alternatives: | Build | Those two hashes stop at | |---|---| | tester tree `2b1a569` (has #307/#566, no #136) | `a scalar memory read as data` | | `main` + #136 | `a descriptor neither loaded nor built` | So #136 gets 237 of the 246 past the scalar-memory reason, and the tree gets the remaining 9 past the descriptor reason. **Neither alone finishes the family; together they should, and that is the 554 draws/frame row.** The obstacle is mechanical: #136 conflicts with the tree in `crates/victory-shader/src/emit/lower.rs` and `mod.rs` (it touches 307 lines in those two files), so I cannot produce the combined build myself without resolving ~50 PRs' worth of translator changes by hand. Question for you: is there a head that carries #136 on top of the tree's translator work, or would you rather someone with the tree resolve it? If you can point me at any branch that has both, I will run it the same way and report whether the LinearDepthSkin hashes stop dropping.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:40 UTC · original

Debug-layer run, as asked: same head 2b1a569, VICTORY_D3D12_DEBUG=1, TdrDelay=60, same package.

Result: no removal and no debug-layer message. The run reached the first control prompt and stayed there for about 40 minutes at 0.4-0.5 fps; it was stopped by me at that point, so this is "no removal in 40 minutes", not "removal ruled out".

Frame at the end: 2240 draws/frame, dropped 750 without a host pipeline (0 being made), 187 refusals.

One caveat on the "no message" half: Victory reads the layer's InfoQueue only when it reports a failure (fail() in victory-gpu/src/host.rs), so with no failure there is nothing to print. The absence of a message here says the failure path was never reached, not that the layer found nothing during the run.

So the 517 s removal at the same head (my earlier run, ~1 fps) did not reproduce at 0.4-0.5 fps with the layer on. Two variables moved at once (frame time and the layer), so I cannot say which of them, if either, is the reason - only that the removal is not deterministic at this head on this card.

If it is worth another 40 minutes I can repeat with the layer off and the same frame rate (by leaving the run in the cutscene the whole time), which would separate them.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127722867) Debug-layer run, as asked: same head `2b1a569`, `VICTORY_D3D12_DEBUG=1`, `TdrDelay=60`, same package. **Result: no removal and no debug-layer message.** The run reached the first control prompt and stayed there for about 40 minutes at 0.4-0.5 fps; it was stopped by me at that point, so this is "no removal in 40 minutes", not "removal ruled out". Frame at the end: `2240 draws/frame, dropped 750 without a host pipeline (0 being made)`, 187 refusals. One caveat on the "no message" half: Victory reads the layer's InfoQueue only when it reports a failure (`fail()` in `victory-gpu/src/host.rs`), so with no failure there is nothing to print. The absence of a message here says the failure path was never reached, not that the layer found nothing during the run. So the 517 s removal at the same head (my earlier run, ~1 fps) did not reproduce at 0.4-0.5 fps with the layer on. Two variables moved at once (frame time and the layer), so I cannot say which of them, if either, is the reason - only that the removal is not deterministic at this head on this card. If it is worth another 40 minutes I can repeat with the layer off and the same frame rate (by leaving the run in the cutscene the whole time), which would separate them.
Author
Owner

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

@⁠r4tedx On the same card, 92bc27b with 7ef2c41 reverted (RX 9060 XT, diag, its own cache, warm):

  • The 14 programs that stopped at a descriptor read from the first lane of a phi at 7670a8a all get past it; none translates yet. 8 now stop at a scalar memory read as data, 5 at a descriptor read from the first lane of computed VGPRs, 1 at a descriptor partly joined by control flow. At update 3 (3076d0e, no #566), 13 of the 14 still stop at the phi reason, so the row goes between updates 3 and 5.
  • First 60 s in the world (10 summaries, vs 9 at 7670a8a): those 14 programs drop 233 per frame (306 before), all reasons 1,009 (1,292).
  • Survival: still presenting at about 1 fps 364 s into the world when the 420 s run ended. No device loss, no driver crash. That's one run.
  • Picture: the opening-credit art cards and text, the rest dark. Two later frames show small distant lights and a horizon line. I can't say whether that's new or just a later point than earlier runs reached.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 09:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127814243) @⁠r4tedx On the same card, `92bc27b` with `7ef2c41` reverted (RX 9060 XT, `diag`, its own cache, warm): - **The 14 programs that stopped at `a descriptor read from the first lane of a phi` at `7670a8a` all get past it; none translates yet.** 8 now stop at `a scalar memory read as data`, 5 at `a descriptor read from the first lane of computed VGPRs`, 1 at `a descriptor partly joined by control flow`. At update 3 (`3076d0e`, no #566), 13 of the 14 still stop at the phi reason, so the row goes between updates 3 and 5. - **First 60 s in the world** (10 summaries, vs 9 at `7670a8a`): those 14 programs drop 233 per frame (306 before), all reasons 1,009 (1,292). - **Survival:** still presenting at about 1 fps 364 s into the world when the 420 s run ended. No device loss, no driver crash. That's one run. - **Picture:** the opening-credit art cards and text, the rest dark. Two later frames show small distant lights and a horizon line. I can't say whether that's new or just a later point than earlier runs reached. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 09:49 UTC · original

A gameplay measurement that the earlier comments did not cover, because reaching gameplay needed two things at once: the tree's own #454 (VICTORY_NO_WATCHDOG=1, which it already carries) and the game's own save, so the run starts past the intro.

Setup: 2b1a569, diag, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, VICTORY_NO_WATCHDOG=1, TdrDelay=60. The watchdog hooks report applied=2 and the run does not fault. It sits in the world at 0.1-0.2 fps.

Where the frame time goes:

frame 4 332-6 800 ms
preparing 3 728-4 750 ms
of which copies 3 041-3 744 ms, carrying 211-494 MB per frame
of which textures the remainder
on the GPU ~257 ms

So about 85 % of the frame is CPU-side copying, and the GPU is idle for four seconds out of four and a half. victory-gpu's own description of the model is "only changed title memory is copied"; at 494 MB/frame that is not what is happening in the open world.

Draws for context: 2 985 per frame, 78 programs dropping 2 278 draws/frame, picture still black.

Two reasons this seems worth a line here:

  1. It is the next bottleneck after the shaders. Even if every refused program translated, the frame would still take seconds. If the copy volume came down to what changes, the frame would be ~300 ms on this card, which is what makes A/B runs of shader work practical in the world.
  2. A save makes world tests cheap for anyone else testing here: start the title once, let it save past the intro, and later runs begin in gameplay instead of replaying ten minutes of cards and cutscenes at 0.2 fps. That is how this measurement was taken.

I can repeat this with VICTORY_GPU_TIMING=1 if the per-list split of those 3.7 s would help locate it.

**@⁠rocobalt1** on GitHub · 2026-11-24 09:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7127934684) A gameplay measurement that the earlier comments did not cover, because reaching gameplay needed two things at once: the tree's own #454 (`VICTORY_NO_WATCHDOG=1`, which it already carries) and the game's own save, so the run starts past the intro. **Setup:** `2b1a569`, diag, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, `VICTORY_NO_WATCHDOG=1`, `TdrDelay=60`. The watchdog hooks report `applied=2` and the run does not fault. It sits in the world at 0.1-0.2 fps. **Where the frame time goes:** | | | |---|---| | frame | 4 332-6 800 ms | | preparing | **3 728-4 750 ms** | | of which copies | **3 041-3 744 ms**, carrying **211-494 MB per frame** | | of which textures | the remainder | | on the GPU | **~257 ms** | So about **85 % of the frame is CPU-side copying**, and the GPU is idle for four seconds out of four and a half. `victory-gpu`'s own description of the model is "only changed title memory is copied"; at 494 MB/frame that is not what is happening in the open world. Draws for context: 2 985 per frame, 78 programs dropping 2 278 draws/frame, picture still black. Two reasons this seems worth a line here: 1. **It is the next bottleneck after the shaders.** Even if every refused program translated, the frame would still take seconds. If the copy volume came down to what changes, the frame would be ~300 ms on this card, which is what makes A/B runs of shader work practical in the world. 2. **A save makes world tests cheap** for anyone else testing here: start the title once, let it save past the intro, and later runs begin in gameplay instead of replaying ten minutes of cards and cutscenes at 0.2 fps. That is how this measurement was taken. I can repeat this with `VICTORY_GPU_TIMING=1` if the per-list split of those 3.7 s would help locate it.
Author
Owner

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

I built the combination suggested by the offline test: main d2a4bae + #136 + #307 + #566 + #454,9ad1a17/4caca23. It does fix the row, and the row was not what makes the picture black.

Offline, victory translate --validate --list --jobs 20: MSNC_VS_LinearDepthSkin… is 246 of 246 validated, 0 refused. Globally the same run shows what the combination costs: 238 programs fixed, 276 broken (204 of those newly stop at a lane mask read as data, 22 at a structured buffer of unknown stride, 19 at the first half of an interpolation). Net -38 validated.

In the title (RTX 4060 Ti, driver 32.0.16.1656, diag, VICTORY_NO_WATCHDOG=1, VICTORY_D3D12_DRED=1, VICTORY_SHADER_LOOP_LIMIT=32, TdrDelay=60 - that last one is set machine-wide on this box, not a default):

tree 2b1a569 main + #136 + #307 + #566
910b4be059bfb28f (LinearDepthSkin) 335 draws/frame absent
321d411b20a35ef9 (LinearDepthSkin) 219 draws/frame absent
mesh drops 175/frame 343/frame, but a different hash: ef5409053e14aa82, 194/frame
pixel drops 65/frame 231/frame
compute drops 1 204/frame 1 496/frame
frame 2 233 ms 1 166-2 000 ms
on the GPU ~425 ms 128-1 014 ms

So the two hashes really do stop being dropped, the pipelines are created and execute - GPU time more than doubles because that work now actually runs - and the world is still black. A 2D card renders its text the whole time ("PROLOGUE" over white, fading), and the only thing seen in the world during three minutes was two stray green pixels for one frame.

That is the direct confirmation of @⁠cdomergue's result: the 554 draws/frame row is not the blocker. Two consequences for me:

  1. The combination is not a candidate head as it stands - 276 programs regress, mostly character pixel/mesh shaders, so it trades the skinning row for the ped row.
  2. Whatever composes the world into the presented target is still missing. With the skinning pipelines created and executing, the next question is what the composition pass does with them, and the drop table no longer points at the translator for that.

The run then ended on its own: DRED reports the device removed after 60 s at a 1x1x1 compute dispatch, consistently with the hang being discussed on #71 - I posted the details there rather than duplicating them here.

**@⁠rocobalt1** on GitHub · 2026-11-24 10:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7128302027) I built the combination suggested by the offline test: `main` `d2a4bae` + #136 + #307 + #566 + #454,`9ad1a17`/`4caca23`. It does fix the row, and the row was not what makes the picture black. **Offline, `victory translate --validate --list --jobs 20`:** `MSNC_VS_LinearDepthSkin…` is **246 of 246 validated, 0 refused**. Globally the same run shows what the combination costs: **238 programs fixed, 276 broken** (204 of those newly stop at `a lane mask read as data`, 22 at `a structured buffer of unknown stride`, 19 at `the first half of an interpolation`). Net -38 validated. **In the title** (RTX 4060 Ti, driver 32.0.16.1656, diag, `VICTORY_NO_WATCHDOG=1`, `VICTORY_D3D12_DRED=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `TdrDelay=60` - that last one is set machine-wide on this box, not a default): | | tree `2b1a569` | `main` + #136 + #307 + #566 | |---|---|---| | `910b4be059bfb28f` (LinearDepthSkin) | 335 draws/frame | **absent** | | `321d411b20a35ef9` (LinearDepthSkin) | 219 draws/frame | **absent** | | mesh drops | 175/frame | 343/frame, but a different hash: `ef5409053e14aa82`, 194/frame | | pixel drops | 65/frame | 231/frame | | compute drops | 1 204/frame | 1 496/frame | | frame | 2 233 ms | 1 166-2 000 ms | | on the GPU | ~425 ms | **128-1 014 ms** | So the two hashes really do stop being dropped, the pipelines are created and **execute** - GPU time more than doubles because that work now actually runs - and the world is still black. A 2D card renders its text the whole time ("PROLOGUE" over white, fading), and the only thing seen in the world during three minutes was two stray green pixels for one frame. That is the direct confirmation of @⁠cdomergue's result: **the 554 draws/frame row is not the blocker.** Two consequences for me: 1. The combination is not a candidate head as it stands - 276 programs regress, mostly character pixel/mesh shaders, so it trades the skinning row for the ped row. 2. Whatever composes the world into the presented target is still missing. With the skinning pipelines created and executing, the next question is what the composition pass does with them, and the drop table no longer points at the translator for that. The run then ended on its own: DRED reports the device removed after 60 s at a 1x1x1 compute dispatch, consistently with the hang being discussed on #71 - I posted the details there rather than duplicating them here.
Author
Owner

@⁠cdomergue on GitHub · 2026-11-24 10:35 UTC · original

@⁠rocobalt1 I traced the 1080p scene plane back one pass on an RTX 4070 SUPER, native Windows D3D12, Series S, game 1.0.2.1. At frame 1250 of the intro, the brightest RGB channel on that plane was 2/255 before PresentX composited the UI. The 10-bit texture read by the final pixel shader b30b0ce52e51bc0c peaked at 4/1023 when I read it back at present.

One upstream draw uses pixel shader 5970ee6dbc47ec61. The shader translated and its host pipeline was created. With #688 applied locally, Victory recorded that draw before present 1100, then skipped it before present 1200 because table 1 needed 42 contiguous descriptor slots and the allocation failed. The scene plane peaked at 2/255 in both samples. These were different moments in the intro.

Does anyone know what 5970ee6dbc47ec61 expects at s1+288? At present 1250, that 960×540 texture and its 480×270 source both had a measured RGB peak of zero. Knowing whether that input should carry scene color would tell me whether to trace its writer next.

**@⁠cdomergue** on GitHub · 2026-11-24 10:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7128984593) @⁠rocobalt1 I traced the 1080p scene plane back one pass on an RTX 4070 SUPER, native Windows D3D12, Series S, game 1.0.2.1. At frame 1250 of the intro, the brightest RGB channel on that plane was **2/255 before PresentX composited the UI**. The 10-bit texture read by the final pixel shader `b30b0ce52e51bc0c` peaked at **4/1023** when I read it back at present. One upstream draw uses pixel shader `5970ee6dbc47ec61`. The shader translated and its host pipeline was created. With #688 applied locally, Victory recorded that draw before present 1100, then skipped it before present 1200 because table 1 needed 42 contiguous descriptor slots and the allocation failed. The scene plane peaked at 2/255 in both samples. These were different moments in the intro. Does anyone know what `5970ee6dbc47ec61` expects at `s1+288`? At present 1250, that 960×540 texture and its 480×270 source both had a measured RGB peak of zero. Knowing whether that input should carry scene color would tell me whether to trace its writer next.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 10:49 UTC · original

Two things on the s1+288 question, one from our runs and one pointer.

From our runs: the same pipeline is in our logs on an RTX 4060 Ti - stage="pixel" hash=5970ee6dbc47ec61 user_data=3 samplers=3. So the shader has three descriptor tables and three samplers, and s1+288 is descriptor slot 18 of table 1 (16 bytes each). It is an SRV in the same table whose 42 contiguous slots failed to allocate at your present 1200.

The pointer: that failure is what #747 is about. On a capped view heap (2^16 dynamic slots) the world's tables starve and indirect/mesh draws are dropped; the report there says 2^18 removes the drops on the machine that measured it. So before tracing the shader's inputs, it may be worth checking whether the draw you saw skipped was skipped because of the heap size rather than because of what it reads - in which case the 960x540 and 480x270 textures measuring zero would be a consequence, not a cause.

We cannot name the shader either (the runtime logs hashes, not names for translated programs), but we can capture the binding: in a diagnostics run the descriptor tables are dumped per slot on first bind, so we can post what s1+288 points at (dimensions, format, placed or committed) for that pipeline on this card. If that is useful, say so and we will run it; it answers the same question from a second machine and a different driver.

For context on the 2/255: our runs in the world show the same thing from the other side - about 800 draws execute per frame (the rest dropped), the 2D layer renders through it all, and the only thing that reached the presented target in three minutes was two stray green pixels for one frame. So the picture being "nearly black" rather than "absent" matches what we see.

**@⁠rocobalt1** on GitHub · 2026-11-24 10:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7129293343) Two things on the `s1+288` question, one from our runs and one pointer. **From our runs:** the same pipeline is in our logs on an RTX 4060 Ti - `stage="pixel" hash=5970ee6dbc47ec61 user_data=3 samplers=3`. So the shader has three descriptor tables and three samplers, and `s1+288` is descriptor **slot 18 of table 1** (16 bytes each). It is an SRV in the same table whose **42 contiguous slots failed to allocate** at your present 1200. **The pointer:** that failure is what #747 is about. On a capped view heap (2^16 dynamic slots) the world's tables starve and indirect/mesh draws are dropped; the report there says 2^18 removes the drops on the machine that measured it. So before tracing the shader's inputs, it may be worth checking whether the draw you saw skipped was skipped because of the heap size rather than because of what it reads - in which case the 960x540 and 480x270 textures measuring zero would be a consequence, not a cause. We cannot name the shader either (the runtime logs hashes, not names for translated programs), but we can capture the binding: in a diagnostics run the descriptor tables are dumped per slot on first bind, so we can post what `s1+288` points at (dimensions, format, placed or committed) for that pipeline on this card. If that is useful, say so and we will run it; it answers the same question from a second machine and a different driver. For context on the 2/255: our runs in the world show the same thing from the other side - about 800 draws execute per frame (the rest dropped), the 2D layer renders through it all, and the only thing that reached the presented target in three minutes was two stray green pixels for one frame. So the picture being "nearly black" rather than "absent" matches what we see.
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 10:50 UTC · original

@⁠rocobalt1 Your list of 73 distinct shaders from the WARP world load gives us a way to measure a narrower fix. The single-commit comparison handles a vector select when the translator can prove the scalar mask is uniform. On a synthetic Wave64 guest shader, the two input cases produced 17 and 35 on an RTX 4090 without requiring a 64-lane host wave.

If you still have the same local archive, could you compare offline translation and validation on the commit’s parent ffe310e and on 007c566 for those 73 hashes? The most useful counts are how many newly validate, how many reach a different refusal and how many still fail on the select. Using the parent as the baseline separates this change from the fixes since your original d2a4bae run. No new world run or shader files are needed to share the result.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 10:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7129323055) @⁠rocobalt1 Your list of 73 distinct shaders from the WARP world load gives us a way to measure a narrower fix. [The single-commit comparison](https://github.com/MichaelSmithAI/VIctory/commit/007c566ab74c240d65164fde4a2c2a6296d53f99) handles a vector select when the translator can prove the scalar mask is uniform. On a synthetic Wave64 guest shader, the two input cases produced 17 and 35 on an RTX 4090 without requiring a 64-lane host wave. If you still have the same local archive, could you compare offline translation and validation on the commit’s parent `ffe310e` and on `007c566` for those 73 hashes? The most useful counts are how many newly validate, how many reach a different refusal and how many still fail on the select. Using the parent as the baseline separates this change from the fixes since your original `d2a4bae` run. No new world run or shader files are needed to share the result.
Author
Owner

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

Ran it, on the same archive and the same machine. The change is compiled in, and the translation outcomes are identical.

Method: a clean worktree at ffe310e, cargo build --release -p victory, victory translate <shaders.rpf> --validate --list --jobs 16, then git checkout 007c566 in the same worktree, rebuild, run again. The two binaries differ (SHA-256 8BAA3025… at the parent against BA19C6B0… with the change), so this is not a stale build.

parent ffe310e 007c566
programs 25 694 25 694
validated 21 724 21 724
newly validate - 0
newly fail - 0
refused with a select on an untracked mask 288 288

Taking your three counts directly: 0 newly validate, 0 reach a different refusal, 288 still fail on the select. Across the whole set there is not a single program whose outcome string changes, so nothing moved from one refusal to another either.

One caveat about the 73. I cannot map those hashes to containers offline: the runtime hashes the container with blake3 and keeps the first 16 hex digits, while translate --list prints offsets and names, not hashes. So I compared every program refused with that reason at the parent - 288 here, against 73 on the integration tree, which is a superset of your 73. If a hash-to-offset (or container) mapping is available I will rerun restricted to the exact 73; otherwise the whole-set answer is the stronger claim, and it is that this change does not reach any of them.

Two possible readings, and I cannot separate them from here: either the uniform-mask case the commit handles does not occur in the title's shaders (all 288 fail on a mask the translator cannot prove uniform rather than on an untracked one), or it occurs but the programs still stop later for an unrelated reason. The second would show up as a different refusal, and there is none - which points at the first.

**@⁠rocobalt1** on GitHub · 2026-11-24 11:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7129535279) Ran it, on the same archive and the same machine. **The change is compiled in, and the translation outcomes are identical.** Method: a clean worktree at `ffe310e`, `cargo build --release -p victory`, `victory translate <shaders.rpf> --validate --list --jobs 16`, then `git checkout 007c566` in the same worktree, rebuild, run again. The two binaries differ (SHA-256 `8BAA3025…` at the parent against `BA19C6B0…` with the change), so this is not a stale build. | | parent `ffe310e` | `007c566` | |---|---:|---:| | programs | 25 694 | 25 694 | | validated | 21 724 | **21 724** | | newly validate | - | **0** | | newly fail | - | **0** | | refused with `a select on an untracked mask` | 288 | **288** | Taking your three counts directly: **0 newly validate, 0 reach a different refusal, 288 still fail on the select.** Across the whole set there is not a single program whose outcome string changes, so nothing moved from one refusal to another either. One caveat about the 73. I cannot map those hashes to containers offline: the runtime hashes the container with blake3 and keeps the first 16 hex digits, while `translate --list` prints offsets and names, not hashes. So I compared **every** program refused with that reason at the parent - 288 here, against 73 on the integration tree, which is a superset of your 73. If a hash-to-offset (or container) mapping is available I will rerun restricted to the exact 73; otherwise the whole-set answer is the stronger claim, and it is that this change does not reach any of them. Two possible readings, and I cannot separate them from here: either the uniform-mask case the commit handles does not occur in the title's shaders (all 288 fail on a mask the translator cannot prove uniform rather than on an untracked one), or it occurs but the programs still stop later for an unrelated reason. The second would show up as a different refusal, and there is none - which points at the first.
Author
Owner

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

Another ranked run, now tested with the game on a different GPU and the newer main. Real title runs (menus → intro → loading → world), release MSVC build, package 1.0.2.1, build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93).

Setup: Arch Linux, kernel 6.18.x, AMD RX 9060 XT (RDNA4, RADV 26.3.1), Wine 11.22, DXVK 3.1.1 dxgi, vkd3d-proton 3.2.0 (Proton Experimental DLLs), WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n", VIctory main ffe310e.

Count Stage Reason
35 compute an address in an SGPR that is no root parameter
8 compute a structured buffer of unknown stride
6 compute an address from a phi
5 pixel a 64-bit image atomic
4 compute a scalar memory read as data
3 compute an address not from a root parameter
2 pixel barycentrics read directly
2 compute a lane mask read as data
2 compute a descriptor read only as data
2 compute a descriptor neither loaded nor built

81 unique shaders fail in the first ~2 minutes of the world (81 hashes), plus 5 pixel scalar/lane-mask/64-bit-atomic cases. Overlapping hashes with your run include e30970f1727063fd, f6e47efa50226beb, f28a33a89eaa2caa, caa78b8ca62bc3d6, 28918b7150a7aad5.

A/B with #710 (a5a40bc, which carries #302 and #489): the top reason goes to 0, total stays 82, and the next reasons take over (16x a root UAV or typed root view, 15x an address not from a root parameter, 9x an address from a phi, 8x stride, 8x 64-bit atomic). So the #1 row is real work that lands; the rest is the next wall. Details in the #710 comment.

World frame at that point: 0.2–0.4 fps, copies 1.2–2.3 s / 27–37 MB, textures 250–480 ms / 94–104 MB, GPU 35–47 ms, 157 draws/frame; then Wine RtlReleaseSRWLockExclusive warnings and device removed 0x887A0005.

Not tested: Windows/NVIDIA, other GPUs, longer sessions, and a build with your diag drop summary (this was a release build, so the counts above are translation events, not draws lost per frame).

**@⁠DaviTostes** on GitHub · 2026-11-24 11:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7130091659) Another ranked run, now **tested with the game** on a different GPU and the newer main. Real title runs (menus → intro → loading → world), release MSVC build, package 1.0.2.1, `build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)`. **Setup:** Arch Linux, kernel 6.18.x, AMD **RX 9060 XT** (RDNA4, RADV 26.3.1), Wine 11.22, DXVK 3.1.1 `dxgi`, vkd3d-proton **3.2.0** (Proton Experimental DLLs), `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n"`, VIctory `main` `ffe310e`. | Count | Stage | Reason | |---|---|---| | 35 | compute | an address in an SGPR that is no root parameter | | 8 | compute | a structured buffer of unknown stride | | 6 | compute | an address from a phi | | 5 | pixel | a 64-bit image atomic | | 4 | compute | a scalar memory read as data | | 3 | compute | an address not from a root parameter | | 2 | pixel | barycentrics read directly | | 2 | compute | a lane mask read as data | | 2 | compute | a descriptor read only as data | | 2 | compute | a descriptor neither loaded nor built | 81 unique shaders fail in the first ~2 minutes of the world (81 hashes), plus 5 pixel scalar/lane-mask/64-bit-atomic cases. Overlapping hashes with your run include `e30970f1727063fd`, `f6e47efa50226beb`, `f28a33a89eaa2caa`, `caa78b8ca62bc3d6`, `28918b7150a7aad5`. **A/B with #710** (`a5a40bc`, which carries #302 and #489): the top reason goes to **0**, total stays 82, and the next reasons take over (`16x a root UAV or typed root view`, `15x an address not from a root parameter`, `9x an address from a phi`, `8x stride`, `8x 64-bit atomic`). So the #1 row is real work that lands; the rest is the next wall. Details in the #710 comment. World frame at that point: 0.2–0.4 fps, `copies 1.2–2.3 s / 27–37 MB`, `textures 250–480 ms / 94–104 MB`, GPU 35–47 ms, 157 draws/frame; then Wine `RtlReleaseSRWLockExclusive` warnings and device removed `0x887A0005`. **Not tested:** Windows/NVIDIA, other GPUs, longer sessions, and a build with your diag drop summary (this was a release build, so the counts above are translation events, not draws lost per frame).
Author
Owner

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

Offline whole-pack translate + validate on ffe310e — the counterpart to the runtime ranking here

This is the other half of what #293 measures. The numbers below are offline (every program in the
retail shader pack, whether or not a frame ever touches it), so they do not say which gaps cost
draws — but they are a stable, repeatable figure that does not depend on how far a run gets.

Command (154 s, no game data leaves the machine):

victory translate <shaders.rpf> --validate --list --jobs 6
validator    ...\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll

Environment: Windows 11 Pro build 26300, Intel i5-12400 (6C/12T), 31.8 GB, NVIDIA RTX 4060 Ti
16 GB (Ada, wave32), commit ffe310e, cargo build --release -p victory.

Headline

programs DXIL emitted validated by dxil.dll
vertex + pixel 14,027 12,231 12,155
compute 2,582 1,441 1,417
mesh 8,713 8,214 8,152
total 25,322 21,886 (86.4 %) 21,724 (85.8 %)

So 99.3 % of what is emitted is valid DXIL: 162 emitted programs fail the validator (76 vertex/
pixel, 24 compute, 62 mesh). The other 3,436 never emit — they are the histogram below.

Parsing is not the limit: all 26,084 programs structure to IR (40.6 M instructions), 25,724 of
26,084 have every used resource traced (used-resource entries 432,762: 187 not traced), and 14,040
of 14,247 vertex/pixel programs have their I/O raised. Everything below is emission.

Where the 3,436 non-emitted programs stop (ranked)

A program can appear under more than one reason, so the counts do not sum to 3,436.

count reason
771 a scalar memory read as data
653 a 64-bit image atomic
394 a descriptor read only as data
288 a select on an untracked mask
272 a lane mask holding lanes elsewhere read as data
250 a lane mask read as data
195 an address in an SGPR that is no root parameter
166 a packed input half no element holds
148 a structured buffer of unknown stride
108 a biased image sample with 16-bit coordinates
92 a descriptor's address or format read as data
73 an address not from a root parameter
46 a cross-lane operation outside compute
41 a descriptor chosen by control flow
38 a descriptor read from the first lane of computed VGPRs
29 image_sample_d_cl
29 an opaque lane mask
28 an address from a phi

The first two alone are 1,424 programs. If the point of a PR is "how many programs does it unblock",
this table is the denominator it should be measured against.

One documentation question

The README's table (mesh 8,191 of 8,506, vertex/pixel 10,617 of 12,346, compute 1,643 of 2,539) has
smaller denominators (23,391) than the whole pack (25,322), so I read it as the world's own subset
rather than as a stale number. If that is right, would it be worth adding the whole-pack line next to
it? It is one command, it is independent of how far a run gets, and it would make "did this PR move
the coverage" answerable without a title run.

Two smaller things seen on this machine (NVIDIA, menus only)

  • 7 compute pipelines refused by the host: host pipeline refused error=0x80070057 shaders=[compute e81fd01512ba1002] (also 88994c3496045f51, 13dfdd3b1136e407), each followed by
    a dispatch without a host pipeline dropped. The shaders themselves translate, so this is the PSO
    creation failing, not the emission. Seen on 58fed37; the full list of 7 is in my log if useful.
  • 41 × mesh pipeline with its MS … in the AS slot – refused in the same menu-only run.
  • The run ends at the Windows commit limit before the world loads (16.6 GB private commit against a
    47.8 GB system limit), with memory allocation of 1572864 bytes failed rather than a message — which
    is why #561's "commit physical pages in pieces" would matter here.

I could not contribute runtime draw rankings: this machine cannot get into the world yet (it stops at
the commit limit, not at a rendering bug), so the pack-wide numbers above are what I can measure
reliably.

AI-assisted: the run, the parsing and this text were produced with DeepSeek Harness (DeepSeek-V4-Flash)
on the reporter's machine, at their request. Every number is from the run shown; the per-program list
(shader names and pack offsets) is kept local, as docs/asset-policy.md asks.

**@⁠WuDiXiaoBo** on GitHub · 2026-11-24 11:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7130229323) Offline whole-pack translate + validate on `ffe310e` — the counterpart to the runtime ranking here This is the other half of what #293 measures. The numbers below are **offline** (every program in the retail shader pack, whether or not a frame ever touches it), so they do not say which gaps cost draws — but they are a stable, repeatable figure that does not depend on how far a run gets. **Command** (154 s, no game data leaves the machine): ``` victory translate <shaders.rpf> --validate --list --jobs 6 validator ...\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll ``` **Environment**: Windows 11 Pro build 26300, Intel i5-12400 (6C/12T), 31.8 GB, NVIDIA RTX 4060 Ti 16 GB (Ada, wave32), commit `ffe310e`, `cargo build --release -p victory`. ## Headline | | programs | DXIL emitted | validated by `dxil.dll` | |---|---|---|---| | vertex + pixel | 14,027 | 12,231 | 12,155 | | compute | 2,582 | 1,441 | 1,417 | | mesh | 8,713 | 8,214 | 8,152 | | **total** | **25,322** | **21,886 (86.4 %)** | **21,724 (85.8 %)** | So **99.3 % of what is emitted is valid DXIL**: 162 emitted programs fail the validator (76 vertex/ pixel, 24 compute, 62 mesh). The other 3,436 never emit — they are the histogram below. Parsing is not the limit: all **26,084** programs structure to IR (40.6 M instructions), 25,724 of 26,084 have every used resource traced (`used-resource entries 432,762: 187 not traced`), and 14,040 of 14,247 vertex/pixel programs have their I/O raised. Everything below is emission. ## Where the 3,436 non-emitted programs stop (ranked) A program can appear under more than one reason, so the counts do not sum to 3,436. | count | reason | |---|---| | 771 | a scalar memory read as data | | 653 | a 64-bit image atomic | | 394 | a descriptor read only as data | | 288 | a select on an untracked mask | | 272 | a lane mask holding lanes elsewhere read as data | | 250 | a lane mask read as data | | 195 | an address in an SGPR that is no root parameter | | 166 | a packed input half no element holds | | 148 | a structured buffer of unknown stride | | 108 | a biased image sample with 16-bit coordinates | | 92 | a descriptor's address or format read as data | | 73 | an address not from a root parameter | | 46 | a cross-lane operation outside compute | | 41 | a descriptor chosen by control flow | | 38 | a descriptor read from the first lane of computed VGPRs | | 29 | `image_sample_d_cl` | | 29 | an opaque lane mask | | 28 | an address from a phi | The first two alone are 1,424 programs. If the point of a PR is "how many programs does it unblock", this table is the denominator it should be measured against. ## One documentation question The README's table (`mesh 8,191 of 8,506, vertex/pixel 10,617 of 12,346, compute 1,643 of 2,539`) has smaller denominators (23,391) than the whole pack (25,322), so I read it as the world's own subset rather than as a stale number. If that is right, would it be worth adding the whole-pack line next to it? It is one command, it is independent of how far a run gets, and it would make "did this PR move the coverage" answerable without a title run. ## Two smaller things seen on this machine (NVIDIA, menus only) - **7 compute pipelines refused by the host**: `host pipeline refused error=0x80070057 shaders=[compute e81fd01512ba1002]` (also `88994c3496045f51`, `13dfdd3b1136e407`), each followed by `a dispatch without a host pipeline dropped`. The shaders themselves translate, so this is the PSO creation failing, not the emission. Seen on `58fed37`; the full list of 7 is in my log if useful. - **41 × `mesh pipeline with its MS … in the AS slot – refused`** in the same menu-only run. - The run ends at the Windows commit limit before the world loads (16.6 GB private commit against a 47.8 GB system limit), with `memory allocation of 1572864 bytes failed` rather than a message — which is why #561's "commit physical pages in pieces" would matter here. I could not contribute runtime draw rankings: this machine cannot get into the world yet (it stops at the commit limit, not at a rendering bug), so the pack-wide numbers above are what I can measure reliably. *AI-assisted: the run, the parsing and this text were produced with DeepSeek Harness (DeepSeek-V4-Flash) on the reporter's machine, at their request. Every number is from the run shown; the per-program list (shader names and pack offsets) is kept local, as `docs/asset-policy.md` asks.*
Author
Owner

@⁠EduAzevedo on GitHub · 2026-11-24 12:27 UTC · original

A run of integration/testers at 92bc27b with the title, as asked above. RTX 2070 SUPER (Turing), driver 610.88, Windows 11 26200, diag build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_NO_WATCHDOG=1, VICTORY_D3D12_DRED=1, stock TDR, Series X, empty cache, driven by hand into the first playable section. One run, about 8 minutes, stopped by hand.

  • No device removal, no title fault. 4 host pipelines refused.
  • 0 draws dropped for no dynamic slots (this tree carries the 2^18 reserve) and no table refused.
  • World about 0.5-0.7 fps, 0.17-0.21 s of GPU time per frame. In the first minutes most drops are pipelines still being made (about 5,800/frame); once those are made, about 1,400-1,500 draws run per frame and the largest single drop reason left is 9/frame.
  • Picture: grey screens whose tone changes over time during the intro, then black in the playable section; movement input works there.

On @⁠rocobalt1's question about whether the black is the heap: on this card, with zero no dynamic slots drops and no failed table, the playable section is still black, so here the heap is not what makes it black. Pixel shader 5970ee6dbc47ec61 never binds in this run (Series X, not Series S), so I cannot say what it reads.

AI-assisted.

**@⁠EduAzevedo** on GitHub · 2026-11-24 12:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7131474497) A run of `integration/testers` at `92bc27b` with the title, as asked above. **RTX 2070 SUPER (Turing), driver 610.88, Windows 11 26200**, diag build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_D3D12_DRED=1`, stock TDR, Series X, empty cache, driven by hand into the first playable section. One run, about 8 minutes, stopped by hand. - **No device removal**, no title fault. 4 host pipelines refused. - **0 draws dropped for `no dynamic slots`** (this tree carries the 2^18 reserve) and no table refused. - World about 0.5-0.7 fps, 0.17-0.21 s of GPU time per frame. In the first minutes most drops are pipelines still `being made` (about 5,800/frame); once those are made, about 1,400-1,500 draws run per frame and the largest single drop reason left is 9/frame. - **Picture:** grey screens whose tone changes over time during the intro, then **black in the playable section**; movement input works there. On @⁠rocobalt1's question about whether the black is the heap: on this card, with zero `no dynamic slots` drops and no failed table, the playable section is still black, so here the heap is not what makes it black. Pixel shader `5970ee6dbc47ec61` never binds in this run (Series X, not Series S), so I cannot say what it reads. AI-assisted.
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 12:36 UTC · original

Offline coverage of open shader PRs against main ffe310e

The whole retail shader pack, plus the console DLLs' shaders, through victory translate --validate --list (CPU only, dxil.dll from SDK 10.0.26100.0, no --pipelines). main alone, then main + each candidate merged on its own. Programs are matched one by one (by container and offset), so "newly failing" means a program that validates on main and not with the PR.

main ffe310e: 21,736 of 25,334 programs validate (vertex/pixel 12,167 of 14,039, compute 1,417 of 2,582, mesh 8,152 of 8,713).

candidate newly validated newly failing what it unblocks (failures before → after)
#180 twin descriptor loads, quad gradients +542 (compute +328) 0 a descriptor read only as data 394 → 7, a scalar memory read as data 771 → 300
#305, #539, #705 64-bit image atomics +520 each, the same 520 0 a 64-bit image atomic 653 → 0
#160 image sampling family +77 0
#704 unknown-stride buffers +39 0
#298 lane masks spilled to VGPRs +34 0
#585 +25 0
#563 +25 0
#694 +16 0
fix/shader-lane-mask-ballots-and-data-reads (LAKSHYA-cmd-tech, from #653) +24 0 a lane mask holding lanes elsewhere read as data 272 → 0, a cross-lane operation outside compute 46 → 0; most then stop at a descriptor read only as data (394 → 627)
#126 (speed-up) 0 0 unchanged, as expected
#385, #660, #69, #329, #383 don't merge into ffe310e without conflicts; not measured

They stack. #180 and the lane-mask branch unblock each other: each clears the other's next blocker. #180's gains and the atomics' gains don't overlap at all (0 programs in common).

combination newly validated newly failing compute validated
main + #180 + lane-mask branch + #305 (merge cleanly in that order) +1,193 (21,736 → 22,929) 0 1,417 → 1,846 (+30%)

That's 99 more compute programs than #180 alone. The three-way atomics tie means the choice between #305, #539 and #705 can rest on code review alone.

Top remaining blockers with the combination: a lane mask read as data 706, a scalar memory read as data 306, a select on an untracked mask 296, an address in an SGPR that is no root parameter 247, a lane-mask join of an untracked mask 218, an interpolation with computed barycentrics 207, a structured buffer of unknown stride 174.

Limits: offline only. "Validated" is DXIL validation, not correct output on a GPU, and runtime-only programs aren't in the pack. In a world run on an RX 9070 XT, main + #493 + #483 still reported 521 programs that don't translate, 445 of them compute.

AI-assisted (Claude Code). Counts and VIctory's own failure reasons only; no shader names or game data.

**@⁠h0useadv** on GitHub · 2026-11-24 12:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7131677641) ## Offline coverage of open shader PRs against `main` `ffe310e` The whole retail shader pack, plus the console DLLs' shaders, through `victory translate --validate --list` (CPU only, `dxil.dll` from SDK 10.0.26100.0, no `--pipelines`). `main` alone, then `main` + each candidate merged on its own. Programs are matched one by one (by container and offset), so "newly failing" means a program that validates on `main` and not with the PR. **`main` `ffe310e`:** 21,736 of 25,334 programs validate (vertex/pixel 12,167 of 14,039, compute **1,417 of 2,582**, mesh 8,152 of 8,713). | candidate | newly validated | newly failing | what it unblocks (failures before → after) | |---|---|---|---| | **#180** twin descriptor loads, quad gradients | **+542** (compute +328) | 0 | `a descriptor read only as data` 394 → 7, `a scalar memory read as data` 771 → 300 | | **#305**, **#539**, **#705** 64-bit image atomics | **+520** each, the same 520 | 0 | `a 64-bit image atomic` 653 → 0 | | #160 image sampling family | +77 | 0 | | | #704 unknown-stride buffers | +39 | 0 | | | #298 lane masks spilled to VGPRs | +34 | 0 | | | #585 | +25 | 0 | | | #563 | +25 | 0 | | | #694 | +16 | 0 | | | `fix/shader-lane-mask-ballots-and-data-reads` (LAKSHYA-cmd-tech, from #653) | +24 | 0 | `a lane mask holding lanes elsewhere read as data` 272 → 0, `a cross-lane operation outside compute` 46 → 0; most then stop at `a descriptor read only as data` (394 → 627) | | #126 (speed-up) | 0 | 0 | unchanged, as expected | | #385, #660, #69, #329, #383 | | | don't merge into `ffe310e` without conflicts; not measured | **They stack.** #180 and the lane-mask branch unblock each other: each clears the other's next blocker. #180's gains and the atomics' gains don't overlap at all (0 programs in common). | combination | newly validated | newly failing | compute validated | |---|---|---|---| | `main` + **#180 + lane-mask branch + #305** (merge cleanly in that order) | **+1,193** (21,736 → 22,929) | **0** | **1,417 → 1,846** (+30%) | That's 99 more compute programs than #180 alone. The three-way atomics tie means the choice between #305, #539 and #705 can rest on code review alone. Top remaining blockers with the combination: `a lane mask read as data` 706, `a scalar memory read as data` 306, `a select on an untracked mask` 296, `an address in an SGPR that is no root parameter` 247, `a lane-mask join of an untracked mask` 218, `an interpolation with computed barycentrics` 207, `a structured buffer of unknown stride` 174. Limits: offline only. "Validated" is DXIL validation, not correct output on a GPU, and runtime-only programs aren't in the pack. In a world run on an RX 9070 XT, `main` + #493 + #483 still reported 521 programs that don't translate, 445 of them compute. AI-assisted (Claude Code). Counts and VIctory's own failure reasons only; no shader names or game data.
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 12:54 UTC · original

Runtime follow-up to the table above, on an RX 9070 XT with a real world run.

Build: main ffe310e + #493 + #483 (crash fixes) + #180 + the lane-mask branch + #305 + #160 (shader fixes; #704 and #298 conflict with this stack, so they're left out). Offline, this stack validates 23,016 of 25,334 programs (main: 21,736) and 1,862 of 2,582 compute (main: 1,417), with no program that validates on main failing.

In the world (same scripted input, VICTORY_D3D12_DRED=1, Windows' default 2 s GPU timeout):

main + #493 + #483 + the shader fixes
shader does not translate during the run 521 (445 compute) 170
time in the world before removal 453 s ~10 s
GPU time per frame just before removal ~0.1 to 0.3 s 1.34 s (frame 2.4 s)
page fault none none: a list stopped at command 135 of 137 (op 42)

So two-thirds of the runtime translation failures go away, but with all those programs now running, GPU time per frame rises roughly tenfold. The run crosses the 2 s TDR within seconds of the world starting. That fits the earlier finding (#49, #71) that world "hangs" on this card are slow GPU work, not a stuck GPU. The newly translated programs make the timeout come much sooner. Speeding up the slowest translated programs (e.g. 04b9be3756e8f41c / a26422c01dcf5612 on #71) is now what stands between this stack and a stable world at the default timeout.

AI-assisted (Claude Code). Counts and VIctory's own log text only; no game data.

**@⁠h0useadv** on GitHub · 2026-11-24 12:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7132078918) Runtime follow-up to the table above, on an RX 9070 XT with a real world run. **Build:** `main` `ffe310e` + #493 + #483 (crash fixes) + **#180 + the lane-mask branch + #305 + #160** (shader fixes; #704 and #298 conflict with this stack, so they're left out). Offline, this stack validates 23,016 of 25,334 programs (`main`: 21,736) and 1,862 of 2,582 compute (`main`: 1,417), with no program that validates on `main` failing. **In the world** (same scripted input, `VICTORY_D3D12_DRED=1`, Windows' default 2 s GPU timeout): | | `main` + #493 + #483 | + the shader fixes | |---|---|---| | `shader does not translate` during the run | 521 (445 compute) | **170** | | time in the world before removal | 453 s | **~10 s** | | GPU time per frame just before removal | ~0.1 to 0.3 s | **1.34 s** (frame 2.4 s) | | page fault | none | none: `a list stopped at command 135 of 137 (op 42)` | So two-thirds of the runtime translation failures go away, but with all those programs now running, GPU time per frame rises roughly tenfold. The run crosses the 2 s TDR within seconds of the world starting. That fits the earlier finding (#49, #71) that world "hangs" on this card are slow GPU work, not a stuck GPU. The newly translated programs make the timeout come much sooner. Speeding up the slowest translated programs (e.g. `04b9be3756e8f41c` / `a26422c01dcf5612` on #71) is now what stands between this stack and a stable world at the default timeout. AI-assisted (Claude Code). Counts and VIctory's own log text only; no game data.
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 13:10 UTC · original

Visual follow-up to the runtime comment above (same stack: ffe310e + #493 + #483 + #180 + lane-mask branch + #305 + #160, RX 9070 XT, default 2 s timeout). I saved every frame around world entry with VICTORY_CAPTURE_FRAMES. The world lasted 5 presented frames before the device was removed:

  • frames 1 and 2 black (hand-over from the loading screen);
  • frame 3 shows lit 3D output: a dark scene crossed by a glowing horizon line with a soft halo and scattered distant point lights;
  • frames 4 and 5 black again, then the TDR.

So with these shader fixes, world rendering produces visible lit output on this card for the first time in my runs, though it's partial and flickers (1 of 5 frames). Earlier world runs here without them showed only UI over black. Text only; I'm not posting captures of the game.

AI-assisted (Claude Code).

**@⁠h0useadv** on GitHub · 2026-11-24 13:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7132460510) Visual follow-up to the runtime comment above (same stack: `ffe310e` + #493 + #483 + #180 + lane-mask branch + #305 + #160, RX 9070 XT, default 2 s timeout). I saved every frame around world entry with `VICTORY_CAPTURE_FRAMES`. The world lasted 5 presented frames before the device was removed: - frames 1 and 2 black (hand-over from the loading screen); - **frame 3 shows lit 3D output**: a dark scene crossed by a glowing horizon line with a soft halo and scattered distant point lights; - frames 4 and 5 black again, then the TDR. So with these shader fixes, world rendering produces visible lit output on this card for the first time in my runs, though it's partial and flickers (1 of 5 frames). Earlier world runs here without them showed only UI over black. Text only; I'm not posting captures of the game. AI-assisted (Claude Code).
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 13:43 UTC · original

@⁠nullmarsh thank you for the bisect, and I am sorry it took hours to get an answer. The merge you landed on, 7ef2c41, is mine, and I cannot reproduce the fault: I have no AMD card here, and the NVIDIA runs of the tree do not show it. So this is what I know, what I changed, and what would settle it.

What that merge adds beyond #483 itself. Three things: the guard is also applied to #307's per-lane heap index (fetched_index, which #483 did not know); the view heap's guard slot is count + spare (after the tree's 2^18 dynamic slots) where #483 had count + DYNAMIC; and a capped sampler heap's guard is its last dynamic slot. @⁠h0useadv ran #483 merged another way onto main ffe310e on an RX 9070 XT with your driver version for 453 s without a driver fault (on #483). That points at the tree's merge more than at #483, as you suspected. I have not found the defect by reading it.

What I changed (update 6, a172d4e). INTEGRATION.md now opens with this problem and your workaround (git revert -m 1 7ef2c41), so nobody on AMD runs into it unwarned. There is one new switch, VICTORY_HEAP_GUARD=0: the shaders are the same, but the host passes u32::MAX as the guard, so no index is redirected.

What would settle it, if you have time for one run at a172d4e with nothing reverted and VICTORY_HEAP_GUARD=0:

  • if the fault stays, it is the shape of the shaders (AMD's compiler or its handling of the bounded index), and the next step is to take the guard off fetched_index;
  • if it goes, it is reads of the guard slot or a guard value that is wrong on your heap.

The name of the Direct3D call in the victory.exe frame of the stack (pipeline creation, a draw or dispatch, a descriptor copy) would say the same from the other side, with no run at all, if your dump still has it.

On your run of 92bc27b with the merge reverted: that is the first title measurement of #566 on one card across two updates, 14 programs past the phi reason and 306 to 233 drops per frame for them. #566 is merged in main now. None of the 14 translating yet matches the offline counts: they stop next at the scalar-memory reason, which nothing in the tree addresses.

@⁠EduAzevedo thank you too. Eight minutes on a 2070 SUPER at 92bc27b with no removal, no no dynamic slots drop and no failed table, and still black in the playable section, is a clean statement that the heap is not what makes it black on that card. It agrees with what the tree's notes say it does not fix.

@⁠rocobalt1 the complete table and the debug-layer run are both useful, and your caveat is right: with no failure the layer's queue is never read, so "no message" says only that the failure path was not reached. The repeat with the layer off at the same frame rate would separate the two variables; I would not ask for another 40 minutes for it before the tree is on current main.

Update 6 also adds #587 (mesh output bounds), with tests. The tree is still based on d2a4bae; moving it to main ffe310e is the next step.

The title was not used in the tests behind this update; the measurements above are the testers'. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 13:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7133247538) @⁠nullmarsh thank you for the bisect, and I am sorry it took hours to get an answer. The merge you landed on, `7ef2c41`, is mine, and I cannot reproduce the fault: I have no AMD card here, and the NVIDIA runs of the tree do not show it. So this is what I know, what I changed, and what would settle it. **What that merge adds beyond #483 itself.** Three things: the guard is also applied to #307's per-lane heap index (`fetched_index`, which #483 did not know); the view heap's guard slot is `count + spare` (after the tree's 2^18 dynamic slots) where #483 had `count + DYNAMIC`; and a capped sampler heap's guard is its last dynamic slot. @⁠h0useadv ran #483 merged another way onto `main` `ffe310e` on an RX 9070 XT with your driver version for 453 s without a driver fault ([on #483](https://git.gtahub.st/github/Marvisak--VIctory/pulls/483)). That points at the tree's merge more than at #483, as you suspected. I have not found the defect by reading it. **What I changed (update 6, `a172d4e`).** `INTEGRATION.md` now opens with this problem and your workaround (`git revert -m 1 7ef2c41`), so nobody on AMD runs into it unwarned. There is one new switch, `VICTORY_HEAP_GUARD=0`: the shaders are the same, but the host passes `u32::MAX` as the guard, so no index is redirected. **What would settle it,** if you have time for one run at `a172d4e` with nothing reverted and `VICTORY_HEAP_GUARD=0`: - if the fault stays, it is the shape of the shaders (AMD's compiler or its handling of the bounded index), and the next step is to take the guard off `fetched_index`; - if it goes, it is reads of the guard slot or a guard value that is wrong on your heap. The name of the Direct3D call in the `victory.exe` frame of the stack (pipeline creation, a draw or dispatch, a descriptor copy) would say the same from the other side, with no run at all, if your dump still has it. On your run of `92bc27b` with the merge reverted: that is the first title measurement of #566 on one card across two updates, 14 programs past the phi reason and 306 to 233 drops per frame for them. #566 is merged in `main` now. None of the 14 translating yet matches the offline counts: they stop next at the scalar-memory reason, which nothing in the tree addresses. @⁠EduAzevedo thank you too. Eight minutes on a 2070 SUPER at `92bc27b` with no removal, no `no dynamic slots` drop and no failed table, and still black in the playable section, is a clean statement that the heap is not what makes it black on that card. It agrees with what the tree's notes say it does not fix. @⁠rocobalt1 the complete table and the debug-layer run are both useful, and your caveat is right: with no failure the layer's queue is never read, so "no message" says only that the failure path was not reached. The repeat with the layer off at the same frame rate would separate the two variables; I would not ask for another 40 minutes for it before the tree is on current `main`. Update 6 also adds #587 (mesh output bounds), with tests. The tree is still based on `d2a4bae`; moving it to `main` `ffe310e` is the next step. The title was not used in the tests behind this update; the measurements above are the testers'. AI-assisted.
Author
Owner

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

@⁠h0useadv, on #704 being left out of your stack because it conflicts: the conflict is small. #704 (now 1f3c184) merges onto ffe310e + #180 + the lane-mask branch (49d6d98) + #305 + #160 with one conflict, in the GPU test harness (emit/host.rs). #160 adds a texture-levels arm right next to the buffer UAV arm that #704 widens, and keeping both resolves it. The translator code merges cleanly. The result is testers/293-stack-with-704 at ac9e7c3. It's your merge order with #160 at its current head 5ce85c5, plus #704. (#160 at 6ad7e15 didn't compile its tests against ffe310e. 5ce85c5 fixes that.)

Offline census, using local title data: the title's shaders.rpf only, without the console DLLs. Both runs used victory translate --validate --list, any wave size, SDK dxil.dll, CPU only, and programs were matched one by one.

vertex + pixel compute mesh total validated
your stack 12,898 1,862 8,244 23,004
+ #704 12,900 1,975 8,245 23,120

The compute count of your stack matches yours exactly (1,862). My total is 12 lower, probably because the DLLs' shaders aren't included. With #704, 116 more programs validate (113 compute) and 0 that validated stop validating. a structured buffer of unknown stride goes from 174 to 0. Some of the unblocked programs stop on a later reason instead: a lane-mask join of an untracked mask +38 and a lane mask read as data +19.

Tests on the stack (RTX 5070, serial): 358 passed, 1 failed. The failure is #160's texel_offsets_and_levels_sample_the_texels_they_name. It also fails without #704, and it passes on #160 alone, so it comes from combining #160 with #180. #160's owner is following that up. #704's own CI failure (an access violation from two GPU tests at once on WARP) is fixed in 1f3c184.

Two cautions for a runtime run. Validation doesn't mean correct reads: #704 makes these programs read a raw view of the same bytes, but a slot the shader reaches only through a run-time-loaded index still holds a null view (see the #704 description). And per your runtime comment, more translated compute is more GPU work per frame. On your RX 9070 XT, 113 more compute programs could bring the 2 s TDR sooner, not later. If you try it, the useful comparison is time in the world and GPU time per frame against your current stack.

The census used local title data and reports counts and refusal reasons only. The title was not run.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-24 14:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7133786114) @⁠h0useadv, on #704 being left out of your stack because it conflicts: the conflict is small. #704 (now `1f3c184`) merges onto `ffe310e` + #180 + the lane-mask branch (`49d6d98`) + #305 + #160 with one conflict, in the GPU test harness (`emit/host.rs`). #160 adds a texture-levels arm right next to the buffer UAV arm that #704 widens, and keeping both resolves it. The translator code merges cleanly. The result is [`testers/293-stack-with-704` at `ac9e7c3`](https://github.com/r4tedx/VIctory/tree/testers/293-stack-with-704). It's your merge order with #160 at its current head `5ce85c5`, plus #704. (#160 at `6ad7e15` didn't compile its tests against `ffe310e`. `5ce85c5` fixes that.) **Offline census**, using local title data: the title's `shaders.rpf` only, without the console DLLs. Both runs used `victory translate --validate --list`, any wave size, SDK `dxil.dll`, CPU only, and programs were matched one by one. | | vertex + pixel | compute | mesh | total validated | |---|---|---|---|---| | your stack | 12,898 | **1,862** | 8,244 | 23,004 | | + #704 | 12,900 | **1,975** | 8,245 | 23,120 | The compute count of your stack matches yours exactly (1,862). My total is 12 lower, probably because the DLLs' shaders aren't included. With #704, **116 more programs validate (113 compute) and 0 that validated stop validating**. `a structured buffer of unknown stride` goes from 174 to 0. Some of the unblocked programs stop on a later reason instead: `a lane-mask join of an untracked mask` +38 and `a lane mask read as data` +19. **Tests** on the stack (RTX 5070, serial): 358 passed, 1 failed. The failure is #160's `texel_offsets_and_levels_sample_the_texels_they_name`. It also fails without #704, and it passes on #160 alone, so it comes from combining #160 with #180. #160's owner is following that up. #704's own CI failure (an access violation from two GPU tests at once on WARP) is fixed in `1f3c184`. Two cautions for a runtime run. Validation doesn't mean correct reads: #704 makes these programs read a raw view of the same bytes, but a slot the shader reaches only through a run-time-loaded index still holds a null view (see the #704 description). And per your runtime comment, more translated compute is more GPU work per frame. On your RX 9070 XT, 113 more compute programs could bring the 2 s TDR sooner, not later. If you try it, the useful comparison is time in the world and GPU time per frame against your current stack. The census used local title data and reports counts and refusal reasons only. The title was not run. AI-assisted (Claude Code).
Author
Owner

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

@⁠r4tedx Update 6 a172d4e, nothing reverted, diag, RX 9060 XT (driver 32.0.32029.2010):

  • VICTORY_HEAP_GUARD=0: same access violation at amdxc64.dll+0x861b9f as the default, one run each. It can't reach this fault: the guard is a draw-time value, and the fault is in pipeline creation.
  • The call: the symbolized victory.exe frames are library.rs:162, the create() closure from host.rs:494: host.device.CreateComputePipelineState(&desc).
  • Which programs: I logged each compute creation with an address on its thread's stack; about eight compiled in parallel at each crash. Two crashes matched 1c02f8131c508c75. With it never created, two more matched 501f0865fdf45dfd. With all eight never created, two more matched 072f5fe96efd27e1, which had also been translated with no pipeline yet at each of my 7ef2c41 bisect crashes.
  • Control: on 92bc27b minus 7ef2c41, all three got pipelines without a fault.

So the fault moves to another compute program each time one is removed.

Not checked: their DXIL with and without the guard, a single-threaded compile, or another AMD card.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 14:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134297229) @⁠r4tedx Update 6 `a172d4e`, nothing reverted, `diag`, RX 9060 XT (driver 32.0.32029.2010): - **`VICTORY_HEAP_GUARD=0`:** same access violation at `amdxc64.dll+0x861b9f` as the default, one run each. It can't reach this fault: the guard is a draw-time value, and the fault is in pipeline creation. - **The call:** the symbolized `victory.exe` frames are `library.rs:162`, the `create()` closure from `host.rs:494`: `host.device.CreateComputePipelineState(&desc)`. - **Which programs:** I logged each compute creation with an address on its thread's stack; about eight compiled in parallel at each crash. Two crashes matched `1c02f8131c508c75`. With it never created, two more matched `501f0865fdf45dfd`. With all eight never created, two more matched `072f5fe96efd27e1`, which had also been translated with no pipeline yet at each of my `7ef2c41` bisect crashes. - **Control:** on `92bc27b` minus `7ef2c41`, all three got pipelines without a fault. So the fault moves to another compute program each time one is removed. Not checked: their DXIL with and without the guard, a single-threaded compile, or another AMD card. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

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

@⁠h0useadv, a follow-up to my comment above. testers/293-stack-with-704 is now at 45c03c0. It adds the two-line fix for the #160 + #180 combination explained on #160. Your stack has the same plain merge, so its compute samples with a bias after a texel offset, or with a level clamp, read the wrong texels.

With the fix, cargo test -p victory-shader --features host passes 135 of 135 (1 ignored) on the RTX 5070, and all-feature clippy is clean. The offline census over the local shaders.rpf is unchanged: 23,120 validated, with no program gained or lost against ac9e7c3. The fix changes which texels those samples read, not what validates.

The census used local title data and reports counts only. The title was not run.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-24 14:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134301089) @⁠h0useadv, a follow-up to my comment above. [`testers/293-stack-with-704`](https://github.com/r4tedx/VIctory/tree/testers/293-stack-with-704) is now at `45c03c0`. It adds the two-line fix for the #160 + #180 combination [explained on #160](https://git.gtahub.st/github/Marvisak--VIctory/pulls/160). Your stack has the same plain merge, so its compute samples with a bias after a texel offset, or with a level clamp, read the wrong texels. With the fix, `cargo test -p victory-shader --features host` passes 135 of 135 (1 ignored) on the RTX 5070, and all-feature clippy is clean. The offline census over the local `shaders.rpf` is unchanged: 23,120 validated, with no program gained or lost against `ac9e7c3`. The fix changes which texels those samples read, not what validates. The census used local title data and reports counts only. The title was not run. AI-assisted (Claude Code).
Author
Owner

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

Offline whole-pack census on a third machine: your histogram reproduces exactly, and here is where each reason actually sits.

Setup. My own copy of package 1.0.2.1 (build b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93), a clean worktree at ffe310e, cargo build --release -p victory, then:

victory translate <shaders.rpf> --validate --list            # 74 s, default --jobs (16 logical cores)
validator    ...\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll

Windows 11, 16 logical cores, an RTX 4090 and integrated AMD graphics — irrelevant here, nothing in this run touches a GPU.

The numbers match @⁠WuDiXiaoBo's run line for line

containers 26,503 (614 duplicates skipped), programs 26,084 translated of 26,084 (40,601,701 IR instructions), resources 25,724 of 26,084 tracked, used-resource entries 432,762: 187 not traced — all identical. validated 21,724 — identical. Emitted but refused by the validator: 162, identical, and it splits as pixel 48 + vertex 28 = 76, compute 24, mesh 62, which matches your 76/24/62.

One reconciliation about the 3,436. I count 3,796 programs with a stop reason, and every program line in --list names exactly one reason (3,796 lines, 3,796 distinct file@offset + program pairs — I found no program under two reasons). Splitting by the step that stops them:

step programs
emit: 3,436
resources: 360

So your 3,436 is the emission stops, and there are 360 more that stop earlier, during resource tracking, and are not in that histogram. If "never emit" was meant to include those, it should read 3,796.

The tail your table cut off

Your table stops at 28. Continuing down: 19 a lane-mask join of an untracked mask, 17 a hardware SGPR input, 16 image_gather4_l, 15 a waterfall loop whose compares do not select the access's lanes, 13 a constant lane mask, 13 barycentrics read directly, 9 an LDS write of bytes or halves, 8 a conditional export, 8 a descriptor partly joined by control flow, 7 an LDS read of bytes or halves, 5 a whole-wave section step the simulation does not follow, 4 v_cvt_f32_f64, 4 an LDS operation, 3 a descriptor neither loaded nor built, 2 s_getpc_b64, 2 a cross-lane operation in a mesh shader, 1 LDS the program does not allocate, 1 v_permlanex16_b32. 37 reasons in total.

Where the top rows concentrate (this part is new)

a 64-bit image atomic, 653 programs: 651 of them are pixel shaders, and 591 of those are one pass.

programs family
268 PS_AlphaPrepass_*
107 PS_PedAlphaPrepass_*
91 PS_PedAlphaPrepass_Decals_*
52 PS_AlphaPrepass_Fire_*
38 PS_AlphaPrepassSpatter_*
35 PS_AlphaPrepassSpatter_Fire_*

So this is the alpha prepass. A PR for 64-bit image atomics could be checked against that pass alone instead of the whole pack. Worth pairing with the runtime side: the ranking at the top of this issue gives this reason ~18 draws/frame over 4 shaders, so its offline volume (653) and its in-game cost are far apart, which is worth knowing when choosing what to do first.

a scalar memory read as data, 771 programs: 385 mesh, 327 pixel, 32 vertex, 27 compute. 128 distinct family names are affected; the top 15 account for 430 (56%), and they are the character shading path — PS_DeferredPedTexturedNC 48, PS_MirrorReflectionDeferredPedTexturedNC 47, PS_DeferredPedDecalTextured 32, PS_StudioPedTextured_Eight 32, PS_PedTextured_Eight_Alpha 32, PS_PedTextured_Eight_Decals 30, MSNC_VS_MirrorReflectionPedTransformSkinD 29, MSNC_VS_PedTransformSkinD 29.

an address in an SGPR that is no root parameter, 195 programs: all 195 are geometry shaders. Every one of them is named GS_VoxelizeGeneric_* (GS_VoxelizeGeneric_991d528a_Wrapped, …_899ecf3f_…, …_f406ea93_…, and 192 more). Your stage table has no geometry row, and the runtime rankings in this issue attribute this reason to compute programs — in the pack, this reason is one voxelize geometry shader in 195 variants, and 196 geometry programs exist in total, of which exactly one validates. That looks like the narrowest unit of work in the whole histogram: one stage, one family, one reason, 195 programs.

A reading of emit/lower.rs that separates two of these rows

descriptor_data (emit/lower.rs:2929) can stop three ways, and the messages name different causes: the load is not an s_load_dword{,x2,x4,x8,x16} writing into scalar registers → a scalar memory read as data (:2936, :2944, :2998); no Role::Resource descriptor traces back to the load site → a descriptor read only as data (:2960); the bits read are an address or a format rather than a size → a descriptor's address or format read as data (:2930). So the second and third largest rows of the histogram (771 and 394, the latter 305 of them compute, 35 PS_PuddleDetect_*) are not the same problem, and only the first one is about sizes taken from descriptor bits.

Happy to re-run this on any named commit with the same worktree method @⁠rocobalt1 used, on this build id.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 14:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134390237) **Offline whole-pack census on a third machine: your histogram reproduces exactly, and here is where each reason actually sits.** Setup. My own copy of package 1.0.2.1 (build `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`), a clean worktree at `ffe310e`, `cargo build --release -p victory`, then: ``` victory translate <shaders.rpf> --validate --list # 74 s, default --jobs (16 logical cores) validator ...\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll ``` Windows 11, 16 logical cores, an RTX 4090 and integrated AMD graphics — irrelevant here, nothing in this run touches a GPU. ## The numbers match @⁠WuDiXiaoBo's run line for line `containers 26,503 (614 duplicates skipped)`, `programs 26,084 translated of 26,084 (40,601,701 IR instructions)`, `resources 25,724 of 26,084 tracked`, `used-resource entries 432,762: 187 not traced` — all identical. `validated 21,724` — identical. Emitted but refused by the validator: **162**, identical, and it splits as `pixel 48 + vertex 28 = 76`, `compute 24`, `mesh 62`, which matches your 76/24/62. **One reconciliation about the 3,436.** I count 3,796 programs with a stop reason, and every program line in `--list` names exactly one reason (3,796 lines, 3,796 distinct `file@offset + program` pairs — I found no program under two reasons). Splitting by the step that stops them: | step | programs | |---|---:| | `emit:` | **3,436** | | `resources:` | 360 | So your 3,436 is the emission stops, and there are 360 more that stop earlier, during resource tracking, and are not in that histogram. If "never emit" was meant to include those, it should read 3,796. ## The tail your table cut off Your table stops at 28. Continuing down: 19 `a lane-mask join of an untracked mask`, 17 `a hardware SGPR input`, 16 `image_gather4_l`, 15 `a waterfall loop whose compares do not select the access's lanes`, 13 `a constant lane mask`, 13 `barycentrics read directly`, 9 `an LDS write of bytes or halves`, 8 `a conditional export`, 8 `a descriptor partly joined by control flow`, 7 `an LDS read of bytes or halves`, 5 `a whole-wave section step the simulation does not follow`, 4 `v_cvt_f32_f64`, 4 `an LDS operation`, 3 `a descriptor neither loaded nor built`, 2 `s_getpc_b64`, 2 `a cross-lane operation in a mesh shader`, 1 `LDS the program does not allocate`, 1 `v_permlanex16_b32`. 37 reasons in total. ## Where the top rows concentrate (this part is new) **`a 64-bit image atomic`, 653 programs: 651 of them are pixel shaders, and 591 of those are one pass.** | programs | family | |---:|---| | 268 | `PS_AlphaPrepass_*` | | 107 | `PS_PedAlphaPrepass_*` | | 91 | `PS_PedAlphaPrepass_Decals_*` | | 52 | `PS_AlphaPrepass_Fire_*` | | 38 | `PS_AlphaPrepassSpatter_*` | | 35 | `PS_AlphaPrepassSpatter_Fire_*` | So this is the alpha prepass. A PR for 64-bit image atomics could be checked against that pass alone instead of the whole pack. Worth pairing with the runtime side: the ranking at the top of this issue gives this reason ~18 draws/frame over 4 shaders, so its offline volume (653) and its in-game cost are far apart, which is worth knowing when choosing what to do first. **`a scalar memory read as data`, 771 programs: 385 mesh, 327 pixel, 32 vertex, 27 compute.** 128 distinct family names are affected; the top 15 account for 430 (56%), and they are the character shading path — `PS_DeferredPedTexturedNC` 48, `PS_MirrorReflectionDeferredPedTexturedNC` 47, `PS_DeferredPedDecalTextured` 32, `PS_StudioPedTextured_Eight` 32, `PS_PedTextured_Eight_Alpha` 32, `PS_PedTextured_Eight_Decals` 30, `MSNC_VS_MirrorReflectionPedTransformSkinD` 29, `MSNC_VS_PedTransformSkinD` 29. **`an address in an SGPR that is no root parameter`, 195 programs: all 195 are geometry shaders.** Every one of them is named `GS_VoxelizeGeneric_*` (`GS_VoxelizeGeneric_991d528a_Wrapped`, `…_899ecf3f_…`, `…_f406ea93_…`, and 192 more). Your stage table has no geometry row, and the runtime rankings in this issue attribute this reason to compute programs — in the pack, this reason is one voxelize geometry shader in 195 variants, and 196 geometry programs exist in total, of which exactly one validates. That looks like the narrowest unit of work in the whole histogram: one stage, one family, one reason, 195 programs. ## A reading of `emit/lower.rs` that separates two of these rows `descriptor_data` (`emit/lower.rs:2929`) can stop three ways, and the messages name different causes: the load is not an `s_load_dword{,x2,x4,x8,x16}` writing into scalar registers → `a scalar memory read as data` (:2936, :2944, :2998); no `Role::Resource` descriptor traces back to the load site → `a descriptor read only as data` (:2960); the bits read are an address or a format rather than a size → `a descriptor's address or format read as data` (:2930). So the second and third largest rows of the histogram (771 and 394, the latter 305 of them compute, 35 `PS_PuddleDetect_*`) are not the same problem, and only the first one is about sizes taken from descriptor bits. Happy to re-run this on any named commit with the same worktree method @⁠rocobalt1 used, on this build id. Written with an AI assistant.
Author
Owner

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

Correction to my comment above: one number was wrong. Of the 196 Gs programs, none validates. 195 stop with resources: an address in an SGPR that is no root parameter and one further Gs line I could not classify. My phrase "196 geometry programs, of which exactly one validates" was arithmetic (196 − 195), not a measurement.

For reference, the stage split of the 21,724 validated programs — same total as @⁠WuDiXiaoBo's — is 2,104 vertex, 10,051 pixel, 1,417 compute, 8,152 mesh, 0 geometry. Everything else in that comment stands, including the reconciliation (3,436 emission stops + 360 resource-tracking stops = 3,796) and that all 195 are GS_VoxelizeGeneric_*.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 14:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134406300) **Correction to my comment above: one number was wrong.** Of the 196 `Gs` programs, **none validates.** 195 stop with `resources: an address in an SGPR that is no root parameter` and one further `Gs` line I could not classify. My phrase "196 geometry programs, of which exactly one validates" was arithmetic (`196 − 195`), not a measurement. For reference, the stage split of the 21,724 validated programs — same total as @⁠WuDiXiaoBo's — is 2,104 vertex, 10,051 pixel, 1,417 compute, 8,152 mesh, **0 geometry**. Everything else in that comment stands, including the reconciliation (3,436 emission stops + 360 resource-tracking stops = 3,796) and that all 195 are `GS_VoxelizeGeneric_*`. Written with an AI assistant.
Author
Owner

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

Does the open work on the no root parameter row reach the 195 geometry programs? I measured it, and the answer is no.

Method as @⁠rocobalt1 used it: a clean worktree per commit, cargo build --release -p victory, victory translate <shaders.rpf> --validate --list on my own copy of the package (build b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93), default --jobs, and the runs compared.

build validate refused by the validator stop at emission stop at resource tracking Gs programs
main ffe310e 21,724 162 3,436 360 196
merge base of #710, d2a4bae 21,971 185 2,932 594 196
head of #710, a5a40bc 21,971 185 2,932 594 196
  1. The head of #710 is indistinguishable from its own merge base offline. Every total matches, no reason count changes, no program moves to a different refusal, nothing newly validates. Nothing in this package exercises what the PR changes. @⁠DaviTostes' runtime A/B on #710 says the opposite about the world, and I think both are right: the offline pack contains none of the compute cases the PR is aimed at, and the world reaches cases this pack's offline pass never visits.

  2. The 195 are the same 195 in all three builds. resources: an address in an SGPR that is no root parameter = 195 at d2a4bae, at a5a40bc and at ffe310e; all of them GS_VoxelizeGeneric_*; and in all three, 0 of the 196 Gs programs validate. A PR aimed at that row would have to change what a geometry program's address base is, and none of the open work in that row is written against the geometry stage.

  3. A caution about reading these tables. Main against that same merge base moves 270 programs into "stopped": validated 21,971 → 21,724, validator refusals 185 → 162, emission stops 2,932 → 3,436, resource-tracking stops 594 → 360. Both runs account for exactly 25,682 programs, so this is movement and not a counting error. A program stopped at an earlier step is reported under that step's reason, so one row can grow while programs genuinely get further. Two of these tables are only comparable when the bases match — mine do, and ffe310e against a5a40bc does not, so reading that pair as "the PR changes X" would be wrong. I get the opposite impression from what main itself has done since d2a4bae, which is a question for whoever tracks those merges rather than a conclusion I can draw from one run.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 14:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134545503) **Does the open work on the `no root parameter` row reach the 195 geometry programs? I measured it, and the answer is no.** Method as @⁠rocobalt1 used it: a clean worktree per commit, `cargo build --release -p victory`, `victory translate <shaders.rpf> --validate --list` on my own copy of the package (build `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`), default `--jobs`, and the runs compared. | build | validate | refused by the validator | stop at emission | stop at resource tracking | `Gs` programs | |---|---:|---:|---:|---:|---:| | main `ffe310e` | 21,724 | 162 | 3,436 | 360 | 196 | | merge base of #710, `d2a4bae` | 21,971 | 185 | 2,932 | 594 | 196 | | head of #710, `a5a40bc` | 21,971 | 185 | 2,932 | 594 | 196 | 1. **The head of #710 is indistinguishable from its own merge base offline.** Every total matches, no reason count changes, no program moves to a different refusal, nothing newly validates. Nothing in this package exercises what the PR changes. @⁠DaviTostes' runtime A/B on #710 says the opposite about the world, and I think both are right: the offline pack contains none of the compute cases the PR is aimed at, and the world reaches cases this pack's offline pass never visits. 2. **The 195 are the same 195 in all three builds.** `resources: an address in an SGPR that is no root parameter` = 195 at `d2a4bae`, at `a5a40bc` and at `ffe310e`; all of them `GS_VoxelizeGeneric_*`; and in all three, 0 of the 196 `Gs` programs validate. A PR aimed at that row would have to change what a geometry program's address base is, and none of the open work in that row is written against the geometry stage. 3. **A caution about reading these tables.** Main against that same merge base moves 270 programs into "stopped": validated 21,971 → 21,724, validator refusals 185 → 162, emission stops 2,932 → 3,436, resource-tracking stops 594 → 360. Both runs account for exactly 25,682 programs, so this is movement and not a counting error. A program stopped at an earlier step is reported under that step's reason, so one row can grow while programs genuinely get further. Two of these tables are only comparable when the bases match — mine do, and `ffe310e` against `a5a40bc` does not, so reading that pair as "the PR changes X" would be wrong. I get the opposite impression from what main itself has done since `d2a4bae`, which is a question for whoever tracks those merges rather than a conclusion I can draw from one run. Written with an AI assistant.
Author
Owner

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

The 195 GS_VoxelizeGeneric_* programs: what Leonida measured about them (no game data, pointers only)

@⁠fiestorra's census above says all 195 stop at an address in an SGPR that is no root parameter, and that no open PR is written against the geometry stage. Leonida's translator handles this family, and its docs record the contract it measured over the same 195 programs (build 1.0.2.1). In case it saves someone the reverse engineering, pinned at d0da7dad of the continuation:

  • Their user data is not laid out like the other stages'. In every PS, VS, CS and MS program that reads a pointer from user data it is 32 bits; only the 195 GS read a 64-bit pointer, low half at s8, and below the base they read a constant at s2 where the other stages use odd SGPRs. d3d12_vulkan.md L1730-L1736. That alone would give this error for a tracker that expects one dword per table from the stage base.
  • They are legacy (merged ES/GS) programs on LDS, wave64, with no exp. Inputs: vertex i's base is the dword offset in v0 low / v0 high / v1 low (none of the 195 reads v2-v4), and an LDS read at base + 4·(4·reg + comp) is input-signature register reg, component comp. Outputs: emitted vertex k is dwords [k·4·nreg, (k+1)·4·nreg) of the lane's output area, then s_sendmsg MSG_GS EMIT; CUT ends the strip; MSG_GS_DONE is nothing. design.md L342, L523.
  • The matching vertex stage is an ES payload, in the 195 VS_VoxelizeGeneric_* containers that carry two programs: no exp, outputs written to LDS with ds_write*, lane id from v_mbcnt. design.md L313.
  • A hand-written program with these idioms, checked on GPUs there: gs_tri.asm (the EXEC prologue fed from s3, three LDS vertex reads, three EMITs, CUT, DONE). It assembles with llvm-mc -mcpu=gfx1030, so it can serve as a synthetic fixture here.

I don't have the title, so I can't say which of the two (the 64-bit pointer at s8, or the LDS input/output model, which translate() doesn't reach yet since it selects only VS/PS/CS/MS) each of the 195 hits first. A tester could tell from one of them with victory shader-info --verbose: does the failing load's base sit at s8/s9?

I'm starting on a geometry-stage path against a synthetic fixture and will open it as a draft. If someone is already on this, say so and I'll review theirs instead. AI-assisted (Claude Code).

**@⁠c4k3ss** on GitHub · 2026-11-24 14:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7134779599) **The 195 `GS_VoxelizeGeneric_*` programs: what Leonida measured about them (no game data, pointers only)** @⁠fiestorra's census above says all 195 stop at `an address in an SGPR that is no root parameter`, and that no open PR is written against the geometry stage. Leonida's translator handles this family, and its docs record the contract it measured over the same 195 programs (build 1.0.2.1). In case it saves someone the reverse engineering, pinned at `d0da7dad` of the continuation: - **Their user data is not laid out like the other stages'.** In every PS, VS, CS and MS program that reads a pointer from user data it is 32 bits; only the 195 GS read a **64-bit pointer, low half at `s8`**, and below the base they read a constant at `s2` where the other stages use odd SGPRs. [d3d12_vulkan.md L1730-L1736](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/d3d12_vulkan.md#L1730-L1736). That alone would give this error for a tracker that expects one dword per table from the stage base. - **They are legacy (merged ES/GS) programs on LDS, wave64, with no `exp`.** Inputs: vertex *i*'s base is the dword offset in `v0` low / `v0` high / `v1` low (none of the 195 reads `v2`-`v4`), and an LDS read at base + 4·(4·reg + comp) is input-signature register *reg*, component *comp*. Outputs: emitted vertex *k* is dwords [k·4·nreg, (k+1)·4·nreg) of the lane's output area, then `s_sendmsg MSG_GS` EMIT; CUT ends the strip; `MSG_GS_DONE` is nothing. [design.md L342](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/design.md#L342), [L523](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/design.md#L523). - **The matching vertex stage is an ES payload**, in the 195 `VS_VoxelizeGeneric_*` containers that carry two programs: no `exp`, outputs written to LDS with `ds_write*`, lane id from `v_mbcnt`. [design.md L313](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/design.md#L313). - **A hand-written program with these idioms**, checked on GPUs there: [`gs_tri.asm`](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/runtime/test/shaders/gs_tri.asm) (the EXEC prologue fed from `s3`, three LDS vertex reads, three EMITs, CUT, DONE). It assembles with `llvm-mc -mcpu=gfx1030`, so it can serve as a synthetic fixture here. I don't have the title, so I can't say which of the two (the 64-bit pointer at `s8`, or the LDS input/output model, which `translate()` doesn't reach yet since it selects only VS/PS/CS/MS) each of the 195 hits first. A tester could tell from one of them with `victory shader-info --verbose`: does the failing load's base sit at `s8`/`s9`? I'm starting on a geometry-stage path against a synthetic fixture and will open it as a draft. If someone is already on this, say so and I'll review theirs instead. AI-assisted (Claude Code).
Author
Owner

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

Two things from the tester tree, which is at update 8 now (integration/testers, d45ea23, based on main ffe310e since update 7).

@⁠c4k3ss, @⁠fiestorra: the 195 geometry programs translate in the tree

Before you start a geometry path: one exists, in the tree since today, as two commits that are not an upstream PR yet.

  • dcf123c translates uncompressed native FSSM containers (the geometry containers need it).
  • b40c64a translates single-stream triangle geometry programs to DXIL geometry shaders, tracing the console's copy vertex shader for what each vertex holds.

Counted offline on my copy of the title's shader file (victory translate --host-lanes 32-32 --validate --list, 25,889 programs, compared program by program against the tree without them): all 195 Gs programs that stopped at an address in an SGPR that is no root parameter validate, and no other program changes. There is a test that draws a geometry program's output on the GPU and compares it with a reference draw; it passes here on an RTX 5070. What is not known: what these programs draw in the title, since nobody has run them there. An independent review found other stages unchanged, and two limits that are written down in INTEGRATION.md.

@⁠c4k3ss your notes on the layout are a useful cross-check for a review of it, and a review is worth more than a second implementation. PR creation is open again upstream, so this should become a PR of its own; I will say here when it is.

@⁠nullmarsh: what the three programs are, and something to try

Thank you for naming the call and the hashes. I found the three in my copy of the shader file by the same hash the runtime uses and looked at the DXIL the tree emits for them, offline. No program content here, only shape:

  • They are siblings: three variants of one very large compute program. Each is about 830 KB of DXIL, about 1,480 blocks, 23,000 selects, and fixed 32-lane waves with over 500 waveActiveBallot calls. That is the wave64 stack's console flow, so they only translate at all in a tree that has that stack. That would explain why #483 on plain main runs on an RX 9070 XT: there these programs never reach the compiler.
  • Each has about 735 heap handles, and #483's guard adds a compare and a select in front of every one. Only 2 of the 735 are the per-lane handles my merge added the guard to. So I no longer suspect that addition; the likelier trigger is the guard's 735 compare-and-select pairs in a module this size.

So the next tree update will carry a translation-time switch, VICTORY_HEAP_GUARD_FORM: umin bounds the index with one UMin in place of the compare and select (the same value), and off emits no bound at all, as before #483. It is written and waiting for its turn in this machine's test queue; I will post the head when it is pushed. With it, two runs on a cleared shader cache would say whether the form of the guard is what AMD's compiler trips on (umin survives) or the guard at all in these modules (off survives, umin does not).

The title was not launched for any of this; the counts and the DXIL shapes come from its shader file offline. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 15:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7135992171) Two things from the tester tree, which is at update 8 now ([`integration/testers`](https://github.com/r4tedx/VIctory/tree/integration/testers), `d45ea23`, based on `main` `ffe310e` since update 7). ## @⁠c4k3ss, @⁠fiestorra: the 195 geometry programs translate in the tree Before you start a geometry path: one exists, in the tree since today, as two commits that are not an upstream PR yet. - [`dcf123c`](https://github.com/r4tedx/VIctory/commit/dcf123c) translates uncompressed native FSSM containers (the geometry containers need it). - [`b40c64a`](https://github.com/r4tedx/VIctory/commit/b40c64a) translates single-stream triangle geometry programs to DXIL geometry shaders, tracing the console's copy vertex shader for what each vertex holds. Counted offline on my copy of the title's shader file (`victory translate --host-lanes 32-32 --validate --list`, 25,889 programs, compared program by program against the tree without them): all 195 `Gs` programs that stopped at `an address in an SGPR that is no root parameter` validate, and no other program changes. There is a test that draws a geometry program's output on the GPU and compares it with a reference draw; it passes here on an RTX 5070. What is not known: what these programs draw in the title, since nobody has run them there. An independent review found other stages unchanged, and two limits that are written down in `INTEGRATION.md`. @⁠c4k3ss your notes on the layout are a useful cross-check for a review of it, and a review is worth more than a second implementation. PR creation is open again upstream, so this should become a PR of its own; I will say here when it is. ## @⁠nullmarsh: what the three programs are, and something to try Thank you for naming the call and the hashes. I found the three in my copy of the shader file by the same hash the runtime uses and looked at the DXIL the tree emits for them, offline. No program content here, only shape: - They are siblings: three variants of one very large compute program. Each is about 830 KB of DXIL, about 1,480 blocks, 23,000 selects, and fixed 32-lane waves with over 500 `waveActiveBallot` calls. That is the wave64 stack's console flow, so they only translate at all in a tree that has that stack. That would explain why #483 on plain `main` runs on an RX 9070 XT: there these programs never reach the compiler. - Each has about 735 heap handles, and #483's guard adds a compare and a select in front of every one. Only 2 of the 735 are the per-lane handles my merge added the guard to. So I no longer suspect that addition; the likelier trigger is the guard's 735 compare-and-select pairs in a module this size. So the next tree update will carry a translation-time switch, `VICTORY_HEAP_GUARD_FORM`: `umin` bounds the index with one `UMin` in place of the compare and select (the same value), and `off` emits no bound at all, as before #483. It is written and waiting for its turn in this machine's test queue; I will post the head when it is pushed. With it, two runs on a cleared shader cache would say whether the form of the guard is what AMD's compiler trips on (`umin` survives) or the guard at all in these modules (`off` survives, `umin` does not). The title was not launched for any of this; the counts and the DXIL shapes come from its shader file offline. AI-assisted.
Author
Owner

@⁠c4k3ss on GitHub · 2026-11-24 15:46 UTC · original

Review of r4tedx/VIctory dcf123c + b40c64a (geometry programs) against Leonida's measured contract

@⁠r4tedx, as asked: read against Leonida's design.md "Geometry shaders" / "VS as ES" rows and the user-SGPR census, from your code and synthetic data only. I have no title files, so nothing below says what the 195 draw; it says whether the model you implemented is the one Leonida measured on them.

Where the two agree (all checked in geometry.rs)

  1. Input vertex addresses. raise seeds v0 as Packed(0) and v1 as Packed(2), and only v_lshlrev_b32 2 + v_and_b32 0x3fffc (low half) or the SDWA WORD_1 form (high half) become Input(i). That is Leonida's "vertex i sits at the dword offset in v0 lo / v0 hi / v1 lo"; its count (all 195 read only v0/v1, none v2-v4) is why refusing any other address origin costs nothing.
  2. Input dwords. (v, index, dword) with dword = offset0/offset1 of ds_read2_b32 (or byte offset / 4 for ds_read_b32), then find_input(dword / 4, dword % 4) in lower.rs: Leonida's "LDS read at base + 4·(4·reg + comp) is input-signature register reg, component comp".
  3. Output ring. Vertex k = dwords [k·vertex_dwords, (k+1)·vertex_dwords) of the lane's area, checked against invocation_dwords, with vertex_dwords × max_vertices == invocation_dwords enforced. Leonida saw the same shape (vertex k at k·4·nreg, 20 dwords = 5 OSG1 registers, every write inside a declared mask). You go one step further by tracing the copy VS, so dword → export target is read from the console's own program rather than assumed from the signature. Good.
  4. Messages. 0x22 EMIT → emitStream, 0x12 CUT → cutStream, 3 GS_DONE → nothing, on stream 0 only. Same mapping as Leonida's row. GS_OP_EMIT_CUT (0x32) is refused as "a geometry stream message"; Leonida only exercises it with a synthetic program, and since all 195 raise, none of them uses it. Fine as a limit, worth one line in INTEGRATION.md.
  5. EXEC prologue. invocation_ir matches the exact encodings of s_bfe_i32 r, s3, (8:8) / s_bfm_b64 exec, r, 0 / s_cmp_eq_u32 r, 64 / s_cselect_b64 exec, -1, exec, nops the two EXEC writes and requires wave64. That is the prologue Leonida's gs_tri.asm mirrors ("fed s3 = 64 << 8") and its FSSM wave flag count (wave64 in 195 of 195).
  6. The pointer at s8 (the census row). Leonida's census found the GS to be the only stage reading a 64-bit pointer (low half at s8) plus a const32 at s2, and could not say what they were. Your trace answers it: s[8:9] (high half masked 0xff) → s_load_dword +0xb8 → ring page, shifted by 8, plus the s2 wave offset, plus lane × stride from v_mbcnt. So the old failure ("an address in an SGPR that is no root parameter") was this internal GSVS-ring table, not a root-parameter layout difference, and exempting exactly the traced address_steps from resource::track (rather than the whole stage) is the right fix. It is also consistent with the tree's GS user-SGPR base of 8.
  7. VS as ES. The ES payload (no exp, ds_write* into LDS, lane id from v_mbcnt) stays untranslated and the vertex slot translates the exp VS payload, with DXIL loadInput(..., vertexIndex) replacing the LDS handoff on the host. Same stance as Leonida, whose fssm_crosscheck.md §6 leaves open which payload the console selects. One thing to confirm from your side: in a GS pipeline, the vertex slot's container is one of the two-payload $VS_VoxelizeGeneric_* ones; translate_for picks the first Vs-stage program (Es is filtered out), so it should be the exp payload, and its OSG1 has to match the GS ISG1 for Direct3D to link the stages. Did the 195 GS get paired with their VS in the offline count, or only validated alone?

What I ran

  • Your tree at d45ea23 (a worktree), cargo test --workspace --no-fail-fast -- --test-threads=4 on an RTX 5070 Ti (driver 621.24, Windows 11): 0 failures; victory-shader 237 passed, 2 ignored (benchmarks). The three geometry tests and the raw-FSSM test pass, and the draw compare ran for real (dxc.exe is beside dxil.dll 10.0.26100 here).
  • A fixture of my own, not from the title: Leonida's gs_tri.asm input side verbatim (the s3 prologue, v0 lo / v0 hi / v1 lo with the SDWA high-word form, three ds_read2_b32 pairs per vertex), on top of the ring prologue your tracer expects (s[8:9] + 0xb8, s2, v_mbcnt, v_mad_u32_u24 with stride 96 = 3 vertices × 8 dwords), writing dwords 0-5 of each vertex, EMIT ×3, CUT, GS_DONE. Assembled with llvm-mc -mcpu=gfx1030. Copy VS: v_lshl_add_u32 ring address, ds_read2_b32 dwords 0-3 → exp pos0, dwords 4-5 → exp param0, with param0 → row 1 in the copy's output table. Record built with a sized variant of your geometry_part (24 / 3 / 8 dwords).
    • raise: 9 loads = vertex i ∈ {0,1,2} × dwords 0-5; 3 Emit each with pos (target 12, four values) and param (target 32, two values, two None), then Cut; 13 address steps exempt from root tracking.
    • Spliced into a dxc-built gs_6_6 container with SV_Position + TEXCOORD0: translates, validates with dxil.dll, and a 16×16 draw compared with the dxc GS under a PS that writes TEXCOORD0 into G/B is identical on the 5070 Ti and on WARP (66/256 pixels covered). That exercises the parameter-export path (target 32+ → copy output table → OSG1 row), which the tree's own test does not (pos0 only).
    • Variants: ds_read_b32 with byte offsets raises the same (vertex, dword) pairs as ds_read2_b32; GS_OP_EMIT_CUT is refused; Leonida's gs_tri unmodified is refused at its first ds_write2_b32 (it writes at LDS address 0, Leonida's synthetic offsets, not the table ring), which is expected.

Observations, none blocking

  • Snapshot at EMIT vs ring read at the end. raise captures each ring slot's SSA value at the EMIT that consumes it; the console's copy VS reads the ring after the GS ends. A program that rewrites vertex k's slot after its EMIT therefore translates silently with the earlier value (checked with a variant: raise returns Ok). A compiler will not emit that for a stream-ordered GS, so this is a note for the limits list, or a cheap refusal (a store below vertex × vertex_dwords after an EMIT).
  • Record offsets. The copy record at E+0x34 and the sizes at E+0x27c/0x280/0x284/0x288/0x28c are not in Leonida's docs, so I cannot cross-check them. The two internal checks (vertex_dwords × max_vertices == invocation_dwords, PSV0 MaxVertexCount == E+0x284) holding on 195 of 195 are the evidence; worth saying so in INTEGRATION.md.
  • Limits list. Add: single stream, triangle input only (the PSV0 gate wants 3 / 5 / 1, so point, line and adjacency inputs are refused), no EMIT_CUT, no control flow in the GS body or past the copy's stream predicate, 16-bit inputs/outputs refused.
  • geometry_vertices_match_reference_draw returns silently when dxc.exe is not beside dxil.dll, so a run without dxc reports it as passed. An eprintln! or a documented skip would keep "the GPU test passed" meaningful on other machines.
  • dcf123c: fine. The MAX_UNPACKED bound on raw entries mirrors the packed path, and the behaviour change (an unparseable raw entry or GS slot now fails the container) is already in your notes.

Net: the model in b40c64a is the one Leonida measured on the 195, and it is stricter where it matters (traced ring address, traced copy exports, exact prologue). I would not change anything before an upstream PR beyond the limits list; the VS-pairing question above is the one I could not answer from synthetic data. AI-assisted (Claude Code).

**@⁠c4k3ss** on GitHub · 2026-11-24 15:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7136576641) **Review of r4tedx/VIctory `dcf123c` + `b40c64a` (geometry programs) against Leonida's measured contract** @⁠r4tedx, as asked: read against Leonida's [design.md "Geometry shaders" / "VS as ES"](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/design.md#L342) rows and the [user-SGPR census](https://github.com/ubiquitarianism/leonida/blob/d0da7dade8b688f2e0f7f23f4155d6cbb438809e/docs/d3d12_vulkan.md#L1730-L1736), from your code and synthetic data only. I have no title files, so nothing below says what the 195 draw; it says whether the model you implemented is the one Leonida measured on them. **Where the two agree (all checked in `geometry.rs`)** 1. **Input vertex addresses.** `raise` seeds `v0` as `Packed(0)` and `v1` as `Packed(2)`, and only `v_lshlrev_b32 2` + `v_and_b32 0x3fffc` (low half) or the SDWA `WORD_1` form (high half) become `Input(i)`. That is Leonida's "vertex i sits at the dword offset in v0 lo / v0 hi / v1 lo"; its count (all 195 read only `v0`/`v1`, none `v2`-`v4`) is why refusing any other address origin costs nothing. 2. **Input dwords.** `(v, index, dword)` with `dword = offset0/offset1` of `ds_read2_b32` (or byte offset / 4 for `ds_read_b32`), then `find_input(dword / 4, dword % 4)` in `lower.rs`: Leonida's "LDS read at base + 4·(4·reg + comp) is input-signature register reg, component comp". 3. **Output ring.** Vertex k = dwords `[k·vertex_dwords, (k+1)·vertex_dwords)` of the lane's area, checked against `invocation_dwords`, with `vertex_dwords × max_vertices == invocation_dwords` enforced. Leonida saw the same shape (vertex k at `k·4·nreg`, 20 dwords = 5 OSG1 registers, every write inside a declared mask). You go one step further by tracing the copy VS, so dword → export target is read from the console's own program rather than assumed from the signature. Good. 4. **Messages.** `0x22` EMIT → `emitStream`, `0x12` CUT → `cutStream`, `3` GS_DONE → nothing, on stream 0 only. Same mapping as Leonida's row. `GS_OP_EMIT_CUT` (`0x32`) is refused as "a geometry stream message"; Leonida only exercises it with a synthetic program, and since all 195 raise, none of them uses it. Fine as a limit, worth one line in INTEGRATION.md. 5. **EXEC prologue.** `invocation_ir` matches the exact encodings of `s_bfe_i32 r, s3, (8:8)` / `s_bfm_b64 exec, r, 0` / `s_cmp_eq_u32 r, 64` / `s_cselect_b64 exec, -1, exec`, nops the two EXEC writes and requires wave64. That is the prologue Leonida's `gs_tri.asm` mirrors ("fed s3 = 64 << 8") and its FSSM wave flag count (wave64 in 195 of 195). 6. **The pointer at s8 (the census row).** Leonida's census found the GS to be the only stage reading a 64-bit pointer (low half at s8) plus a `const32` at s2, and could not say what they were. Your trace answers it: `s[8:9]` (high half masked `0xff`) → `s_load_dword +0xb8` → ring page, shifted by 8, plus the s2 wave offset, plus `lane × stride` from `v_mbcnt`. So the old failure ("an address in an SGPR that is no root parameter") was this internal GSVS-ring table, not a root-parameter layout difference, and exempting exactly the traced `address_steps` from `resource::track` (rather than the whole stage) is the right fix. It is also consistent with the tree's GS user-SGPR base of 8. 7. **VS as ES.** The ES payload (no `exp`, `ds_write*` into LDS, lane id from `v_mbcnt`) stays untranslated and the vertex slot translates the `exp` VS payload, with DXIL `loadInput(..., vertexIndex)` replacing the LDS handoff on the host. Same stance as Leonida, whose `fssm_crosscheck.md` §6 leaves open which payload the console selects. One thing to confirm from your side: in a GS pipeline, the vertex slot's container is one of the two-payload `$VS_VoxelizeGeneric_*` ones; `translate_for` picks the first `Vs`-stage program (`Es` is filtered out), so it should be the `exp` payload, and its OSG1 has to match the GS ISG1 for Direct3D to link the stages. Did the 195 GS get paired with their VS in the offline count, or only validated alone? **What I ran** - Your tree at `d45ea23` (a worktree), `cargo test --workspace --no-fail-fast -- --test-threads=4` on an RTX 5070 Ti (driver 621.24, Windows 11): 0 failures; `victory-shader` 237 passed, 2 ignored (benchmarks). The three geometry tests and the raw-FSSM test pass, and the draw compare ran for real (dxc.exe is beside dxil.dll 10.0.26100 here). - A fixture of my own, not from the title: Leonida's `gs_tri.asm` input side verbatim (the `s3` prologue, `v0` lo / `v0` hi / `v1` lo with the SDWA high-word form, three `ds_read2_b32` pairs per vertex), on top of the ring prologue your tracer expects (`s[8:9]` + `0xb8`, `s2`, `v_mbcnt`, `v_mad_u32_u24` with stride 96 = 3 vertices × 8 dwords), writing dwords 0-5 of each vertex, EMIT ×3, CUT, GS_DONE. Assembled with `llvm-mc -mcpu=gfx1030`. Copy VS: `v_lshl_add_u32` ring address, `ds_read2_b32` dwords 0-3 → `exp pos0`, dwords 4-5 → `exp param0`, with `param0 → row 1` in the copy's output table. Record built with a sized variant of your `geometry_part` (24 / 3 / 8 dwords). - `raise`: 9 loads = vertex i ∈ {0,1,2} × dwords 0-5; 3 `Emit` each with `pos` (target 12, four values) and `param` (target 32, two values, two `None`), then `Cut`; 13 address steps exempt from root tracking. - Spliced into a dxc-built `gs_6_6` container with `SV_Position` + `TEXCOORD0`: translates, validates with dxil.dll, and a 16×16 draw compared with the dxc GS under a PS that writes `TEXCOORD0` into G/B is identical on the 5070 Ti and on WARP (66/256 pixels covered). That exercises the parameter-export path (`target 32+` → copy output table → OSG1 row), which the tree's own test does not (`pos0` only). - Variants: `ds_read_b32` with byte offsets raises the same (vertex, dword) pairs as `ds_read2_b32`; `GS_OP_EMIT_CUT` is refused; Leonida's `gs_tri` unmodified is refused at its first `ds_write2_b32` (it writes at LDS address 0, Leonida's synthetic offsets, not the table ring), which is expected. **Observations, none blocking** - **Snapshot at EMIT vs ring read at the end.** `raise` captures each ring slot's SSA value at the EMIT that consumes it; the console's copy VS reads the ring after the GS ends. A program that rewrites vertex k's slot after its EMIT therefore translates silently with the earlier value (checked with a variant: `raise` returns Ok). A compiler will not emit that for a stream-ordered GS, so this is a note for the limits list, or a cheap refusal (a store below `vertex × vertex_dwords` after an EMIT). - **Record offsets.** The copy record at E+0x34 and the sizes at E+0x27c/0x280/0x284/0x288/0x28c are not in Leonida's docs, so I cannot cross-check them. The two internal checks (`vertex_dwords × max_vertices == invocation_dwords`, PSV0 `MaxVertexCount == E+0x284`) holding on 195 of 195 are the evidence; worth saying so in INTEGRATION.md. - **Limits list.** Add: single stream, triangle input only (the PSV0 gate wants 3 / 5 / 1, so point, line and adjacency inputs are refused), no `EMIT_CUT`, no control flow in the GS body or past the copy's stream predicate, 16-bit inputs/outputs refused. - **`geometry_vertices_match_reference_draw` returns silently** when `dxc.exe` is not beside `dxil.dll`, so a run without dxc reports it as passed. An `eprintln!` or a documented skip would keep "the GPU test passed" meaningful on other machines. - `dcf123c`: fine. The `MAX_UNPACKED` bound on raw entries mirrors the packed path, and the behaviour change (an unparseable raw entry or GS slot now fails the container) is already in your notes. Net: the model in `b40c64a` is the one Leonida measured on the 195, and it is stricter where it matters (traced ring address, traced copy exports, exact prologue). I would not change anything before an upstream PR beyond the limits list; the VS-pairing question above is the one I could not answer from synthetic data. AI-assisted (Claude Code).
Author
Owner

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

@⁠nullmarsh the switch is pushed: integration/testers is at da605bc, one commit on update 8.

VICTORY_HEAP_GUARD_FORM is read when a program is translated, so each run needs a shader cache of its own (or a cleared one):

  • VICTORY_HEAP_GUARD_FORM=umin: the index is bounded by one UMin with the guard, in place of the compare and select. Same value, one operation per handle.
  • VICTORY_HEAP_GUARD_FORM=off: no bound is emitted, as before #483. The control.
  • unset: as before.

What I checked here: #483's GPU test (an index past the heap reads the guard slot) passes with umin and with the default on an RTX 5070 and WARP, and an offline count over the title's shader file with umin validates exactly the same programs as the default (25,889 compared, none changed). Whether either form gets past your driver's compiler is the open question, and only your card can answer it.

Reading the two runs: off survives and umin does not means the bound itself, in modules of that size, is what the compiler trips on; both survive means it was the compare-and-select form, and umin can become the default. If off crashes too, the guard is not the trigger and I am wrong about what that merge changes in these three programs.

No need to revert 7ef2c41 for these runs. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 15:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7136609794) @⁠nullmarsh the switch is pushed: `integration/testers` is at [`da605bc`](https://github.com/r4tedx/VIctory/commit/da605bc), one commit on update 8. `VICTORY_HEAP_GUARD_FORM` is read when a program is translated, so each run needs a shader cache of its own (or a cleared one): - `VICTORY_HEAP_GUARD_FORM=umin`: the index is bounded by one `UMin` with the guard, in place of the compare and select. Same value, one operation per handle. - `VICTORY_HEAP_GUARD_FORM=off`: no bound is emitted, as before #483. The control. - unset: as before. What I checked here: #483's GPU test (an index past the heap reads the guard slot) passes with `umin` and with the default on an RTX 5070 and WARP, and an offline count over the title's shader file with `umin` validates exactly the same programs as the default (25,889 compared, none changed). Whether either form gets past your driver's compiler is the open question, and only your card can answer it. Reading the two runs: `off` survives and `umin` does not means the bound itself, in modules of that size, is what the compiler trips on; both survive means it was the compare-and-select form, and `umin` can become the default. If `off` crashes too, the guard is not the trigger and I am wrong about what that merge changes in these three programs. No need to revert `7ef2c41` for these runs. AI-assisted.
Author
Owner

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

@⁠c4k3ss thank you. That is a real review: a second fixture, the parameter-export path the tree's own test does not reach, and a run on another card.

Your question: were the 195 paired with their vertex stage? No. The offline count validates each program on its own (victory translate --validate), so what it shows is that all 195 geometry programs translate to modules dxil.dll accepts. It says nothing about whether each links with the vertex container's exp payload, that is, whether that payload's output signature matches the geometry input signature, and no pipeline was created for them. So pairing is unverified, and it is the first thing to check before an upstream PR: a pipeline per pair over the shader file, which needs no title run.

What I take from the rest, for the PR and for INTEGRATION.md at the tree's next update:

  • the limits list as you wrote it: single stream, triangle input only, no EMIT_CUT, no control flow in the body or past the copy's stream predicate, 16-bit inputs and outputs refused;
  • the record offsets rest on two internal checks holding on 195 of 195, with no outside cross-check;
  • a slot rewritten after its EMIT translates with the earlier value. A refusal there is cheap and I would rather have it than a note;
  • geometry_vertices_match_reference_draw returns silently without dxc.exe. It ran for real here too (dxc is beside dxil.dll), but it should say when it skips.

The commits are the work of another session of this project, which is preparing the upstream PR; I have passed your review on in full, including your fixture as the model for a parameter-export test. I will post the PR number here.

AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 15:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7136704203) @⁠c4k3ss thank you. That is a real review: a second fixture, the parameter-export path the tree's own test does not reach, and a run on another card. **Your question: were the 195 paired with their vertex stage?** No. The offline count validates each program on its own (`victory translate --validate`), so what it shows is that all 195 geometry programs translate to modules `dxil.dll` accepts. It says nothing about whether each links with the vertex container's `exp` payload, that is, whether that payload's output signature matches the geometry input signature, and no pipeline was created for them. So pairing is unverified, and it is the first thing to check before an upstream PR: a pipeline per pair over the shader file, which needs no title run. **What I take from the rest**, for the PR and for `INTEGRATION.md` at the tree's next update: - the limits list as you wrote it: single stream, triangle input only, no `EMIT_CUT`, no control flow in the body or past the copy's stream predicate, 16-bit inputs and outputs refused; - the record offsets rest on two internal checks holding on 195 of 195, with no outside cross-check; - a slot rewritten after its EMIT translates with the earlier value. A refusal there is cheap and I would rather have it than a note; - `geometry_vertices_match_reference_draw` returns silently without `dxc.exe`. It ran for real here too (dxc is beside `dxil.dll`), but it should say when it skips. The commits are the work of another session of this project, which is preparing the upstream PR; I have passed your review on in full, including your fixture as the model for a parameter-export test. I will post the PR number here. AI-assisted.
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 15:57 UTC · original

@⁠r4tedx thanks for building the corrected stack. Runtime numbers from the RX 9070 XT, as you suggested.

Build: testers/293-stack-with-704 at 45c03c0 + #493 + #483 (the crash fixes from my earlier runs). #483 conflicts with #704 in descriptor/host.rs, since both reserve slots after the dynamic range. I resolved it as title slots → dynamic → #483's guard slot (count + dynamic) → #704's alias slots (alias_base = count + extra + guard), with every heap size counting guard + aliases. Offline it validates 23,132 programs, compute 1,975, matching your 1,975 exactly. My total is 12 higher because the console DLLs' shaders are included.

Runtime, default loop limit and 2 s TDR, same scripted input:

my stack (no #704) your stack + #493 + #483
does not translate during the run 170 165
time in the world ~10 to 19 s ~10 s
GPU per world frame (mean / max) 0.6 to 1.4 s 0.66 / 1.05 s
how it ended DEVICE_HUNG in mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97] the same draw

So on this card #704 neither helps nor hurts the TDR. The extra compute programs didn't make it come sooner, but the run ends where it always does: the pixel program 1af4a50c7fb40c97, whose loops run to LOOP_LIMIT (see #71). Until that loop terminates as on the console, every stack on RDNA4 hits the TDR within seconds of the world at default settings.

AI-assisted (Claude Code). Counts and VIctory's own log text only; no game data.

**@⁠h0useadv** on GitHub · 2026-11-24 15:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7136903511) @⁠r4tedx thanks for building the corrected stack. Runtime numbers from the RX 9070 XT, as you suggested. **Build:** `testers/293-stack-with-704` at `45c03c0` + #493 + #483 (the crash fixes from my earlier runs). #483 conflicts with #704 in `descriptor/host.rs`, since both reserve slots after the dynamic range. I resolved it as title slots → dynamic → #483's guard slot (`count + dynamic`) → #704's alias slots (`alias_base = count + extra + guard`), with every heap size counting `guard + aliases`. Offline it validates 23,132 programs, compute **1,975**, matching your 1,975 exactly. My total is 12 higher because the console DLLs' shaders are included. **Runtime**, default loop limit and 2 s TDR, same scripted input: | | my stack (no #704) | your stack + #493 + #483 | |---|---|---| | `does not translate` during the run | 170 | **165** | | time in the world | ~10 to 19 s | ~10 s | | GPU per world frame (mean / max) | 0.6 to 1.4 s | 0.66 / 1.05 s | | how it ended | `DEVICE_HUNG` in `mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]` | **the same draw** | So on this card #704 neither helps nor hurts the TDR. The extra compute programs didn't make it come sooner, but the run ends where it always does: the pixel program `1af4a50c7fb40c97`, whose loops run to `LOOP_LIMIT` (see #71). Until that loop terminates as on the console, every stack on RDNA4 hits the TDR within seconds of the world at default settings. AI-assisted (Claude Code). Counts and VIctory's own log text only; no game data.
Author
Owner

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

@⁠h0useadv, thanks for running it. Your offline compute count matching (1,975) and the runtime A/B together settle #704's part on RDNA4: it doesn't move the TDR either way. The run ends on the same mesh 4 / pixel 1af4a50c7fb40c97 draw with and without it, so that pixel program's loop is what blocks the world on this card, as you say.

Your descriptor/host.rs resolution with #483 (title slots, then dynamic, then #483's guard slot, then #704's alias pool, with every heap size counting both) keeps #483's guard slot right after the dynamic slots (count + extra), where #483 places it, and puts #704's pool after it. That ordering looks right to me from the two PRs' code; I haven't built that combination here.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-24 16:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7137170224) @⁠h0useadv, thanks for running it. Your offline compute count matching (1,975) and the runtime A/B together settle #704's part on RDNA4: it doesn't move the TDR either way. The run ends on the same mesh 4 / pixel `1af4a50c7fb40c97` draw with and without it, so that pixel program's loop is what blocks the world on this card, as you say. Your `descriptor/host.rs` resolution with #483 (title slots, then dynamic, then #483's guard slot, then #704's alias pool, with every heap size counting both) keeps #483's guard slot right after the dynamic slots (`count + extra`), where #483 places it, and puts #704's pool after it. That ordering looks right to me from the two PRs' code; I haven't built that combination here. AI-assisted (Claude Code).
Author
Owner

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

Tester tree, update 9: integration/testers is at 94e0ea5. It adds #704 on #193 (buffers of unknown stride), #489 (root arguments from the spill table), #294 (root UAVs, here as bounded one-view tables) and #346 (indirect rectangle draws), on main ffe310e.

Offline, on my copy of the title's shader file (victory translate --host-lanes 32-32 --validate --list, 25,889 programs, compared program by program with update 8): 205 more programs validate and none is lost, 24,933 in all. a structured buffer of unknown stride goes from 180 programs to 0. Of the 60 programs with "Cull" in their name, 60 validate where 30 did: the 30 InstanceCulling compute programs were all stopped at unknown stride. Tests here: 525 passed, 0 failed (one run, RTX 5070).

Not known: what those programs do when they run. Nobody has run this head in the title. One tester's own port of #704 onto the tree at update 5 had four of the culling programs running and hung after 111 s on a compute dispatch, where the tree without #704 held 600 to 900 s on other cards (on #704). That was one run of another integration, taken before a guard this update has (a buffer view of no elements is no longer made; that case removed the device with 0x887A0001 in another tester's run), so it is a direction to check, not a known fault. INTEGRATION.md opens with it, with what to compare (da605bc, the head before) and what to try (VICTORY_SKIP_PIPELINES with the newly translated compute hashes) if a run gets shorter.

So the useful report from a run of this head is: how long it holds against your run of an earlier head, whether the culling programs show as translated in the log, and whether the scene changes.

@⁠nullmarsh nothing here changes what I asked of you: the VICTORY_HEAP_GUARD_FORM switch is in this head as well.

The title was not launched; the counts come from its shader file offline. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 16:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7137413184) **Tester tree, update 9:** [`integration/testers`](https://github.com/r4tedx/VIctory/tree/integration/testers) is at `94e0ea5`. It adds #704 on #193 (buffers of unknown stride), #489 (root arguments from the spill table), #294 (root UAVs, here as bounded one-view tables) and #346 (indirect rectangle draws), on `main` `ffe310e`. **Offline**, on my copy of the title's shader file (`victory translate --host-lanes 32-32 --validate --list`, 25,889 programs, compared program by program with update 8): 205 more programs validate and none is lost, 24,933 in all. `a structured buffer of unknown stride` goes from 180 programs to 0. Of the 60 programs with "Cull" in their name, 60 validate where 30 did: the 30 `InstanceCulling` compute programs were all stopped at unknown stride. Tests here: 525 passed, 0 failed (one run, RTX 5070). **Not known: what those programs do when they run.** Nobody has run this head in the title. One tester's own port of #704 onto the tree at update 5 had four of the culling programs running and hung after 111 s on a compute dispatch, where the tree without #704 held 600 to 900 s on other cards ([on #704](https://git.gtahub.st/github/Marvisak--VIctory/pulls/704)). That was one run of another integration, taken before a guard this update has (a buffer view of no elements is no longer made; that case removed the device with `0x887A0001` in another tester's run), so it is a direction to check, not a known fault. `INTEGRATION.md` opens with it, with what to compare (`da605bc`, the head before) and what to try (`VICTORY_SKIP_PIPELINES` with the newly translated compute hashes) if a run gets shorter. So the useful report from a run of this head is: how long it holds against your run of an earlier head, whether the culling programs show as translated in the log, and whether the scene changes. @⁠nullmarsh nothing here changes what I asked of you: the `VICTORY_HEAP_GUARD_FORM` switch is in this head as well. The title was not launched; the counts come from its shader file offline. AI-assisted.
Author
Owner

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

@⁠r4tedx Partial result for VICTORY_HEAP_GUARD_FORM on da605bc. The default form hasn't run at this head yet, so this can't be read against your table yet. RX 9060 XT, diag build, own empty shader cache per arm, 420 s, 1 run each:

arm 1c02f8131c508c75 501f0865fdf45dfd 072f5fe96efd27e1 after that
umin pipeline created at 287 s 213 s 190 s ran on 128 s to my limit: no crash, no removal
off created at 271 s first bound at 58 s; neither translated nor refused by the limit same 145 s, no crash

(Seconds from launch; the world, first frame with ≥1,000 draws, came at 73/68 s.) So with umin, all three CreateComputePipelineState calls returned on this card. The off arm only reached 1c02f8131c508c75, the program that faulted first at update 6.

Running next: the default form (fresh cache) and off again, each until all three are created or it crashes.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7137502786) @⁠r4tedx Partial result for `VICTORY_HEAP_GUARD_FORM` on `da605bc`. The default form hasn't run at this head yet, so this can't be read against your table yet. RX 9060 XT, diag build, own empty shader cache per arm, 420 s, 1 run each: | arm | `1c02f8131c508c75` | `501f0865fdf45dfd` | `072f5fe96efd27e1` | after that | |---|---|---|---|---| | `umin` | pipeline created at 287 s | 213 s | 190 s | ran on 128 s to my limit: no crash, no removal | | `off` | created at 271 s | first bound at 58 s; neither translated nor refused by the limit | same | 145 s, no crash | (Seconds from launch; the world, first frame with ≥1,000 draws, came at 73/68 s.) So with `umin`, all three `CreateComputePipelineState` calls returned on this card. The `off` arm only reached `1c02f8131c508c75`, the program that faulted first at update 6. Running next: the default form (fresh cache) and `off` again, each until all three are created or it crashes. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

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

@⁠r4tedx The other two arms on da605bc, same setup (RX 9060 XT, diag build, own empty shader cache per arm, 1 run each). Seconds from launch until each pipeline was created:

arm 1c02f8131c508c75 501f0865fdf45dfd 072f5fe96efd27e1 outcome
default bound at 55 s, not yet translated bound at 55 s, not yet translated translated at 143 s, no pipeline crash at 160 s: 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8), under D3D12Core from victory.exe
off (2nd run) 129 s 144 s 103 s no crash; stopped 60 s after the last one
umin (earlier) 287 s 213 s 190 s no crash in pipeline creation

At the crash, six compute programs had translated without a pipeline yet, 072f5fe96efd27e1 among them, so I can't name the one. Creation took 23-29 s after translation for these three in the other arms. Seconds aren't comparable across arms (other CPU work ran during some).

So on this card the crash reproduces at this head with the default form, at the same driver address as on updates 3-6, and doesn't with umin or off. By your reading that points at the compare-and-select form. One run per arm; the first off run never finished translating two of them, so it doesn't count.

Correction to my earlier post: after my 420 s stop, the umin process was still alive and logged a device hang (0x887A0006) 80 s later, on a mesh draw with pixel b37565055f2f7d3b. A different fault from pipeline creation.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 16:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7137843740) @⁠r4tedx The other two arms on `da605bc`, same setup (RX 9060 XT, diag build, own empty shader cache per arm, 1 run each). Seconds from launch until each pipeline was created: | arm | `1c02f8131c508c75` | `501f0865fdf45dfd` | `072f5fe96efd27e1` | outcome | |---|---|---|---|---| | default | bound at 55 s, not yet translated | bound at 55 s, not yet translated | translated at 143 s, no pipeline | **crash at 160 s**: 0xc0000005 at `amdxc64.dll+0x861b9f` (read 0x8), under `D3D12Core` from victory.exe | | `off` (2nd run) | 129 s | 144 s | 103 s | no crash; stopped 60 s after the last one | | `umin` (earlier) | 287 s | 213 s | 190 s | no crash in pipeline creation | At the crash, six compute programs had translated without a pipeline yet, `072f5fe96efd27e1` among them, so I can't name the one. Creation took 23-29 s after translation for these three in the other arms. Seconds aren't comparable across arms (other CPU work ran during some). So on this card the crash reproduces at this head with the default form, at the same driver address as on updates 3-6, and doesn't with `umin` or `off`. By your reading that points at the compare-and-select form. One run per arm; the first `off` run never finished translating two of them, so it doesn't count. Correction to my earlier post: after my 420 s stop, the `umin` process was still alive and logged a device hang (0x887A0006) 80 s later, on a mesh draw with pixel `b37565055f2f7d3b`. A different fault from pipeline creation. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

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

@⁠r4tedx Update 9 (94e0ea5) on the RX 9060 XT, diag build, empty shader cache, VICTORY_HEAP_GUARD_FORM=umin (the default form crashes the driver here, see above), 1 run, against my umin run of da605bc:

da605bc 94e0ea5
world (first frame ≥1,000 draws) 73 s 67 s
last frame summary 415 s (my 420 s stop; the process then hung the GPU ~80 s later, see above) 340 s
end stopped by me log silent from 342 s, then an access violation in title code at 389 s (read 0x100000007 at victory-image+0x108557); no device removal logged
draws/frame in the world, median / max 1,082 / 4,212 1,252 / 6,039
programs refused during the run 86 65
refused for "a structured buffer of unknown stride" 22 0

Culling / unknown stride, by hash: the 22 programs refused for unknown stride at da605bc were all bound again at 94e0ea5; 21 translated and 20 got host pipelines.
Hold time: frames stopped ~75 s before the earlier head's stop, but n=1 and the caps differ; I'm rerunning both heads with the same 900 s cap.
Scene: this run's last saved frames are loading-screen art. The da605bc run had, in the title's own output, a dark night sky with thin object outlines, so nothing better yet; the reruns will say more.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 16:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7138203549) @⁠r4tedx Update 9 (`94e0ea5`) on the RX 9060 XT, diag build, empty shader cache, `VICTORY_HEAP_GUARD_FORM=umin` (the default form crashes the driver here, see above), 1 run, against my `umin` run of `da605bc`: | | `da605bc` | `94e0ea5` | |---|---|---| | world (first frame ≥1,000 draws) | 73 s | 67 s | | last frame summary | 415 s (my 420 s stop; the process then hung the GPU ~80 s later, see above) | 340 s | | end | stopped by me | log silent from 342 s, then an access violation in title code at 389 s (read `0x100000007` at `victory-image+0x108557`); no device removal logged | | draws/frame in the world, median / max | 1,082 / 4,212 | 1,252 / 6,039 | | programs refused during the run | 86 | 65 | | refused for "a structured buffer of unknown stride" | 22 | 0 | **Culling / unknown stride, by hash:** the 22 programs refused for unknown stride at `da605bc` were all bound again at `94e0ea5`; 21 translated and 20 got host pipelines. **Hold time:** frames stopped ~75 s before the earlier head's stop, but n=1 and the caps differ; I'm rerunning both heads with the same 900 s cap. **Scene:** this run's last saved frames are loading-screen art. The `da605bc` run had, in the title's own output, a dark night sky with thin object outlines, so nothing better yet; the reruns will say more. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠ChruutvoLuzi on GitHub · 2026-11-24 16:50 UTC · original · edited 2026-11-24 16:59 UTC

@⁠r4tedx a first run of update 9 with the title, on NVIDIA.

Machine and tree: RTX 4090, driver 621.01, Windows 11 26200, own copy of 1.0.2.1. integration/testers at 94e0ea5, unchanged, diagnostics build, cold shader cache (new build).

Settings:

  • VICTORY_PRESENT_1440P=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_NO_WATCHDOG=1, VICTORY_D3D12_DRED=1.
  • VICTORY_SKIP_PIPELINES=eeed82b877b44b5f (CS_ComputeHitDetectionSkinnedResults). On main ffe310e + #493 it removed the device 6 s after its first bind in 1 of 3 runs, so I left it out to keep this run long.
  • VICTORY_HEAP_GUARD, VICTORY_ROOT_SRV_* and VICTORY_SKIP_WAVE64 at their defaults.

Result: in the world about 80 s after launch, then 26 minutes there with no device removal. It was still running when I wrote this.

The four instance-culling programs from "What update 9 changes at run time" (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5) each translated, got a host pipeline and were first bound at frame 1058. The run went on for 26 minutes after that with no removal, so on this card they don't bring back the hang after 111 s that the notes mention.

Geometry: yes. With the fallback, the window shows groups of pedestrians, poles and power lines, a few boxes and part of a vehicle in false colour, over per-pixel noise. Large parts of the frame are noise or black.

Drops, averaged over the 165 frames after the last pipeline was made: 448 draws and dispatches per frame dropped without a host pipeline (0 being made), and 540 indirect. Draws averaged 2,399 per frame. The last per-program summary (40 programs, 867 per frame) by reason:

reason per frame
a lane mask read as data 408
an address not from a root parameter 159
a scalar memory read as data 115
an address from a phi 76
console wave64 lanes in a group of more than 64 threads 28
an address from a root parameter that is no address 28
an address in an SGPR that is no root parameter 24

The largest single drop is ef5409053e14aa82 (MS_VS_PedTransformPreSkinD, lane mask read as data) at 200 per frame, with its packed form 235e56869c1ea883 at 53.

No nvgpucomp64.dll exception, no E_OUTOFMEMORY and no pipeline refused by the driver.

Speed: 6.4 s per frame on average (0.2 fps), with DRED on. The largest part was the write-watch checks of title memory: 1,889 GetWriteWatch calls over 11.9 GB per frame, 2.3 s.

Edit: that cost is DRED's, not this tree's. A second run of the same build with VICTORY_D3D12_DRED unset (same other settings, warm cache) made 2,647 calls over 17.7 GB per frame in 74 ms, and ran at 1.2 to 1.4 s per frame (0.7 to 0.8 fps) with about 4,700 draws. Its copies took about 635 ms and the copy-back about 185 ms per frame. No device removal in its first 6 minutes in the world. With DRED on, main + #493 spent 0.32 to 0.34 s on about 1,270 calls (numbers on #776), so DRED's cost per call is larger on this tree, which makes more draws. An earlier version of this comment called it a regression in the tree.

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 16:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7138286407) · edited 2026-11-24 16:59 UTC @⁠r4tedx a first run of update 9 with the title, on NVIDIA. **Machine and tree:** RTX 4090, driver 621.01, Windows 11 26200, own copy of 1.0.2.1. `integration/testers` at `94e0ea5`, unchanged, diagnostics build, cold shader cache (new build). **Settings:** - `VICTORY_PRESENT_1440P=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_D3D12_DRED=1`. - `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f` (`CS_ComputeHitDetectionSkinnedResults`). On `main` `ffe310e` + #493 it removed the device 6 s after its first bind in 1 of 3 runs, so I left it out to keep this run long. - `VICTORY_HEAP_GUARD`, `VICTORY_ROOT_SRV_*` and `VICTORY_SKIP_WAVE64` at their defaults. **Result:** in the world about 80 s after launch, then 26 minutes there with no device removal. It was still running when I wrote this. **The four instance-culling programs** from "What update 9 changes at run time" (`17af15c4015cb4b6`, `55679a0547649d0b`, `fdd56d97a806bcca`, `89d08e561897d4e5`) each translated, got a host pipeline and were first bound at frame 1058. The run went on for 26 minutes after that with no removal, so on this card they don't bring back the hang after 111 s that the notes mention. **Geometry:** yes. With the fallback, the window shows groups of pedestrians, poles and power lines, a few boxes and part of a vehicle in false colour, over per-pixel noise. Large parts of the frame are noise or black. **Drops**, averaged over the 165 frames after the last pipeline was made: 448 draws and dispatches per frame dropped without a host pipeline (0 being made), and 540 indirect. Draws averaged 2,399 per frame. The last per-program summary (40 programs, 867 per frame) by reason: | reason | per frame | |---|---:| | a lane mask read as data | 408 | | an address not from a root parameter | 159 | | a scalar memory read as data | 115 | | an address from a phi | 76 | | console wave64 lanes in a group of more than 64 threads | 28 | | an address from a root parameter that is no address | 28 | | an address in an SGPR that is no root parameter | 24 | The largest single drop is `ef5409053e14aa82` (`MS_VS_PedTransformPreSkinD`, lane mask read as data) at 200 per frame, with its packed form `235e56869c1ea883` at 53. No `nvgpucomp64.dll` exception, no `E_OUTOFMEMORY` and no pipeline refused by the driver. **Speed:** 6.4 s per frame on average (0.2 fps), with DRED on. The largest part was the write-watch checks of title memory: 1,889 `GetWriteWatch` calls over 11.9 GB per frame, 2.3 s. **Edit:** that cost is DRED's, not this tree's. A second run of the same build with `VICTORY_D3D12_DRED` unset (same other settings, warm cache) made 2,647 calls over 17.7 GB per frame in 74 ms, and ran at 1.2 to 1.4 s per frame (0.7 to 0.8 fps) with about 4,700 draws. Its copies took about 635 ms and the copy-back about 185 ms per frame. No device removal in its first 6 minutes in the world. With DRED on, `main` + #493 spent 0.32 to 0.34 s on about 1,270 calls (numbers on #776), so DRED's cost per call is larger on this tree, which makes more draws. An earlier version of this comment called it a regression in the tree. AI-assisted (Claude Code).
Author
Owner

@⁠ghost on GitHub · 2026-11-24 17:08 UTC · original

@⁠r4tedx Two more runs per head on the RX 9060 XT, both umin (r1 cold cache, da605bc r1 capped at 420 s; r2 warm cache, 900 s cap; other CPU work ran during r2). Counted in presented frames, since frame time varies a lot between runs:

head run world-entry frame → last saved frame how it ended
da605bc 1 ~1360 → 1690 my stop (then a GPU hang ~80 s later, see above)
da605bc 2 ~1550 → 1760 title breakpoint 0x80000003 at victory-image+0x5149aec
94e0ea5 1 ~1370 → 1460 access violation in title code at +0x108557 (read 0x100000007), after 47 s of a silent log
94e0ea5 2 ~1710 → 1745 access violation in title code at +0x107d10 (read 0x7ffaffffffff), right after a compute pipeline was made

The new thing is the fault: update 9's two runs end in title code within 0x850 bytes of each other, and neither update 8 run did. n=2 per head.

At 94e0ea5, 49 compute programs got host pipelines that were refused at da605bc (the four instance-culling programs, e30970f1727063fd, and the root-UAV programs 3b90165a77d95cdf, 4ddd6f9702fab2a7, 14394a322f6dd5c2, f94e5d8bf4e1cf05, 5c09eb42b7a3c362 among them). Following INTEGRATION.md, I'm running 94e0ea5 next with all 49 in VICTORY_SKIP_PIPELINES, judging by whether that fault comes back.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ghost** on GitHub · 2026-11-24 17:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7138740429) @⁠r4tedx Two more runs per head on the RX 9060 XT, both `umin` (r1 cold cache, `da605bc` r1 capped at 420 s; r2 warm cache, 900 s cap; other CPU work ran during r2). Counted in presented frames, since frame time varies a lot between runs: | head | run | world-entry frame → last saved frame | how it ended | |---|---|---|---| | `da605bc` | 1 | ~1360 → 1690 | my stop (then a GPU hang ~80 s later, see above) | | `da605bc` | 2 | ~1550 → 1760 | title breakpoint 0x80000003 at `victory-image+0x5149aec` | | `94e0ea5` | 1 | ~1370 → 1460 | access violation in title code at `+0x108557` (read `0x100000007`), after 47 s of a silent log | | `94e0ea5` | 2 | ~1710 → 1745 | access violation in title code at `+0x107d10` (read `0x7ffaffffffff`), right after a compute pipeline was made | The new thing is the fault: update 9's two runs end in title code within 0x850 bytes of each other, and neither update 8 run did. n=2 per head. At `94e0ea5`, 49 compute programs got host pipelines that were refused at `da605bc` (the four instance-culling programs, `e30970f1727063fd`, and the root-UAV programs `3b90165a77d95cdf`, `4ddd6f9702fab2a7`, `14394a322f6dd5c2`, `f94e5d8bf4e1cf05`, `5c09eb42b7a3c362` among them). Following INTEGRATION.md, I'm running `94e0ea5` next with all 49 in `VICTORY_SKIP_PIPELINES`, judging by whether that fault comes back. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠rafaconvaitis on GitHub · 2026-11-24 17:00 UTC · original · edited 2026-11-24 17:08 UTC

@⁠r4tedx I checked the geometry linkage question from your earlier comment on integration/testers at 94e0ea5, using an RTX 4070 (Windows 11 build 26300, driver 32.0.16.1664) and inbox WARP. I read the shader archive as data and used DXIL validator 1.8.2502.8 before creating D3D12 PSOs. The title never ran.

I grouped the records by their shared label suffix, deduplicated the translated shaders and binding metadata within each group, and tested the combinations within each group. Both backends gave the same counts.

PSO setup Created
Translated GS with generated VS and PS controls 15/15
Standalone VS + GS + generated PS 25/26
Standalone VS + GS + PS from the same label group 417/463

The RTX 4070 debug layer flagged actual linkage mismatches among these candidates. They include a GS-to-PS TEXCOORD register mismatch, a TEXCOORD input missing from the GS output, and a TEXCOORD input missing from the standalone VS output. Module validation alone did not expose those linkage failures.

All 195 matching vertex records contain both a native ES and a standalone VS. The ES path on this branch rejected I/O raising for all 195, so the table uses the standalone VS. Label groups are candidates. The archive reader does not establish exactly which tuples the title requested, so the 46 refused combinations should not be counted as runtime failures.

For the next pass, do you have any host pipeline or host pipeline refused lines containing a geometry stage on this head? The three stage hashes and HRESULT, with any local paths omitted, are enough to select exact tuples for a follow-up. That would also give us a concrete comparison with the ES-aware path in #877.

AI-assisted test harness and reporting.

Follow-up on the same candidates

I added replay keyed by the runtime's 16-hex-digit BLAKE3 prefix. All 243 distinct stage hashes for the 463 candidates resolve in the archive. The WARP replay reproduced 417 created and 46 refused on 94e0ea5.

On 828f825 from #877, I replayed the same hashes twice on WARP, changing only the source stage selected from each vertex container (VS or ES). The per-tuple outcome and linkage diagnostics were identical in both arms. Each created 385 PSOs, refused the same 46 at linkage, and could not try the remaining 32 because their pixel shaders did not translate on that revision. Switching to ES by itself therefore did not change this candidate matrix. The tuples observed in an actual title run are still the way to determine which of these errors matter.

**@⁠rafaconvaitis** on GitHub · 2026-11-24 17:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7138534988) · edited 2026-11-24 17:08 UTC @⁠r4tedx I checked the geometry linkage question from your earlier comment on `integration/testers` at `94e0ea5`, using an RTX 4070 (Windows 11 build 26300, driver `32.0.16.1664`) and inbox WARP. I read the shader archive as data and used DXIL validator `1.8.2502.8` before creating D3D12 PSOs. The title never ran. I grouped the records by their shared label suffix, deduplicated the translated shaders and binding metadata within each group, and tested the combinations within each group. Both backends gave the same counts. | PSO setup | Created | | --- | ---: | | Translated GS with generated VS and PS controls | 15/15 | | Standalone VS + GS + generated PS | 25/26 | | Standalone VS + GS + PS from the same label group | 417/463 | The RTX 4070 debug layer flagged actual linkage mismatches among these candidates. They include a GS-to-PS TEXCOORD register mismatch, a TEXCOORD input missing from the GS output, and a TEXCOORD input missing from the standalone VS output. Module validation alone did not expose those linkage failures. All 195 matching vertex records contain both a native ES and a standalone VS. The ES path on this branch rejected I/O raising for all 195, so the table uses the standalone VS. Label groups are candidates. The archive reader does not establish exactly which tuples the title requested, so the 46 refused combinations should not be counted as runtime failures. For the next pass, do you have any `host pipeline` or `host pipeline refused` lines containing a geometry stage on this head? The three stage hashes and HRESULT, with any local paths omitted, are enough to select exact tuples for a follow-up. That would also give us a concrete comparison with the ES-aware path in #877. AI-assisted test harness and reporting. ### Follow-up on the same candidates I added replay keyed by the runtime's 16-hex-digit BLAKE3 prefix. All 243 distinct stage hashes for the 463 candidates resolve in the archive. The WARP replay reproduced 417 created and 46 refused on `94e0ea5`. On `828f825` from #877, I replayed the same hashes twice on WARP, changing only the source stage selected from each vertex container (VS or ES). The per-tuple outcome and linkage diagnostics were identical in both arms. Each created 385 PSOs, refused the same 46 at linkage, and could not try the remaining 32 because their pixel shaders did not translate on that revision. Switching to ES by itself therefore did not change this candidate matrix. The tuples observed in an actual title run are still the way to determine which of these errors matter.
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 17:27 UTC · original

@⁠r4tedx re update 9, two small things about 64-bit image atomics:

  • INTEGRATION.md still lists #305 as missing the descriptor-heap 64-bit atomics flag. Its current head (78dae83, rebased onto ffe310e by tarcisioads at 11:18) sets ATOMIC_INT64_ON_HEAP_RESOURCE, so that note looks stale. #539 sets the equivalent flag too.
  • #48 (in your tree) no longer compiles on main ffe310e on its own (resource::track takes a fourth argument now), so whoever picks one for main has #305/#539 as the ones that build there.

On the shaders the title created in one run (19,105, RX 6800 XT, validated with dxil.dll from DXC 1.9.2609), #305 and #539 recover the same 393 programs (391 PS, 2 CS), with 0 lost. That matches WALID1618Y's and adamdotpy's head-to-head on #539, and h0useadv's whole-pack count on #305. Nothing to change in your tree: at 94e0ea5, 476 of the 478 programs that hit the 64-bit atomic refusal on main validate; the other 2 stop at "a cross-lane operation outside compute".

No game data attached. AI-assisted (Claude Code).

**@⁠crashbashash** on GitHub · 2026-11-24 17:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7139219435) @⁠r4tedx re [update 9](https://git.gtahub.st/github/Marvisak--VIctory/issues/293), two small things about 64-bit image atomics: - INTEGRATION.md still lists #305 as missing the descriptor-heap 64-bit atomics flag. Its current head (`78dae83`, rebased onto `ffe310e` by tarcisioads at 11:18) sets `ATOMIC_INT64_ON_HEAP_RESOURCE`, so that note looks stale. #539 sets the equivalent flag too. - #48 (in your tree) no longer compiles on `main` `ffe310e` on its own (`resource::track` takes a fourth argument now), so whoever picks one for `main` has #305/#539 as the ones that build there. On the shaders the title created in one run (19,105, RX 6800 XT, validated with `dxil.dll` from DXC 1.9.2609), #305 and #539 recover the same 393 programs (391 PS, 2 CS), with 0 lost. That matches WALID1618Y's and adamdotpy's head-to-head on #539, and h0useadv's whole-pack count on #305. Nothing to change in your tree: at `94e0ea5`, 476 of the 478 programs that hit the 64-bit atomic refusal on `main` validate; the other 2 stop at "a cross-lane operation outside compute". No game data attached. AI-assisted (Claude Code).
Author
Owner

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

@⁠r4tedx a follow-up to my update 9 report above: the 26 minutes without a removal weren't typical. Six runs of update 9 on the same RTX 4090, all with VICTORY_PRESENT_1440P=1, VICTORY_SHADER_LOOP_LIMIT=32 and VICTORY_NO_WATCHDOG=1. Four have #1267 merged; two of those also have a local change to which 2560x1440 target the fallback presents, which only touches presentation in diagnostics builds (#841).

tree DRED eeed82b877b44b5f skipped end
update 9 on yes stopped by me after 26 min
update 9 off yes device removed after 10.6 min
+ #1267 off yes stopped by me after 12 min
+ #1267 + fallback pick off yes stopped by me after 17 min
+ #1267 + fallback pick off no device removed after 105 s (frame 1287)
+ #1267 + fallback pick on no device removed after 190 s (frame 1204)

All three removals report 0x887A0005. None has breadcrumbs: two ran without DRED, and in the DRED run the breadcrumb list came back empty. In that run the last submission was a single list of 47 commands ending in an indirect dispatch of cabb87599722e59a (ptfx_CS_lightAtlas_NonLocalLights_Sprite). That program ran in every run, so it is only the last thing recorded, not a cause.

eeed82b877b44b5f was never bound in the two unskipped runs before the removal, so they don't show whether #704's raw views already fix it on this tree. In the skipped runs it was first bound at frames 1111 to 1196.

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 17:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7139571491) @⁠r4tedx a follow-up to my update 9 report above: the 26 minutes without a removal weren't typical. Six runs of update 9 on the same RTX 4090, all with `VICTORY_PRESENT_1440P=1`, `VICTORY_SHADER_LOOP_LIMIT=32` and `VICTORY_NO_WATCHDOG=1`. Four have #1267 merged; two of those also have a local change to which 2560x1440 target the fallback presents, which only touches presentation in diagnostics builds (#841). | tree | DRED | `eeed82b877b44b5f` skipped | end | |---|---|---|---| | update 9 | on | yes | stopped by me after 26 min | | update 9 | off | yes | device removed after 10.6 min | | + #1267 | off | yes | stopped by me after 12 min | | + #1267 + fallback pick | off | yes | stopped by me after 17 min | | + #1267 + fallback pick | off | no | device removed after 105 s (frame 1287) | | + #1267 + fallback pick | on | no | device removed after 190 s (frame 1204) | All three removals report `0x887A0005`. None has breadcrumbs: two ran without DRED, and in the DRED run the breadcrumb list came back empty. In that run the last submission was a single list of 47 commands ending in an indirect dispatch of `cabb87599722e59a` (`ptfx_CS_lightAtlas_NonLocalLights_Sprite`). That program ran in every run, so it is only the last thing recorded, not a cause. `eeed82b877b44b5f` was never bound in the two unskipped runs before the removal, so they don't show whether #704's raw views already fix it on this tree. In the skipped runs it was first bound at frames 1111 to 1196. AI-assisted (Claude Code).
Author
Owner

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

@⁠r4tedx Series S result for integration/testers update 9 (94e0ea5) on a desktop RTX 5070 Ti 16 GB (621.24), Windows 11 26300.9974, Ryzen 7 9850X3D, 32 GB RAM, title 1.0.2.1. Native D3D12 diagnostics build, loop cap 32, DRED and the PresentX fallback off.

Run Result
Cold VIctory cache, no skipped shaders DXGI_ERROR_DEVICE_HUNG (0x887A0006) at ~151 s, after a 4.88 s submission of one compute list. Its shader set contains all four culling hashes listed in INTEGRATION.md. About 14 GiB of Windows commit was still available.
Cache copied from the first run, only the four listed culling hashes skipped Reached frame 1210. I stopped it at ~250 s without device removal. Lowest available commit was 13.0 GiB.

The comparison also changes cache state and the capture schedule. The failed submission identifies the compute list that stalled. The specific dispatch remains unknown.

For #841, frame 1210 of the skip run shows a dialogue subtitle over black. All seven dumped RGB float targets at 1280×720 or 1920×1080 (DXGI formats 10 and 26) have a raw RGB range of 0.0 to 0.0. Two 1280×720 format-62 targets contain nonzero IDs. In the final half-size capture, 0.16% of pixels exceed RGB level 8, with the visible bright pixels in the subtitle area.

On the cold run the host created PSOs for bad01f53f53248e5, d3e5b737ea7cc150 and 8dd8d739047fe557. 11eeb27c2d15980d was refused with a descriptor’s address or format read as data. Pass outputs were independently sampled only as described above.

AI-assisted (Codex and Claude). Measurements and hashes only.

**@⁠SkillIssueXO** on GitHub · 2026-11-24 17:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7139687429) @⁠r4tedx Series S result for `integration/testers` update 9 (`94e0ea5`) on a desktop RTX 5070 Ti 16 GB (621.24), Windows 11 26300.9974, Ryzen 7 9850X3D, 32 GB RAM, title 1.0.2.1. Native D3D12 diagnostics build, loop cap 32, DRED and the PresentX fallback off. | Run | Result | | --- | --- | | Cold VIctory cache, no skipped shaders | `DXGI_ERROR_DEVICE_HUNG` (`0x887A0006`) at ~151 s, after a 4.88 s submission of one compute list. Its shader set contains all four culling hashes listed in `INTEGRATION.md`. About 14 GiB of Windows commit was still available. | | Cache copied from the first run, only the four listed culling hashes skipped | Reached frame 1210. I stopped it at ~250 s without device removal. Lowest available commit was 13.0 GiB. | The comparison also changes cache state and the capture schedule. The failed submission identifies the compute list that stalled. The specific dispatch remains unknown. For #841, frame 1210 of the skip run shows a dialogue subtitle over black. All seven dumped RGB float targets at 1280×720 or 1920×1080 (DXGI formats 10 and 26) have a raw RGB range of 0.0 to 0.0. Two 1280×720 format-62 targets contain nonzero IDs. In the final half-size capture, 0.16% of pixels exceed RGB level 8, with the visible bright pixels in the subtitle area. On the cold run the host created PSOs for `bad01f53f53248e5`, `d3e5b737ea7cc150` and `8dd8d739047fe557`. `11eeb27c2d15980d` was refused with `a descriptor’s address or format read as data`. Pass outputs were independently sampled only as described above. AI-assisted (Codex and Claude). Measurements and hashes only.
Author
Owner

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

@⁠r4tedx update 9 (94e0ea5) against da605bc in the title, on AMD under Linux (RADV), to sit next to nullmarsh's RX 9060 XT runs on Windows.

Setup: RX 6800 XT (RDNA2, RADV / Mesa 26.2.6), CachyOS, GE-Proton11-14 (vkd3d-proton cae8353ed), diagnostics builds of both heads unmodified (default heap guard), Series X, 1.0.2.1, own shader cache per head, VICTORY_NO_WATCHDOG=1, no loop cap. One run of da605bc, two of 94e0ea5 (cold and warm cache).

94e0ea5 cold 94e0ea5 warm da605bc cold
World-entry frame → last frame 3313 → 3320 2537 → ≥2575 1480 → 1545, still presenting when I stopped it at 8 min
How it ended stops presenting ~2 min in; process alive stops presenting ~6 min in; process alive my stop
Your four culling programs translated, none dropped translated, none dropped not translated
Draws per frame (median / max) 2,425 / 2,812 1,882 / 4,538 644 / 3,182
Copied per frame (median) 366 MB 542 MB 128 MB
Frame time / GPU time (median) 11.6 s / 68 ms 8.6 s / 75 ms 7.7 s / 61 ms
  • No device removal, GPU fault, DRED report or kernel-driver message in any run. RADV compiles the pipelines here, so the amdxc64.dll problem doesn't apply.
  • Same direction as nullmarsh's n=2: update 9 stops much earlier than update 8. The symptom differs here, though: no access violation, the title just stops presenting. In the cold run one title thread ran at 100% CPU for 10 minutes. With VICTORY_STACKS, the dump during the warm run's stop has every VIctory thread waiting (copy, pipeline and DirectStorage workers). Four title worker threads are executing at +0x50eb826 / +0x50eb83d (via +0x31962 and +0x25d801b), two at the same instruction in dumps a minute apart. The code there is an open-addressing hash-table probe, consistent with a lookup that doesn't terminate. Possibly the same corruption that faults in title code on Windows, but I haven't shown that.
  • nullmarsh's da605bc run 2 ended at +0x5149aec. I hit the same title assert on #844's branch earlier on this machine: a pool accessor whose storage pointer is null (#844).
  • Scene: dark on both heads. On da605bc, frame captures show the opening going on to the HUD with a rendered minimap and the opening credits. The 94e0ea5 runs reached the dialogue but stopped before that.

One run per configuration here as well, so it's a direction: on this machine update 9 runs much more of the scene (about 3× the draws, 3–4× the copy volume), and then stops presenting frames, while update 8 kept going.

No game data attached. AI-assisted (Claude Code).

**@⁠crashbashash** on GitHub · 2026-11-24 18:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7140222731) @⁠r4tedx update 9 (`94e0ea5`) against `da605bc` in the title, on AMD under Linux (RADV), to sit next to nullmarsh's RX 9060 XT runs on Windows. **Setup:** RX 6800 XT (RDNA2, RADV / Mesa 26.2.6), CachyOS, GE-Proton11-14 (vkd3d-proton `cae8353ed`), diagnostics builds of both heads unmodified (default heap guard), Series X, 1.0.2.1, own shader cache per head, `VICTORY_NO_WATCHDOG=1`, no loop cap. One run of `da605bc`, two of `94e0ea5` (cold and warm cache). | | `94e0ea5` cold | `94e0ea5` warm | `da605bc` cold | |---|---|---|---| | World-entry frame → last frame | 3313 → 3320 | 2537 → ≥2575 | 1480 → 1545, still presenting when I stopped it at 8 min | | How it ended | stops presenting ~2 min in; process alive | stops presenting ~6 min in; process alive | my stop | | Your four culling programs | translated, none dropped | translated, none dropped | not translated | | Draws per frame (median / max) | 2,425 / 2,812 | 1,882 / 4,538 | 644 / 3,182 | | Copied per frame (median) | 366 MB | 542 MB | 128 MB | | Frame time / GPU time (median) | 11.6 s / 68 ms | 8.6 s / 75 ms | 7.7 s / 61 ms | - No device removal, GPU fault, DRED report or kernel-driver message in any run. RADV compiles the pipelines here, so the `amdxc64.dll` problem doesn't apply. - Same direction as nullmarsh's n=2: update 9 stops much earlier than update 8. The symptom differs here, though: no access violation, the title just stops presenting. In the cold run one title thread ran at 100% CPU for 10 minutes. With `VICTORY_STACKS`, the dump during the warm run's stop has every VIctory thread waiting (copy, pipeline and DirectStorage workers). Four title worker threads are executing at `+0x50eb826` / `+0x50eb83d` (via `+0x31962` and `+0x25d801b`), two at the same instruction in dumps a minute apart. The code there is an open-addressing hash-table probe, consistent with a lookup that doesn't terminate. Possibly the same corruption that faults in title code on Windows, but I haven't shown that. - nullmarsh's `da605bc` run 2 ended at `+0x5149aec`. I hit the same title assert on #844's branch earlier on this machine: a pool accessor whose storage pointer is null ([#844](https://git.gtahub.st/github/Marvisak--VIctory/issues/844)). - Scene: dark on both heads. On `da605bc`, frame captures show the opening going on to the HUD with a rendered minimap and the opening credits. The `94e0ea5` runs reached the dialogue but stopped before that. One run per configuration here as well, so it's a direction: on this machine update 9 runs much more of the scene (about 3× the draws, 3–4× the copy volume), and then stops presenting frames, while update 8 kept going. No game data attached. AI-assisted (Claude Code).
Author
Owner

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

@⁠r4tedx update 9 (94e0ea5) on a desktop RTX 5060 Ti (8 GB, driver 32.0.16.2114), Windows 11 26100, i5-13600K, 32 GB, own copy of 1.0.2.1, Series X. Diagnostics build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, default TDR, default heap guard, no other GPU work. Scripted Enter presses only.

The two removals stop in different dispatches, both from the #638/#704 producer list (the seven elamriz and neonbyte1 name on #704), and skipping the first one moves the hang to the second.

Run Cache Skipped In the world End
A cold (own empty dir) none ~130 s DEVICE_HUNG, slow host submission ms=4889 lists=1, nvlddmkm 153 ×2
B copied from A VICTORY_SKIP_PIPELINES=42f717f1b4d18e94 ~590 s DEVICE_HUNG, slow host submission ms=5186 lists=1, nvlddmkm 153 ×2

DRED for each (the only incomplete list in the breadcrumbs):

A: a list stopped at command 55 of 67 (op 5), commands 55..56 between its barriers:
   command 55 (op 5): no marker; dispatch 182x1x1 [compute 42f717f1b4d18e94]
   (the next dispatch in the list is fdd56d97a806bcca)
B: a list stopped at command 29 of 41 (op 5), commands 29..30 between its barriers:
   command 29 (op 5): no marker; dispatch 201x1x1 [compute 1c4b3c0547e3e6fa]

Both dispatches have the same root layout: u4 from heap slot ~327,700 with Shader(…, [0, 1, 5768, 0, 0, 0, 1024, 64, …]) over title 0xdba561ab0+0x10000, u6=0, u9=0xe423f. In A, 42f717f1b4d18e94's tables include an SRV of 182,452,224 elements at 0x3f740000 and a UAV over (1064566784, 182452224).

In B the skip took effect (dropped 1.0/frame without a host pipeline: skipped shader 42f717f1b4d18e94, and that hash is absent from B's DRED block). 1c4b3c0547e3e6fa was also bound in A, so it ran there for ~130 s without being the one that stopped.

This matches the 111 s hang likecrank-dotcom reported on #704 on the same card model, whose DRED trace also began at 42f717f1b4d18e94/fdd56d97a806bcca. On this card it looks like a hang in the #704 producers that only shows on long-enough runs, one dispatch at a time, not one bad program. SkillIssueXO's 5070 Ti run (4.88 s single compute list) fits the same shape; their skip list (the four INTEGRATION.md names) doesn't contain 42f717f1b4d18e94 or 1c4b3c0547e3e6fa. A run skipping both is the obvious next step; I haven't done it yet.

Side note for anyone A/B-ing update 9: reusing a cache/data directory from an older head made my first update 9 run look like a 1 fps menu regression. With fresh directories, 92bc27b, da605bc, 94e0ea5 and 94e0ea5 + VICTORY_HEAP_GUARD=0 all ran the menus at 30 fps (3 min each). So that was my setup, not update 9.

One run per configuration. AI-assisted (Claude Code); all runs on my machine, no game data shared.

**@⁠notquiteog** on GitHub · 2026-11-24 18:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7140893301) @⁠r4tedx update 9 (`94e0ea5`) on a desktop **RTX 5060 Ti** (8 GB, driver 32.0.16.2114), Windows 11 26100, i5-13600K, 32 GB, own copy of 1.0.2.1, Series X. Diagnostics build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, default TDR, default heap guard, no other GPU work. Scripted Enter presses only. The two removals stop in **different dispatches, both from the #638/#704 producer list** (the seven elamriz and neonbyte1 name on #704), and skipping the first one moves the hang to the second. | Run | Cache | Skipped | In the world | End | |---|---|---|---|---| | A | cold (own empty dir) | none | ~130 s | `DEVICE_HUNG`, `slow host submission ms=4889 lists=1`, `nvlddmkm` 153 ×2 | | B | copied from A | `VICTORY_SKIP_PIPELINES=42f717f1b4d18e94` | **~590 s** | `DEVICE_HUNG`, `slow host submission ms=5186 lists=1`, `nvlddmkm` 153 ×2 | DRED for each (the only incomplete list in the breadcrumbs): ``` A: a list stopped at command 55 of 67 (op 5), commands 55..56 between its barriers: command 55 (op 5): no marker; dispatch 182x1x1 [compute 42f717f1b4d18e94] (the next dispatch in the list is fdd56d97a806bcca) B: a list stopped at command 29 of 41 (op 5), commands 29..30 between its barriers: command 29 (op 5): no marker; dispatch 201x1x1 [compute 1c4b3c0547e3e6fa] ``` Both dispatches have the same root layout: `u4` from heap slot ~327,700 with `Shader(…, [0, 1, 5768, 0, 0, 0, 1024, 64, …])` over title `0xdba561ab0+0x10000`, `u6=0`, `u9=0xe423f`. In A, `42f717f1b4d18e94`'s tables include an SRV of 182,452,224 elements at `0x3f740000` and a UAV over `(1064566784, 182452224)`. In B the skip took effect (`dropped 1.0/frame without a host pipeline: skipped shader 42f717f1b4d18e94`, and that hash is absent from B's DRED block). `1c4b3c0547e3e6fa` was also bound in A, so it ran there for ~130 s without being the one that stopped. This matches the 111 s hang likecrank-dotcom reported on #704 on the same card model, whose DRED trace also began at `42f717f1b4d18e94`/`fdd56d97a806bcca`. On this card it looks like a hang in the #704 producers that only shows on long-enough runs, one dispatch at a time, not one bad program. SkillIssueXO's 5070 Ti run (4.88 s single compute list) fits the same shape; their skip list (the four `INTEGRATION.md` names) doesn't contain `42f717f1b4d18e94` or `1c4b3c0547e3e6fa`. A run skipping both is the obvious next step; I haven't done it yet. Side note for anyone A/B-ing update 9: reusing a cache/data directory from an older head made my first update 9 run look like a 1 fps menu regression. With fresh directories, `92bc27b`, `da605bc`, `94e0ea5` and `94e0ea5` + `VICTORY_HEAP_GUARD=0` all ran the menus at 30 fps (3 min each). So that was my setup, not update 9. One run per configuration. AI-assisted (Claude Code); all runs on my machine, no game data shared.
Author
Owner

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

Thank you all. I was away from this for two hours and came back to nine reports; here is what I take from them together, and what changes in the tree because of them.

1. The AMD driver crash: the form of the guard, as @⁠nullmarsh's three arms show

Default form: crash at amdxc64.dll+0x861b9f in pipeline creation. umin and off: all three programs get pipelines, no crash. One run per arm, same card, same head. That is enough for me to change the default: the next update makes umin the default form (VICTORY_HEAP_GUARD_FORM=select brings the old one back). It is the same value with one operation, it passes #483's GPU test here and validates the same programs. Until that update, AMD testers on Windows should set VICTORY_HEAP_GUARD_FORM=umin with a fresh shader cache.

2. Update 9 shortens runs. I treat that as a regression in the tree, in two different shapes

On AMD the title itself stops. @⁠nullmarsh (RX 9060 XT, Windows): two runs of 94e0ea5 end in an access violation in title code within 0x850 bytes of each other, and neither run of da605bc did. @⁠crashbashash (RX 6800 XT, Linux): update 9 draws about three times as much and then stops presenting, with title threads in a hash-table probe that does not end, where update 8 kept going. Title code reading a bad pointer and a title lookup that never ends both look like title memory that changed under the title. What update 9 adds that writes to title memory is the copy-back of what newly running compute programs write: #294's root UAVs and the unordered views of #704's programs. I have not shown that this is the cause. @⁠nullmarsh's run with the 49 newly created compute pipelines skipped is exactly the right test; if the fault goes with them, the next step is to split the 49 into the root-UAV programs and the rest.

On NVIDIA 50-series cards the device hangs in the instance-culling dispatches. @⁠notquiteog (RTX 5060 Ti): DEVICE_HUNG after about 130 s at dispatch 182x1x1 of 42f717f1b4d18e94; with that one skipped, about 590 s, then the same at dispatch 201x1x1 of 1c4b3c0547e3e6fa. @⁠SkillIssueXO (RTX 5070 Ti): hung at about 151 s after a 4.88 s compute list; with four culling hashes skipped, no removal in 250 s. likecrank-dotcom's 111 s on #704 began at the same two hashes. @⁠ChruutvoLuzi's RTX 4090 ran 26 minutes with those programs bound, then 10.6 minutes in another run. Two readings fit, and they need different fixes: the dispatch never ends (a loop limit read from data that is wrong), or it ends but takes longer than the 2 s the driver allows on these cards and not on a 4090. Both submissions that hung took about 5 s. A run that would separate them: the same build with the timeout raised (TdrDelay, as @⁠rocobalt1's machine has it at 60), no skip. If it then holds and those dispatches show as slow submissions of a few seconds, they are slow, not endless. From reading the two programs, another session here found only counted loops, bounded by values read from a constant buffer, so a wrong or stale constant buffer is the suspect for either reading.

What to use meanwhile. For the longest run, da605bc (update 8, with umin on AMD). For update 9 or 10 on a 50-series card, VICTORY_SKIP_PIPELINES=42f717f1b4d18e94,1c4b3c0547e3e6fa,17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5. INTEGRATION.md will open with both shapes at the next update.

3. Smaller points

  • @⁠ChruutvoLuzi: thank you for the correction about DRED's cost; I had not seen a per-call write-watch figure for this tree before. The drop table is useful too: a lane mask read as data at 408 per frame is the largest row, led by one ped mesh program, and it is what main's stricter rule since update 7 costs (see "What update 7 costs"). It is the next thing I want back, soundly.
  • @⁠rafaconvaitis: 417 of 463 candidate tuples link, and the 46 that do not are real signature mismatches the validator cannot see. That is a better answer to the pairing question than I had. I have no host pipeline lines with a geometry stage to give you: nobody here has run this in the title, so the tuples the title asks for have to come from a tester's log. Anyone running update 8 or later: host pipeline and host pipeline refused lines that name three stages are what would settle it. The geometry work is now upstream as #1315.
  • @⁠crashbashash: right on both. The #305 note is stale and goes at the next update; #48 stays in the tree only because the tree adapts it.
  • @⁠SkillIssueXO: 11eeb27c2d15980d (the tiled-lighting prescalarize program) refused with a descriptor's address or format read as data is fixed in the update being tested now.

Update 10 (4744af9, groups of several console waves) is pushed. Update 11 is in test here: #645, #1020 (the tiled-lighting rectangle draws), the scalar-buffer descriptors and the #1498 mask fix. Neither changes the two regressions above, so the advice in section 2 holds for them too.

The title was not run for any of this. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 18:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7140930712) Thank you all. I was away from this for two hours and came back to nine reports; here is what I take from them together, and what changes in the tree because of them. ## 1. The AMD driver crash: the form of the guard, as @⁠nullmarsh's three arms show Default form: crash at `amdxc64.dll+0x861b9f` in pipeline creation. `umin` and `off`: all three programs get pipelines, no crash. One run per arm, same card, same head. That is enough for me to change the default: **the next update makes `umin` the default form** (`VICTORY_HEAP_GUARD_FORM=select` brings the old one back). It is the same value with one operation, it passes #483's GPU test here and validates the same programs. Until that update, AMD testers on Windows should set `VICTORY_HEAP_GUARD_FORM=umin` with a fresh shader cache. ## 2. Update 9 shortens runs. I treat that as a regression in the tree, in two different shapes **On AMD the title itself stops.** @⁠nullmarsh (RX 9060 XT, Windows): two runs of `94e0ea5` end in an access violation in title code within 0x850 bytes of each other, and neither run of `da605bc` did. @⁠crashbashash (RX 6800 XT, Linux): update 9 draws about three times as much and then stops presenting, with title threads in a hash-table probe that does not end, where update 8 kept going. Title code reading a bad pointer and a title lookup that never ends both look like title memory that changed under the title. What update 9 adds that writes to title memory is the copy-back of what newly running compute programs write: #294's root UAVs and the unordered views of #704's programs. I have not shown that this is the cause. @⁠nullmarsh's run with the 49 newly created compute pipelines skipped is exactly the right test; if the fault goes with them, the next step is to split the 49 into the root-UAV programs and the rest. **On NVIDIA 50-series cards the device hangs in the instance-culling dispatches.** @⁠notquiteog (RTX 5060 Ti): `DEVICE_HUNG` after about 130 s at `dispatch 182x1x1` of `42f717f1b4d18e94`; with that one skipped, about 590 s, then the same at `dispatch 201x1x1` of `1c4b3c0547e3e6fa`. @⁠SkillIssueXO (RTX 5070 Ti): hung at about 151 s after a 4.88 s compute list; with four culling hashes skipped, no removal in 250 s. likecrank-dotcom's 111 s on #704 began at the same two hashes. @⁠ChruutvoLuzi's RTX 4090 ran 26 minutes with those programs bound, then 10.6 minutes in another run. Two readings fit, and they need different fixes: the dispatch never ends (a loop limit read from data that is wrong), or it ends but takes longer than the 2 s the driver allows on these cards and not on a 4090. Both submissions that hung took about 5 s. **A run that would separate them:** the same build with the timeout raised (`TdrDelay`, as @⁠rocobalt1's machine has it at 60), no skip. If it then holds and those dispatches show as slow submissions of a few seconds, they are slow, not endless. From reading the two programs, another session here found only counted loops, bounded by values read from a constant buffer, so a wrong or stale constant buffer is the suspect for either reading. **What to use meanwhile.** For the longest run, `da605bc` (update 8, with `umin` on AMD). For update 9 or 10 on a 50-series card, `VICTORY_SKIP_PIPELINES=42f717f1b4d18e94,1c4b3c0547e3e6fa,17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5`. `INTEGRATION.md` will open with both shapes at the next update. ## 3. Smaller points - @⁠ChruutvoLuzi: thank you for the correction about DRED's cost; I had not seen a per-call write-watch figure for this tree before. The drop table is useful too: `a lane mask read as data` at 408 per frame is the largest row, led by one ped mesh program, and it is what `main`'s stricter rule since update 7 costs (see "What update 7 costs"). It is the next thing I want back, soundly. - @⁠rafaconvaitis: 417 of 463 candidate tuples link, and the 46 that do not are real signature mismatches the validator cannot see. That is a better answer to the pairing question than I had. I have no `host pipeline` lines with a geometry stage to give you: nobody here has run this in the title, so the tuples the title asks for have to come from a tester's log. Anyone running update 8 or later: `host pipeline` and `host pipeline refused` lines that name three stages are what would settle it. The geometry work is now upstream as #1315. - @⁠crashbashash: right on both. The #305 note is stale and goes at the next update; #48 stays in the tree only because the tree adapts it. - @⁠SkillIssueXO: `11eeb27c2d15980d` (the tiled-lighting prescalarize program) refused with `a descriptor's address or format read as data` is fixed in the update being tested now. Update 10 (`4744af9`, groups of several console waves) is pushed. Update 11 is in test here: #645, #1020 (the tiled-lighting rectangle draws), the scalar-buffer descriptors and the `#1498` mask fix. Neither changes the two regressions above, so the advice in section 2 holds for them too. The title was not run for any of this. AI-assisted.
Author
Owner

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

Follow-up to my comment above (same RTX 5060 Ti, same 94e0ea5 diag build, same settings and the same copied cache as run B).

Run Skipped In the world Stopped dispatch
A none ~130 s 182x1x1 [compute 42f717f1b4d18e94]
B 42f717f1b4d18e94 ~590 s 201x1x1 [compute 1c4b3c0547e3e6fa]
C 42f717f1b4d18e94,1c4b3c0547e3e6fa ~150 s 979x1x1 [compute 9209777e8face9dd]

C ended the same way: DEVICE_HUNG, slow host submission ms=4846 lists=1, nvlddmkm 153 ×2.

C: a list stopped at command 41 of 53 (op 5), commands 41..42 between its barriers:
   command 41 (op 5): no marker; dispatch 979x1x1 [compute 9209777e8face9dd]
   9209777e8face9dd: u4=0xa00000 [heap 327680: Shader(…, Some([0, 1, 5768, 0, 0, 0, 1024, 64, 0, 0])) title 0xdba561ab0+0x10000 …] u6=0x0 u9=0xe423f

Both skips took effect (skipped shader … in the log, and neither hash is in C's DRED block).

So the hang moves to a third of the seven #638/#704 producers. Skipping programs one at a time doesn't make it go away; B's longer run looks like variance. What A, B and C share:

  • every stopped dispatch is one of those producers, in a single-list compute submission of ~4.8–5.2 s;
  • all three have the same root layout: u4 over heap slot ~327,680 with [0, 1, 5768, 0, 0, 0, 1024, 64, …] on title 0xdba561ab0+0x10000, u6=0, u9=0xe423f;
  • in A and C, the next dispatch after the stopped one is fdd56d97a806bcca, whose tables carry the 182,452,224-element SRV and the UAV over that range.

That points at something the producer family has in common, such as the shared buffer they read and write or the run-time-indexed views r4tedx mentioned on #704, rather than one program's code. I haven't tried skipping all seven at once.

**@⁠notquiteog** on GitHub · 2026-11-24 18:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7141118863) Follow-up to my comment above (same RTX 5060 Ti, same `94e0ea5` diag build, same settings and the same copied cache as run B). | Run | Skipped | In the world | Stopped dispatch | |---|---|---|---| | A | none | ~130 s | `182x1x1 [compute 42f717f1b4d18e94]` | | B | `42f717f1b4d18e94` | ~590 s | `201x1x1 [compute 1c4b3c0547e3e6fa]` | | **C** | `42f717f1b4d18e94,1c4b3c0547e3e6fa` | **~150 s** | `979x1x1 [compute 9209777e8face9dd]` | C ended the same way: `DEVICE_HUNG`, `slow host submission ms=4846 lists=1`, `nvlddmkm` 153 ×2. ``` C: a list stopped at command 41 of 53 (op 5), commands 41..42 between its barriers: command 41 (op 5): no marker; dispatch 979x1x1 [compute 9209777e8face9dd] 9209777e8face9dd: u4=0xa00000 [heap 327680: Shader(…, Some([0, 1, 5768, 0, 0, 0, 1024, 64, 0, 0])) title 0xdba561ab0+0x10000 …] u6=0x0 u9=0xe423f ``` Both skips took effect (`skipped shader …` in the log, and neither hash is in C's DRED block). So the hang moves to a third of the seven #638/#704 producers. Skipping programs one at a time doesn't make it go away; B's longer run looks like variance. What A, B and C share: - every stopped dispatch is one of those producers, in a single-list compute submission of ~4.8–5.2 s; - all three have the same root layout: `u4` over heap slot ~327,680 with `[0, 1, 5768, 0, 0, 0, 1024, 64, …]` on title `0xdba561ab0+0x10000`, `u6=0`, `u9=0xe423f`; - in A and C, the next dispatch after the stopped one is `fdd56d97a806bcca`, whose tables carry the 182,452,224-element SRV and the UAV over that range. That points at something the producer family has in common, such as the shared buffer they read and write or the run-time-indexed views r4tedx mentioned on #704, rather than one program's code. I haven't tried skipping all seven at once.
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 19:04 UTC · original

@⁠r4tedx the split from your summary, on the same RX 6800 XT (Linux, RADV), same 94e0ea5 diagnostics build and settings as my runs above, cold cache. Skipped only the 11 compute programs that da605bc refused with "an address in an SGPR that is no root parameter", which includes the five nullmarsh named: 14394a322f6dd5c2,3b90165a77d95cdf,4ddd6f9702fab2a7,5c09eb42b7a3c362,5e19e7c728d956df,bb55c842c391589f,c42a31951201f9a0,e63d22c4def9ba6a,e95858837a9aa22d,f6eb6498409ca974,f94e5d8bf4e1cf05.

94e0ea5 cold 94e0ea5 warm 94e0ea5 cold, 11 skipped da605bc cold
How it ended stops presenting ~2 min in ~6 min in still presenting when I stopped it at 10 min still presenting at 8 min
Frames in the world ~7 ≥38 53 ~65
Draws per frame (median) 2,425 1,882 2,185 644
Copied per frame (median) 366 MB 542 MB 399 MB 128 MB
  • With the skip, the opening went on to the HUD and the opening credits, as on da605bc, while keeping update 9's draw counts. Your four culling programs and the rest of update 9's new compute ran.
  • 9 of the 11 were dispatched and dropped (3b90165a77d95cdf up to 1,311 dispatches per frame, 4ddd6f9702fab2a7 up to 256). 5c09eb42b7a3c362 and f94e5d8bf4e1cf05 were bound but never dispatched, so this run says nothing about those two.
  • One run, so a direction: on this machine the stop goes away when the root-UAV programs don't run, which fits the copy-back reading. If it helps, I can split the 9 dispatched ones next.
  • One difference from da605bc: the HUD's minimap panel was empty in this run (no roads drawn), where da605bc drew them. One frame each, so it may just be streaming; noting it in case one of the skipped programs feeds the minimap.

No game data attached. AI-assisted (Claude Code).

**@⁠crashbashash** on GitHub · 2026-11-24 19:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7141562847) @⁠r4tedx the split from your summary, on the same RX 6800 XT (Linux, RADV), same `94e0ea5` diagnostics build and settings as my runs above, cold cache. Skipped only the 11 compute programs that `da605bc` refused with "an address in an SGPR that is no root parameter", which includes the five nullmarsh named: `14394a322f6dd5c2,3b90165a77d95cdf,4ddd6f9702fab2a7,5c09eb42b7a3c362,5e19e7c728d956df,bb55c842c391589f,c42a31951201f9a0,e63d22c4def9ba6a,e95858837a9aa22d,f6eb6498409ca974,f94e5d8bf4e1cf05`. | | `94e0ea5` cold | `94e0ea5` warm | `94e0ea5` cold, 11 skipped | `da605bc` cold | |---|---|---|---|---| | How it ended | stops presenting ~2 min in | ~6 min in | still presenting when I stopped it at 10 min | still presenting at 8 min | | Frames in the world | ~7 | ≥38 | 53 | ~65 | | Draws per frame (median) | 2,425 | 1,882 | 2,185 | 644 | | Copied per frame (median) | 366 MB | 542 MB | 399 MB | 128 MB | - With the skip, the opening went on to the HUD and the opening credits, as on `da605bc`, while keeping update 9's draw counts. Your four culling programs and the rest of update 9's new compute ran. - 9 of the 11 were dispatched and dropped (`3b90165a77d95cdf` up to 1,311 dispatches per frame, `4ddd6f9702fab2a7` up to 256). `5c09eb42b7a3c362` and `f94e5d8bf4e1cf05` were bound but never dispatched, so this run says nothing about those two. - One run, so a direction: on this machine the stop goes away when the root-UAV programs don't run, which fits the copy-back reading. If it helps, I can split the 9 dispatched ones next. - One difference from `da605bc`: the HUD's minimap panel was empty in this run (no roads drawn), where `da605bc` drew them. One frame each, so it may just be streaming; noting it in case one of the skipped programs feeds the minimap. No game data attached. AI-assisted (Claude Code).
Author
Owner

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

@⁠crashbashash thank you, that is the split I hoped for, and it points the same way as the code does.

What the run says: with only the 11 root-UAV compute programs left out, update 9 keeps its draw counts and goes on presenting, as da605bc does. One run, as you say.

What was found in the code meanwhile, by reading, not yet by a test. I had guessed the copy-back wrote stale bytes over title memory. In detail that was wrong: it does compare, and takes only bytes the shader changed. But it then writes back the whole piece around them, up to 64 KiB at a time: it reads the title's bytes, merges the shader's bytes in, and writes the piece back if anything changed. Any byte in that piece that a title thread writes between the read and the write is put back to its older value. One shader-written byte exposes its neighbours, on every submission. That is the same on upstream main; update 9 only raised the volume, because root-UAV programs like 3b90165a77d95cdf, at over a thousand dispatches a frame in your run, each bring a range that is written back. A lookup that stops ending and title code reading a half-old pointer are what a lost update looks like.

The fix in progress writes back only the runs of bytes the shader changed, never the bytes around them, with a unit test that the runs cover exactly the changed bytes. It goes into the tree's next update and should go upstream on its own, since main has the same code. It will not remove the race for a byte that both the shader and the title write; the console has that one too.

No need to split the 9 further on my account. The run that will matter is the same A/B on the head that has the fix; I will post it here.

On the empty minimap panel: noted, and plausible that one of the 11 feeds it. With the fix in, none of them needs skipping, so I would look at it again then.

AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 19:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7141632083) @⁠crashbashash thank you, that is the split I hoped for, and it points the same way as the code does. **What the run says:** with only the 11 root-UAV compute programs left out, update 9 keeps its draw counts and goes on presenting, as `da605bc` does. One run, as you say. **What was found in the code meanwhile**, by reading, not yet by a test. I had guessed the copy-back wrote stale bytes over title memory. In detail that was wrong: it does compare, and takes only bytes the shader changed. But it then writes back the whole piece around them, up to 64 KiB at a time: it reads the title's bytes, merges the shader's bytes in, and writes the piece back if anything changed. Any byte in that piece that a title thread writes between the read and the write is put back to its older value. One shader-written byte exposes its neighbours, on every submission. That is the same on upstream `main`; update 9 only raised the volume, because root-UAV programs like `3b90165a77d95cdf`, at over a thousand dispatches a frame in your run, each bring a range that is written back. A lookup that stops ending and title code reading a half-old pointer are what a lost update looks like. **The fix in progress** writes back only the runs of bytes the shader changed, never the bytes around them, with a unit test that the runs cover exactly the changed bytes. It goes into the tree's next update and should go upstream on its own, since `main` has the same code. It will not remove the race for a byte that both the shader and the title write; the console has that one too. No need to split the 9 further on my account. The run that will matter is the same A/B on the head that has the fix; I will post it here. On the empty minimap panel: noted, and plausible that one of the 11 feeds it. With the fix in, none of them needs skipping, so I would look at it again then. AI-assisted.
Author
Owner

@⁠c4k3ss on GitHub · 2026-11-24 19:05 UTC · original · edited 2026-11-24 19:07 UTC

@⁠andrewpozdnakov7-jpg, on reflection you already wrote and tested this fix (#293), so it's yours: I'm not opening a PR for it. If upstream PR creation works for you, I'm happy to review it when you open it. AI-assisted (Claude Code).

**@⁠c4k3ss** on GitHub · 2026-11-24 19:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7141575272) · edited 2026-11-24 19:07 UTC @⁠andrewpozdnakov7-jpg, on reflection you already wrote and tested this fix (https://git.gtahub.st/github/Marvisak--VIctory/issues/293), so it's yours: I'm not opening a PR for it. If upstream PR creation works for you, I'm happy to review it when you open it. AI-assisted (Claude Code).
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 19:10 UTC · original

@⁠r4tedx thanks. A correction to my reports, after reading #774.

The stop I saw on 94e0ea5 is very likely #774's stall: my threads were in the same lookup (+0x31962 returns from a call to +0x50eb750). @⁠Mumogg showed with a debugger why it doesn't end: the key isn't in the table because the slot's word changed after the insert, and that lookup has no exit for an absent key. So my "never finds an empty slot" was wrong. #774 also happens on main-based stacks without update 9 (Mumogg: 3 of 5 runs at 250–420 s; oeirughrepuiohg: 1 of 8 world loads on #844), so my two stops against one clean run per arm don't separate update 9 from #774 on their own.

No game data attached. AI-assisted (Claude Code).

**@⁠crashbashash** on GitHub · 2026-11-24 19:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7141703210) @⁠r4tedx thanks. A correction to my reports, after reading #774. The stop I saw on `94e0ea5` is very likely #774's stall: my threads were in the same lookup (`+0x31962` returns from a call to `+0x50eb750`). @⁠Mumogg showed with a debugger why it doesn't end: the key isn't in the table because the slot's word changed after the insert, and that lookup has no exit for an absent key. So my "never finds an empty slot" was wrong. #774 also happens on `main`-based stacks without update 9 (Mumogg: 3 of 5 runs at 250–420 s; oeirughrepuiohg: 1 of 8 world loads on #844), so my two stops against one clean run per arm don't separate update 9 from #774 on their own. No game data attached. AI-assisted (Claude Code).
Author
Owner

@⁠eazyves on GitHub · 2026-11-24 19:39 UTC · original

@⁠r4tedx a small test fix for integration/testers (4744af9): indirect_rectangles_reach_the_target fails its debug-layer run here. The normal pixel run passes.

Setup: RX 9070 XT, driver 32.0.32029.2010, Windows 11 26200, D3D12 debug layer installed.

id 1419: SetGraphicsRootSignature: SetDescriptorHeaps must be called to bind a CBV/SRV/UAV descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED flag.

(and the same for the sampler heap)

Cause: the test starts from State::default() and never sets heaps, so bind in draw.rs finds host_heaps == heaps and skips SetDescriptorHeaps. The root signature has both directly-indexed flags. This looks like a gap in the test only; I have not seen it on a title path.

Fix I tried, in Scene::render, before OMSetRenderTargets:

let heaps = [
    D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV,
    D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER,
]
.map(|kind| {
    let desc = D3D12_DESCRIPTOR_HEAP_DESC {
        Type: kind,
        NumDescriptors: 1,
        Flags: D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE,
        NodeMask: 0,
    };
    // SAFETY: a valid heap description.
    let h: ID3D12DescriptorHeap =
        unsafe { self.host.device.CreateDescriptorHeap(&desc).unwrap() };
    Some(h)
});
heaps.iter().flatten().for_each(|h| self.list.keep(h));
// SAFETY: an open list and shader-visible heaps.
unsafe { l.SetDescriptorHeaps(&heaps) };

Unpatched it fails every time (1 run on 4744af9, several on 94e0ea5). With the fix, 2 of 2 runs pass on 4744af9, with "debug layer run: no errors". Without the debug layer installed, that part is skipped and the test still passes, so it is easy to miss.

Synthetic test only, no game data. AI-assisted (Claude Code).

**@⁠eazyves** on GitHub · 2026-11-24 19:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7142416754) @⁠r4tedx a small test fix for `integration/testers` (`4744af9`): `indirect_rectangles_reach_the_target` fails its debug-layer run here. The normal pixel run passes. **Setup:** RX 9070 XT, driver 32.0.32029.2010, Windows 11 26200, D3D12 debug layer installed. ``` id 1419: SetGraphicsRootSignature: SetDescriptorHeaps must be called to bind a CBV/SRV/UAV descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED flag. ``` (and the same for the sampler heap) **Cause:** the test starts from `State::default()` and never sets heaps, so `bind` in `draw.rs` finds `host_heaps == heaps` and skips `SetDescriptorHeaps`. The root signature has both directly-indexed flags. This looks like a gap in the test only; I have not seen it on a title path. **Fix I tried**, in `Scene::render`, before `OMSetRenderTargets`: ```rust let heaps = [ D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER, ] .map(|kind| { let desc = D3D12_DESCRIPTOR_HEAP_DESC { Type: kind, NumDescriptors: 1, Flags: D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE, NodeMask: 0, }; // SAFETY: a valid heap description. let h: ID3D12DescriptorHeap = unsafe { self.host.device.CreateDescriptorHeap(&desc).unwrap() }; Some(h) }); heaps.iter().flatten().for_each(|h| self.list.keep(h)); // SAFETY: an open list and shader-visible heaps. unsafe { l.SetDescriptorHeaps(&heaps) }; ``` Unpatched it fails every time (1 run on `4744af9`, several on `94e0ea5`). With the fix, 2 of 2 runs pass on `4744af9`, with "debug layer run: no errors". Without the debug layer installed, that part is skipped and the test still passes, so it is easy to miss. Synthetic test only, no game data. AI-assisted (Claude Code).
Author
Owner

@⁠eazyves on GitHub · 2026-11-24 20:48 UTC · original

@⁠r4tedx a narrower result on the AMD compiler crash with the select guard form (RX 9070 XT, driver 32.0.32029.2010, 94e0ea5, offline, title not run). Follow-up to #71.

One handle is enough. With a local switch that uses select for chosen handles and umin for the rest:

  • 7b956e1f6d56609f: each of its 245 handles alone on select: only one (number 158 in emission order) crashes. 3 of 3 repeats.
  • 072f5fe96efd27e1: bisected to one (number 165), 3 of 3 repeats. I did not test its other handles one by one.

So in these two programs the crash does not need a select on many handles, which INTEGRATION.md gives as the suspicion; one select is enough in a large module.

The form of the select does not matter. At that handle, index < guard, index >= guard with the arms swapped, guard > index, a constant bound, and index < guard ? index : 0 crash, 2 of 2 each, in both programs. umin does not.

What the two sites share: a resource-heap handle whose index comes from a user-data dword, used as a raw buffer with a size query, at the start of a block after many phis. I have not shown which of these matters; many other handles with a size query in the same program do not crash.

Not reproduced: 8 small synthetic HLSL compute shaders with a select index (DXC -O3 and -Od, up to 24 loops) all get pipelines, as do 8 controls with min. So no self-contained case for AMD yet.

For me this supports umin as the default. AI-assisted (Claude Code). No game data, no shader listings.

**@⁠eazyves** on GitHub · 2026-11-24 20:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7144086954) @⁠r4tedx a narrower result on the AMD compiler crash with the `select` guard form (RX 9070 XT, driver 32.0.32029.2010, `94e0ea5`, offline, title not run). Follow-up to [#71](https://git.gtahub.st/github/Marvisak--VIctory/issues/71). **One handle is enough.** With a local switch that uses `select` for chosen handles and `umin` for the rest: - `7b956e1f6d56609f`: each of its 245 handles alone on `select`: only one (number 158 in emission order) crashes. 3 of 3 repeats. - `072f5fe96efd27e1`: bisected to one (number 165), 3 of 3 repeats. I did not test its other handles one by one. So in these two programs the crash does not need a `select` on many handles, which `INTEGRATION.md` gives as the suspicion; one `select` is enough in a large module. **The form of the select does not matter.** At that handle, `index < guard`, `index >= guard` with the arms swapped, `guard > index`, a constant bound, and `index < guard ? index : 0` crash, 2 of 2 each, in both programs. `umin` does not. **What the two sites share:** a resource-heap handle whose index comes from a user-data dword, used as a raw buffer with a size query, at the start of a block after many phis. I have not shown which of these matters; many other handles with a size query in the same program do not crash. **Not reproduced:** 8 small synthetic HLSL compute shaders with a `select` index (DXC `-O3` and `-Od`, up to 24 loops) all get pipelines, as do 8 controls with `min`. So no self-contained case for AMD yet. For me this supports `umin` as the default. AI-assisted (Claude Code). No game data, no shader listings.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original · edited 2026-11-26 00:50 UTC

Automated triage for the maintainers.

This is a coordination thread: a ranking of untranslated shaders by draws lost per frame, followed by measurements of open PRs and of community integration trees. It stays open as a discussion. The individual refusal reasons are handled in their own PRs and issues; the rectangle-list drops it mentions are #255, which main now handles (683ad7a).

The old integration tree (4744af9) is frozen on its pre-940d32f base. The tester branch on current main (integration/testers-main) combines open PRs; the INTEGRATION.md at its root lists what each head contains. The PRs it carries are where each change is reviewed, and a result that concerns one PR belongs on that PR. Of those named before, #158 (depth bounds) is now merged (842b0cb); #159, #2111, #1883, #2027 and #1315 are still open. Run reports from the tester branch should name the head they ran, since it differs from main.

New since the last triage (Anzymanz):

  • On main f3578e3, an offline pass over the title's pack refuses only 25 vertex/pixel/compute/mesh programs (13 untracked lane-mask joins, 5 v_cvt_f32_f64, 4 lane masks read as data, and one each of v_permlanex16_b32, barycentrics and a descriptor read as data), so the ranking at the top of this thread is largely out of date for main (63bcca4).
  • Translation time: the slowest programs take 8-25 s each to lower, nearly all of it in Lower::live_edges; open PR #2864 addresses it.
  • In Linux world runs the drops are mostly elsewhere: the indirect argument clamp under Wine's compiler (open PR #1279) and root-constant dword 4 taken as a root view offset (open PR #2703).
  • A GPU cost-per-pipeline table for RDNA4 (RX 9070 XT, RADV through vkd3d-proton) is announced for this thread.

Some comments quote the title's internal shader program names. Material from the game must not be posted here; shader hashes and refusal reasons are enough to identify programs.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7149967004) · edited 2026-11-26 00:50 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T22:39:52Z at=2026-11-26T01:05:00Z --> Automated triage for the maintainers. This is a coordination thread: a ranking of untranslated shaders by draws lost per frame, followed by measurements of open PRs and of community integration trees. It stays open as a discussion. The individual refusal reasons are handled in their own PRs and issues; the rectangle-list drops it mentions are #255, which `main` now handles (`683ad7a`). The old integration tree (`4744af9`) is frozen on its pre-`940d32f` base. The tester branch on current `main` (`integration/testers-main`) combines open PRs; the `INTEGRATION.md` at its root lists what each head contains. The PRs it carries are where each change is reviewed, and a result that concerns one PR belongs on that PR. Of those named before, #158 (depth bounds) is now merged (842b0cb); #159, #2111, #1883, #2027 and #1315 are still open. Run reports from the tester branch should name the head they ran, since it differs from `main`. New since the last triage (Anzymanz): - On `main` `f3578e3`, an offline pass over the title's pack refuses only 25 vertex/pixel/compute/mesh programs (13 untracked lane-mask joins, 5 `v_cvt_f32_f64`, 4 lane masks read as data, and one each of `v_permlanex16_b32`, barycentrics and a descriptor read as data), so the ranking at the top of this thread is largely out of date for `main` (`63bcca4`). - Translation time: the slowest programs take 8-25 s each to lower, nearly all of it in `Lower::live_edges`; open PR #2864 addresses it. - In Linux world runs the drops are mostly elsewhere: the indirect argument clamp under Wine's compiler (open PR #1279) and root-constant dword 4 taken as a root view offset (open PR #2703). - A GPU cost-per-pipeline table for RDNA4 (RX 9070 XT, RADV through vkd3d-proton) is announced for this thread. Some comments quote the title's internal shader program names. Material from the game must not be posted here; shader hashes and refusal reasons are enough to identify programs. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

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

@⁠eazyves thanks, both reports hold as far as I can check them here.

indirect_rectangles_reach_the_target. Confirmed by reading 4744af9; I have no debug layer installed, so I did not reproduce the message itself. bind in draw.rs calls SetDescriptorHeaps only when host_heaps != heaps, the test starts from State::default() where both are zero, and the root signature has both directly-indexed flags. A gap in the test, as you say.

The select guard on AMD. One select at one handle being enough, whatever the form of the comparison, replaces my "many handles" guess in INTEGRATION.md. umin should be the default form; on 4744af9 that is VICTORY_HEAP_GUARD_FORM=umin with a fresh shader cache. main at 940d32f has no heap guard (I searched for it), so this crash is the tree's.

No further updates on this base. main moved 319 commits past ffe310e, the base of integration/testers, and now has its own form of much of what the tree collected: rectangle lists through a geometry shader (683ad7a), a stride table for buffers of unknown stride (0b35b7f), writable twins for depth textures (13bbd6f), copy-backs limited to the pages shaders mark (cd94d35, 940d32f). So 4744af9 stays as it is, as the last update on the old base, and neither fix above goes onto it. What main still lacks goes to pull requests against main, as the triage note above asks. If a combined tree is still useful after that, it will be main plus those, under a new branch name, announced here once.

For reports: a run of 4744af9 is a run of the old base. Please say which of the two you ran, since main differs from it in most of the paths discussed here.

Nothing was run on a GPU for this comment and no game data was used. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-25 04:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7152739120) @⁠eazyves thanks, both reports hold as far as I can check them here. **`indirect_rectangles_reach_the_target`.** Confirmed by reading `4744af9`; I have no debug layer installed, so I did not reproduce the message itself. `bind` in `draw.rs` calls `SetDescriptorHeaps` only when `host_heaps != heaps`, the test starts from `State::default()` where both are zero, and the root signature has both directly-indexed flags. A gap in the test, as you say. **The `select` guard on AMD.** One `select` at one handle being enough, whatever the form of the comparison, replaces my "many handles" guess in `INTEGRATION.md`. `umin` should be the default form; on `4744af9` that is `VICTORY_HEAP_GUARD_FORM=umin` with a fresh shader cache. `main` at `940d32f` has no heap guard (I searched for it), so this crash is the tree's. **No further updates on this base.** `main` moved 319 commits past `ffe310e`, the base of `integration/testers`, and now has its own form of much of what the tree collected: rectangle lists through a geometry shader (`683ad7a`), a stride table for buffers of unknown stride (`0b35b7f`), writable twins for depth textures (`13bbd6f`), copy-backs limited to the pages shaders mark (`cd94d35`, `940d32f`). So `4744af9` stays as it is, as the last update on the old base, and neither fix above goes onto it. What `main` still lacks goes to pull requests against `main`, as the triage note above asks. If a combined tree is still useful after that, it will be `main` plus those, under a new branch name, announced here once. For reports: a run of `4744af9` is a run of the old base. Please say which of the two you ran, since `main` differs from it in most of the paths discussed here. Nothing was run on a GPU for this comment and no game data was used. AI-assisted.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-25 06:08 UTC · original

A tester branch on current main: integration/testers-main at https://github.com/r4tedx/VIctory/tree/integration/testers-main, head f84248d, on main 940d32f.

The old integration/testers stops at 4744af9 (update 10). It was based on ffe310e, before the maintainer's drop of 2026-11-24 and the PRs merged since, and does not merge onto main; it stays on the fork as it is.

The new branch is deliberately small: seven open PRs, each its own merge commit, no edits beyond them. INTEGRATION.md at its root lists them with heads.

  • #158 depth bounds, #159 host queries, #2111 one pipeline wait budget per frame (its frame line also prints the time draws waited for pipelines);
  • #1762 (claude-GTA6) structured buffer views as raw views on the host, the NVIDIA raw-over-structured read;
  • #1883 (powplusplus) and #2027 (fiestorra), compute lane masks and compute samples at level 0;
  • #1315 single-stream geometry programs.

Not in it yet: the wave64 stack (#223, #233, #320, #439), until it has a head on main. So an NVIDIA card still refuses the 64-lane compute programs on this branch, as on main.

How it was checked, on one Windows 11 PC:

  • release build and clippy -D warnings clean;
  • victory-gpu tests on WARP 161 passed, 0 failed;
  • victory-shader tests with VICTORY_WARP=1 259 passed and 2 failed, the two hardware-only checks that fail the same way on main under that setting;
  • a local title-data diagnostic: an offline translate --validate --list over this PC's copy of shaders.rpf (CPU only, counts and reasons only), program by program against main, gave 975 programs gained, 0 lost: all 195 geometry programs and 780 compute programs.

The title was not run with this branch, and nothing from it ran on a hardware GPU here. It makes no claim about the game.

A useful report from the title: the head, GPU and driver; whether the world loads lit and for how long; the frame line's times; any device removal with DRED and the nvlddmkm events of the System log. On NVIDIA, check first that the Nsight Aftermath Monitor is not set to Global (leonidaavenger on #71 found it turns every world load into a device hang).

AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-25 06:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7154483613) **A tester branch on current `main`:** `integration/testers-main` at https://github.com/r4tedx/VIctory/tree/integration/testers-main, head `f84248d`, on `main` `940d32f`. The old `integration/testers` stops at `4744af9` (update 10). It was based on `ffe310e`, before the maintainer's drop of 2026-11-24 and the PRs merged since, and does not merge onto `main`; it stays on the fork as it is. The new branch is deliberately small: seven open PRs, each its own merge commit, no edits beyond them. `INTEGRATION.md` at its root lists them with heads. - #158 depth bounds, #159 host queries, #2111 one pipeline wait budget per frame (its frame line also prints the time draws waited for pipelines); - #1762 (claude-GTA6) structured buffer views as raw views on the host, the NVIDIA raw-over-structured read; - #1883 (powplusplus) and #2027 (fiestorra), compute lane masks and compute samples at level 0; - #1315 single-stream geometry programs. Not in it yet: the wave64 stack (#223, #233, #320, #439), until it has a head on `main`. So an NVIDIA card still refuses the 64-lane compute programs on this branch, as on `main`. How it was checked, on one Windows 11 PC: - release build and `clippy -D warnings` clean; - `victory-gpu` tests on WARP 161 passed, 0 failed; - `victory-shader` tests with `VICTORY_WARP=1` 259 passed and 2 failed, the two hardware-only checks that fail the same way on `main` under that setting; - a local title-data diagnostic: an offline `translate --validate --list` over this PC's copy of `shaders.rpf` (CPU only, counts and reasons only), program by program against `main`, gave **975 programs gained, 0 lost**: all 195 geometry programs and 780 compute programs. The title was not run with this branch, and nothing from it ran on a hardware GPU here. It makes no claim about the game. A useful report from the title: the head, GPU and driver; whether the world loads lit and for how long; the frame line's times; any device removal with DRED and the `nvlddmkm` events of the System log. On NVIDIA, check first that the Nsight Aftermath Monitor is not set to Global (leonidaavenger on #71 found it turns every world load into a device hang). AI-assisted.
Author
Owner

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

Call for runs: integration/testers-main, and which of its PRs need which kind of run

The branch announced above has grown and needs runs in the title that we cannot supply ourselves. It is at f755f13 as I write (eleven PRs on main 940d32f); INTEGRATION.md at its root always lists what a given head contains and how it was checked. A larger head with more crash-fix PRs is in its check round, and the wave64 stack follows.

What one run of the branch against main 940d32f would settle, by card:

Card Run What it answers
64-lane hosts (AMD RDNA) branch and main, same scene, diagnostics build whether the world is lit with #1762, #1883, #2027 and #1315 together; the frame line with #2136 and #2147 in (preparing halves in a synthetic replay, #400; nobody has seen it in the title); the new "draws waiting for pipelines" time from #2111
32-lane hosts (NVIDIA, Intel) #439's head 5a11cf4 now, the branch once the stack is merged into it how many compute pipelines are still refused for their wave size; that the 12 programs #233 now refuses at translation no longer reach the card; any device removal, with DRED
any card with the debug layer diagnostics build with VICTORY_D3D12_DEBUG=1 resource-state messages around #159's query resolves and #158's depth-bounds draws

What to post (here for the branch, on the PR for a single PR): the head, GPU, driver and Windows build; whether the world loads, whether it is lit, how long it ran; the whole frame line and the whole copies per frame line for the branch and for main, not a part of them; a device removal with its DRED output and the System log's display-driver events. Counts, messages and hashes only, never game files, shader dumps or captures.

Three cautions before you spend an evening on it:

  • Nothing on this branch has been run in the title by us, and nothing from it has run on a hardware GPU here; it was checked on the software adapter and by an offline count (975 programs validate that do not on main, none lost). It may hang or lose the device as main can.
  • On an RX 9070 XT, @⁠KingKaom reported on #841 that plain main dies in the AMD compiler about 35 s in and needed #1936 on top. The branch does not carry #1936 yet, so the same may hold for it on RDNA 4.
  • On NVIDIA, check that the Nsight Aftermath Monitor is not set to Global (leonidaavenger, #71).

Asks to people who have already measured the neighbouring thing, only if you have the time:

  • @⁠Feuris: your 940d32f run on the RX 6700 XT is the one breakdown of a world frame anyone has. The same scene on the branch, with both whole lines, would show what #2136 and #2147 do to the 774-1,198 ms of preparing.
  • @⁠KingKaom: your in-world main log on the RX 9070 XT, repeated on the branch (with #1936 if you need it), for the lit-or-not question and the frame line.
  • @⁠yualk: you measured #2136 with the benchmark on an RTX 5070 Ti (147.6 to 51.1 ms). If you run the title, the frame line on main and on the branch is the missing half.
  • @⁠JurajSimicevic: #159 is at b7249e5 on main now, and it is in the branch, so your debug-layer run can use either.

This also covers the request on #400 for the testers/preparing-skip-arm branch: the two fixes it carries are in integration/testers-main, so one run of this branch answers both.

Nothing was run for this comment.

AI-assisted (Claude Code).

**@⁠r4tedx** on GitHub · 2026-11-25 07:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7155733545) **Call for runs: `integration/testers-main`, and which of its PRs need which kind of run** The branch announced above has grown and needs runs in the title that we cannot supply ourselves. It is at `f755f13` as I write (eleven PRs on `main` `940d32f`); `INTEGRATION.md` at its root always lists what a given head contains and how it was checked. A larger head with more crash-fix PRs is in its check round, and the wave64 stack follows. What one run of the branch against `main` `940d32f` would settle, by card: | Card | Run | What it answers | |---|---|---| | 64-lane hosts (AMD RDNA) | branch and `main`, same scene, diagnostics build | whether the world is lit with #1762, #1883, #2027 and #1315 together; the frame line with #2136 and #2147 in (preparing halves in a synthetic replay, #400; nobody has seen it in the title); the new "draws waiting for pipelines" time from #2111 | | 32-lane hosts (NVIDIA, Intel) | #439's head `5a11cf4` now, the branch once the stack is merged into it | how many compute pipelines are still refused for their wave size; that the 12 programs #233 now refuses at translation no longer reach the card; any device removal, with DRED | | any card with the debug layer | diagnostics build with `VICTORY_D3D12_DEBUG=1` | resource-state messages around #159's query resolves and #158's depth-bounds draws | What to post (here for the branch, on the PR for a single PR): the head, GPU, driver and Windows build; whether the world loads, whether it is lit, how long it ran; **the whole frame line and the whole `copies per frame` line** for the branch and for `main`, not a part of them; a device removal with its DRED output and the System log's display-driver events. Counts, messages and hashes only, never game files, shader dumps or captures. Three cautions before you spend an evening on it: - Nothing on this branch has been run in the title by us, and nothing from it has run on a hardware GPU here; it was checked on the software adapter and by an offline count (975 programs validate that do not on `main`, none lost). It may hang or lose the device as `main` can. - On an RX 9070 XT, @⁠KingKaom reported on #841 that plain `main` dies in the AMD compiler about 35 s in and needed #1936 on top. The branch does not carry #1936 yet, so the same may hold for it on RDNA 4. - On NVIDIA, check that the Nsight Aftermath Monitor is not set to Global (leonidaavenger, #71). Asks to people who have already measured the neighbouring thing, only if you have the time: - @⁠Feuris: your `940d32f` run on the RX 6700 XT is the one breakdown of a world frame anyone has. The same scene on the branch, with both whole lines, would show what #2136 and #2147 do to the 774-1,198 ms of preparing. - @⁠KingKaom: your in-world `main` log on the RX 9070 XT, repeated on the branch (with #1936 if you need it), for the lit-or-not question and the frame line. - @⁠yualk: you measured #2136 with the benchmark on an RTX 5070 Ti (147.6 to 51.1 ms). If you run the title, the frame line on `main` and on the branch is the missing half. - @⁠JurajSimicevic: #159 is at `b7249e5` on `main` now, and it is in the branch, so your debug-layer run can use either. This also covers the request on #400 for the `testers/preparing-skip-arm` branch: the two fixes it carries are in `integration/testers-main`, so one run of this branch answers both. Nothing was run for this comment. AI-assisted (Claude Code).
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-25 22:39 UTC · original

From a tester working with Claude (AI-assisted, Claude Code).

Two things I'm taking, so nobody duplicates them:

  • Translation time. On main f3578e3, the slowest programs in the title's pack take 8-25 s each to lower (one took 527 s on 13f91ca under Proton, which looks like a hung translate --cache). Nearly all of it was a quadratic scan in Lower::live_edges: #2864, output byte-identical on all 25,889 containers.
  • GPU cost per pipeline in the world on RDNA4 (RX 9070 XT, RADV through vkd3d-proton): which passes cost the most GPU time and why (loop limits, waterfall loops, wave size). I'll post the table here once I have world runs.

For whoever picks from this thread's ranking: on main f3578e3 an offline pass over the pack refuses only 25 vertex/pixel/compute/mesh programs (13 untracked lane-mask joins, 5 v_cvt_f32_f64, 4 lane masks read as data, 1 each of v_permlanex16_b32, barycentrics, a descriptor read as data), and every one of those classes already has open PRs. The drops in our Linux world runs are mostly elsewhere: the indirect clamp under Wine's compiler (#1279, rebased by ntgata1-dotcom) and root-constant dword 4 taken as a root view offset (#2699 / #2703).

No game data here: counts, hashes and timings only.

**@⁠Anzymanz** on GitHub · 2026-11-25 22:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/293#issuecomment-7176640926) From a tester working with Claude (AI-assisted, Claude Code). Two things I'm taking, so nobody duplicates them: - **Translation time.** On `main` `f3578e3`, the slowest programs in the title's pack take 8-25 s each to lower (one took 527 s on `13f91ca` under Proton, which looks like a hung `translate --cache`). Nearly all of it was a quadratic scan in `Lower::live_edges`: #2864, output byte-identical on all 25,889 containers. - **GPU cost per pipeline in the world on RDNA4** (RX 9070 XT, RADV through vkd3d-proton): which passes cost the most GPU time and why (loop limits, waterfall loops, wave size). I'll post the table here once I have world runs. For whoever picks from this thread's ranking: on `main` `f3578e3` an offline pass over the pack refuses only 25 vertex/pixel/compute/mesh programs (13 untracked lane-mask joins, 5 `v_cvt_f32_f64`, 4 lane masks read as data, 1 each of `v_permlanex16_b32`, barycentrics, a descriptor read as data), and every one of those classes already has open PRs. The drops in our Linux world runs are mostly elsewhere: the indirect clamp under Wine's compiler (#1279, rebased by ntgata1-dotcom) and root-constant dword 4 taken as a root view offset (#2699 / #2703). No game data here: counts, hashes and timings only.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#293
No description provided.