fix(shader): keep size queries, index clamps, and buffer size handles distinct on RDNA4 (#163) #258

Manually merged
github merged 7 commits from github-bot/gh-258 into gh-pr/258/base 2026-11-27 16:22:33 +00:00 AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 12:40 UTC · original
Vladimir-Human:fix/rdna4-size-query-compiler-crash-163 → main · +672 −11 · 7 files · 7 commits · merged 2026-11-27 16:19 UTC

Summary

Fixes the three DXIL lowering and optimisation patterns in victory-shader that trigger amdxc64.dll+0x861b9f (null read during CreateComputePipelineState on AMD RDNA4, driver 32.0.32029.2010, #163):

  1. Do not reuse dx.op.getDimensions (crates/victory-shader/src/emit/bitcode/opt.rs): Module::key() now returns None for getDimensions calls, so neither REUSE nor LOADS merges one size query into an earlier dominating one (and future LICM + REUSE passes cannot coalesce them either). Effect::Pure is preserved so DEAD still eliminates unused size queries. Adapted from Belobug/VIctory-Belobug-AMD#324 (4eb6cfd).
  2. Keep per-handle index clamps separate (crates/victory-shader/src/emit/bitcode.rs, opt.rs): Module::tag() now records Tag::Clamp unconditionally (not only when census is enabled), and Module::key() returns None for Tag::Clamp instructions. This keeps VICTORY_VIEW_LIMIT and raw_twin UMin clamps one per handle so REUSE cannot share a single clamped index across handles of different kinds (explaining why setting VICTORY_VIEW_LIMIT=2097152 reproduces #163 offline and why porting a separate size handle alone without clamp separation still failed). Adapted from fxceless/victory-fork#984.
  3. Dedicated non-uniform handle for buffer size queries (crates/victory-shader/src/emit/shader.rs, lower.rs): descriptor_data now asks a buffer's size (image.is_none() && !waterfall.loads.contains(&site)) through Shader::size_handle_at, emitting createHandleFromHeap(..., false, true) after raw_twin lookup and bypassing the per-block self.handles cache so buffer loads keep their uniform handle. It does not increment nonuniform_handles and emits no waveReadLaneFirst / WAVE_OPS, keeping pixel shaders helper-lane safe and waterfall loops unchanged. Adapted from fxceless/victory-fork#1213 (#452) for Vice-Tay's raw_twin/heap_handle_at path.
  4. Translator cache version (crates/victory-shader/src/lib.rs): rebased onto 877a40e and bumped TRANSLATOR_VERSION from 9 to 10 so cached shaders rebuild cleanly without colliding with main's 9.

Attribution

  • dx.op.getDimensions non-reuse: adapted from Belobug/VIctory-Belobug-AMD#324 (4eb6cfd).
  • Per-handle Tag::Clamp preservation across REUSE: adapted from fxceless/victory-fork#984.
  • Dedicated non-uniform buffer size handle (size_handle_at) and branched buffer-size reproducer: adapted from fxceless/victory-fork#1213 (#452) for Vice-Tay's raw_twin path.

Verification

  • Unit DXIL IR tests (emit::bitcode::opt::tests):
    • a_size_query_is_not_reused and clamped_indices_are_not_reused verify both in-block and cross-block non-reuse across opt = 0, REUSE, REUSE | LOADS, and ALL, while verifying DEAD still removes unused getDimensions and Tag::Clamp instructions.
  • End-to-end GFX10 -> DXIL -> dxil.dll + dxc -dumpbin + D3D12 HW/WARP tests (emit::size_tests):
    • a_buffer_size_query_uses_its_own_nonuniform_handle_and_clamps: tests opt = 0/DEFAULT/ALL, VIEW_LIMIT = 0/2_097_152, raw_views = 0/4, compute and pixel stages; verifies distinct %dx.types.Handle values (nonUniform = true vs false), distinct UMin clamp indices under VIEW_LIMIT, wave_ops == false and nonuniform_handles == 0, dxil.dll validation, and exact execution results on D3D12 hardware and WARP.
    • branched_buffer_size_read_as_number_compiles_with_view_clamp: validates and compiles the branched buffer-size compute shader under VIEW_LIMIT = 2_097_152 on D3D12 hardware and WARP.
    • two_image_resinfo_queries_stay_distinct_with_and_without_opt: verifies two image_get_resinfo calls across a branch remain 2 distinct @dx.op.getDimensions calls after DEFAULT/ALL optimisation and return [10, 6] on D3D12 hardware and WARP.
  • Checks run on c788768 (VICTORY_D3D12_DEBUG=1, --test-threads=1, Windows SDK 10.0.26100.0 dxil.dll + dxc.exe, D3D12 hardware + WARP):
    • cargo clippy -p victory-shader --all-targets --locked -- -D warnings (default and --all-features): 0 warnings
    • HW (emit::size_tests, emit::bitcode::opt::tests, emit::bitcode::tests, emit::waterfall_tests, emit::lower::tests): 58 passed; 0 failed; 2 ignored (0 D3D12 debug errors)
    • WARP (VICTORY_WARP=1, CI mode without VICTORY_D3D12_DEBUG): emit::size_tests 12 passed; 0 failed
    • cargo run -p xtask --locked -- policy: asset policy: 313 files ok; cargo test -p xtask --locked: 11 passed; 0 failed
  • Not yet tested on RDNA4 hardware (tested on NVIDIA D3D12 hardware + WARP + Windows SDK dxil.dll/dxc.exe). Ready for RDNA4 confirmation on #163 (translate --validate --pipelines --jobs 1 with VICTORY_VIEW_LIMIT=2097152 and in-game boot).

Refs #163

**@⁠Vladimir-Human** on GitHub · 2026-11-27 12:40 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258) `Vladimir-Human:fix/rdna4-size-query-compiler-crash-163` → `main` · +672 −11 · 7 files · 7 commits · merged 2026-11-27 16:19 UTC ## Summary Fixes the three DXIL lowering and optimisation patterns in `victory-shader` that trigger `amdxc64.dll+0x861b9f` (null read during `CreateComputePipelineState` on AMD RDNA4, driver `32.0.32029.2010`, #163): 1. **Do not reuse `dx.op.getDimensions` (`crates/victory-shader/src/emit/bitcode/opt.rs`):** `Module::key()` now returns `None` for `getDimensions` calls, so neither `REUSE` nor `LOADS` merges one size query into an earlier dominating one (and future `LICM` + `REUSE` passes cannot coalesce them either). `Effect::Pure` is preserved so `DEAD` still eliminates unused size queries. Adapted from `Belobug/VIctory-Belobug-AMD#324` (`4eb6cfd`). 2. **Keep per-handle index clamps separate (`crates/victory-shader/src/emit/bitcode.rs`, `opt.rs`):** `Module::tag()` now records `Tag::Clamp` unconditionally (not only when `census` is enabled), and `Module::key()` returns `None` for `Tag::Clamp` instructions. This keeps `VICTORY_VIEW_LIMIT` and `raw_twin` `UMin` clamps one per handle so `REUSE` cannot share a single clamped index across handles of different kinds (explaining why setting `VICTORY_VIEW_LIMIT=2097152` reproduces #163 offline and why porting a separate size handle alone without clamp separation still failed). Adapted from `fxceless/victory-fork#984`. 3. **Dedicated non-uniform handle for buffer size queries (`crates/victory-shader/src/emit/shader.rs`, `lower.rs`):** `descriptor_data` now asks a buffer's size (`image.is_none() && !waterfall.loads.contains(&site)`) through `Shader::size_handle_at`, emitting `createHandleFromHeap(..., false, true)` after `raw_twin` lookup and bypassing the per-block `self.handles` cache so buffer loads keep their uniform handle. It does not increment `nonuniform_handles` and emits no `waveReadLaneFirst` / `WAVE_OPS`, keeping pixel shaders helper-lane safe and waterfall loops unchanged. Adapted from `fxceless/victory-fork#1213` (`#452`) for `Vice-Tay`'s `raw_twin`/`heap_handle_at` path. 4. **Translator cache version (`crates/victory-shader/src/lib.rs`):** rebased onto `877a40e` and bumped `TRANSLATOR_VERSION` from `9` to `10` so cached shaders rebuild cleanly without colliding with `main`'s `9`. ## Attribution - `dx.op.getDimensions` non-reuse: adapted from `Belobug/VIctory-Belobug-AMD#324` (`4eb6cfd`). - Per-handle `Tag::Clamp` preservation across `REUSE`: adapted from `fxceless/victory-fork#984`. - Dedicated non-uniform buffer size handle (`size_handle_at`) and branched buffer-size reproducer: adapted from `fxceless/victory-fork#1213` (`#452`) for `Vice-Tay`'s `raw_twin` path. ## Verification - **Unit DXIL IR tests (`emit::bitcode::opt::tests`):** - `a_size_query_is_not_reused` and `clamped_indices_are_not_reused` verify both in-block and cross-block non-reuse across `opt = 0`, `REUSE`, `REUSE | LOADS`, and `ALL`, while verifying `DEAD` still removes unused `getDimensions` and `Tag::Clamp` instructions. - **End-to-end GFX10 -> DXIL -> `dxil.dll` + `dxc -dumpbin` + D3D12 HW/WARP tests (`emit::size_tests`):** - `a_buffer_size_query_uses_its_own_nonuniform_handle_and_clamps`: tests `opt = 0`/`DEFAULT`/`ALL`, `VIEW_LIMIT = 0`/`2_097_152`, `raw_views = 0`/`4`, compute and pixel stages; verifies distinct `%dx.types.Handle` values (`nonUniform = true` vs `false`), distinct `UMin` clamp indices under `VIEW_LIMIT`, `wave_ops == false` and `nonuniform_handles == 0`, `dxil.dll` validation, and exact execution results on D3D12 hardware and WARP. - `branched_buffer_size_read_as_number_compiles_with_view_clamp`: validates and compiles the branched buffer-size compute shader under `VIEW_LIMIT = 2_097_152` on D3D12 hardware and WARP. - `two_image_resinfo_queries_stay_distinct_with_and_without_opt`: verifies two `image_get_resinfo` calls across a branch remain 2 distinct `@dx.op.getDimensions` calls after `DEFAULT`/`ALL` optimisation and return `[10, 6]` on D3D12 hardware and WARP. - **Checks run on `c788768` (`VICTORY_D3D12_DEBUG=1`, `--test-threads=1`, Windows SDK `10.0.26100.0` `dxil.dll` + `dxc.exe`, D3D12 hardware + WARP):** - `cargo clippy -p victory-shader --all-targets --locked -- -D warnings` (default and `--all-features`): **0 warnings** - HW (`emit::size_tests`, `emit::bitcode::opt::tests`, `emit::bitcode::tests`, `emit::waterfall_tests`, `emit::lower::tests`): **58 passed; 0 failed; 2 ignored** (`0` D3D12 debug errors) - WARP (`VICTORY_WARP=1`, CI mode without `VICTORY_D3D12_DEBUG`): `emit::size_tests` **12 passed; 0 failed** - `cargo run -p xtask --locked -- policy`: **asset policy: 313 files ok**; `cargo test -p xtask --locked`: **11 passed; 0 failed** - **Not yet tested on RDNA4 hardware** (tested on NVIDIA D3D12 hardware + WARP + Windows SDK `dxil.dll`/`dxc.exe`). Ready for RDNA4 confirmation on #163 (`translate --validate --pipelines --jobs 1` with `VICTORY_VIEW_LIMIT=2097152` and in-game boot). Refs #163
AMD's RDNA4 D3D12 shader compiler (`amdxc64.dll+0x861b9f`, driver
32.0.32029.2010) dereferences a null pointer during compute pipeline
creation under three related DXIL patterns emitted by `victory-shader`
(TaynanGT/Vice-Tay#163):

1. Keep `dx.op.getDimensions` out of `bitcode::opt` reuse (`Module::key`
   returns `None`), preventing `REUSE`/`LOADS` from sharing one size
   query across dominating blocks while preserving `Effect::Pure` so
   `DEAD` still eliminates unused queries. Adapted from
   Belobug/VIctory-Belobug-AMD PR #324 (`4eb6cfd`).
2. Record `Tag::Clamp` unconditionally in `Module::tag` and keep
   clamp-tagged index ops out of `Module::key`, so view-heap index clamps
   (`VICTORY_VIEW_LIMIT` and raw-twin clamps) stay one per handle instead
   of being merged across handles of different kinds. Adapted from
   fxceless/victory-fork PR #984.
3. Query a buffer's size in `descriptor_data` through its own
   non-uniform heap handle (`Shader::size_handle_at`, preserving
   `raw_twin` lookup and not counting toward `nonuniform_handles` or
   adding `wave_ops`, keeping pixel shaders helper-lane safe and
   waterfall loops unchanged). Adapted from fxceless/victory-fork PR
   #1213 (#452) for Vice-Tay's `raw_twin`/`heap_handle_at` path.
4. Bump `TRANSLATOR_VERSION` from 8 to 9 so cached shaders rebuild.

Adds unit DXIL IR tests (`opt.rs`) and end-to-end `dxil.dll` +
`dxc -dumpbin` + D3D12 hardware/WARP regression tests (`size_tests.rs`)
covering both unoptimised (`opt=0`) and optimised (`DEFAULT`/`ALL`)
DXIL, clamped (`VICTORY_VIEW_LIMIT=2097152`) and unclamped heaps, raw
twins, compute and pixel stages, and duplicate `image_get_resinfo`
queries.

Refs: #163
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 12:41:33 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:47 UTC · original

@⁠Vladimir-Human The three paths need independent coverage: repeated dimension queries, clamps attached to each handle and the dedicated size handle. Please keep the current cache-version change tied to the emitted code. The existing RDNA4 result gives us the driver context, while the synthetic DXIL checks can establish the intended lowering.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7218676103) @⁠Vladimir-Human The three paths need independent coverage: repeated dimension queries, clamps attached to each handle and the dedicated size handle. Please keep the current cache-version change tied to the emitted code. The existing RDNA4 result gives us the driver context, while the synthetic DXIL checks can establish the intended lowering.
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 12:59 UTC · original

@⁠TaynanGT Thanks — here is the line-by-line mapping for the three independent paths and their synthetic DXIL tests:

  1. Repeated dx.op.getDimensions non-reuse: crates/victory-shader/src/emit/bitcode/opt.rs:758-766 (Module::key returns None while keeping Effect::Pure for DEAD), covered by emit::bitcode::opt::tests::a_size_query_is_not_reused (opt.rs:1528, same-block + diamond cross-block + DCE under 0/REUSE/REUSE | LOADS/ALL) and emit::size_tests::two_image_resinfo_queries_stay_distinct_with_and_without_opt (size_tests.rs:823, dxc -dumpbin confirming 2 distinct @dx.op.getDimensions calls after DEFAULT/ALL + HW/WARP [10, 6]).
  2. Per-handle Tag::Clamp separation: crates/victory-shader/src/emit/bitcode.rs:383-388 (unconditional Tag::Clamp recording) + crates/victory-shader/src/emit/bitcode/opt.rs:732-734 (Module::key returns None), covered by emit::bitcode::opt::tests::clamped_indices_are_not_reused (opt.rs:1577, same-block + cross-block + DCE) and dxc -dumpbin distinct UMin clamp-index checks under VIEW_LIMIT=2_097_152 in size_tests.rs:647-663.
  3. Dedicated non-uniform buffer size handle: crates/victory-shader/src/emit/shader.rs:538-546 (Shader::size_handle_at) + crates/victory-shader/src/emit/lower.rs:7394-7400 (descriptor_data, preserving raw_twin without wave_ops or nonuniform_handles increment), covered by emit::size_tests::a_buffer_size_query_uses_its_own_nonuniform_handle_and_clamps (size_tests.rs:556, CS + PS, opt=0/DEFAULT/ALL, VIEW_LIMIT=0/2_097_152, raw_views=0/4, dxc -dumpbin + HW/WARP) and emit::size_tests::branched_buffer_size_read_as_number_compiles_with_view_clamp (size_tests.rs:700).

Confirmed: TRANSLATOR_VERSION = 9 (crates/victory-shader/src/lib.rs:29) stays strictly tied to the emitted code on this commit (a4788df).

**@⁠Vladimir-Human** on GitHub · 2026-11-27 12:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7218919693) @⁠TaynanGT Thanks — here is the line-by-line mapping for the three independent paths and their synthetic DXIL tests: 1. **Repeated `dx.op.getDimensions` non-reuse:** `crates/victory-shader/src/emit/bitcode/opt.rs:758-766` (`Module::key` returns `None` while keeping `Effect::Pure` for `DEAD`), covered by `emit::bitcode::opt::tests::a_size_query_is_not_reused` (`opt.rs:1528`, same-block + diamond cross-block + DCE under `0`/`REUSE`/`REUSE | LOADS`/`ALL`) and `emit::size_tests::two_image_resinfo_queries_stay_distinct_with_and_without_opt` (`size_tests.rs:823`, `dxc -dumpbin` confirming 2 distinct `@dx.op.getDimensions` calls after `DEFAULT`/`ALL` + HW/WARP `[10, 6]`). 2. **Per-handle `Tag::Clamp` separation:** `crates/victory-shader/src/emit/bitcode.rs:383-388` (unconditional `Tag::Clamp` recording) + `crates/victory-shader/src/emit/bitcode/opt.rs:732-734` (`Module::key` returns `None`), covered by `emit::bitcode::opt::tests::clamped_indices_are_not_reused` (`opt.rs:1577`, same-block + cross-block + DCE) and `dxc -dumpbin` distinct `UMin` clamp-index checks under `VIEW_LIMIT=2_097_152` in `size_tests.rs:647-663`. 3. **Dedicated non-uniform buffer size handle:** `crates/victory-shader/src/emit/shader.rs:538-546` (`Shader::size_handle_at`) + `crates/victory-shader/src/emit/lower.rs:7394-7400` (`descriptor_data`, preserving `raw_twin` without `wave_ops` or `nonuniform_handles` increment), covered by `emit::size_tests::a_buffer_size_query_uses_its_own_nonuniform_handle_and_clamps` (`size_tests.rs:556`, CS + PS, `opt=0`/`DEFAULT`/`ALL`, `VIEW_LIMIT=0`/`2_097_152`, `raw_views=0`/`4`, `dxc -dumpbin` + HW/WARP) and `emit::size_tests::branched_buffer_size_read_as_number_compiles_with_view_clamp` (`size_tests.rs:700`). Confirmed: `TRANSLATOR_VERSION = 9` (`crates/victory-shader/src/lib.rs:29`) stays strictly tied to the emitted code on this commit (`a4788df`).
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:08 UTC · original

@⁠Vladimir-Human The distinct size calls and per-handle clamp checks cover the emitted-code differences. The CS and PS synthetic tests also verify that the size handle remains separate from the load handle. I’ll keep that result tied to this exact translator revision and cache.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7219116929) @⁠Vladimir-Human The distinct size calls and per-handle clamp checks cover the emitted-code differences. The CS and PS synthetic tests also verify that the size handle remains separate from the load handle. I’ll keep that result tied to this exact translator revision and cache.
github-bot force-pushed github-bot/gh-258 from a4788dfb9a to c788768efc 2026-11-27 14:02:03 +00:00 Compare
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 14:02 UTC · original

@⁠TaynanGT Rebased onto latest main (877a40e) as c788768 and bumped TRANSLATOR_VERSION from 9 to 10 (crates/victory-shader/src/lib.rs) so shader caches rebuild cleanly without colliding with main's 9.
All 4 GitHub CI checks (Clippy, Default tests, Diagnostics tests, check) are green and the branch is MERGEABLE / CLEAN.

**@⁠Vladimir-Human** on GitHub · 2026-11-27 14:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7220268261) @⁠TaynanGT Rebased onto latest `main` (`877a40e`) as `c788768` and bumped `TRANSLATOR_VERSION` from `9` to `10` (`crates/victory-shader/src/lib.rs`) so shader caches rebuild cleanly without colliding with `main`'s `9`. All 4 GitHub CI checks (`Clippy`, `Default tests`, `Diagnostics tests`, `check`) are green and the branch is `MERGEABLE` / `CLEAN`.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 14:08 UTC · original

RDNA4 verdict from the crash machine: this fix clears the fault at the previously-named pipeline — the clamped combined scan now runs past it (RX 9070 XT, driver 32.0.32029.2010, measured)

We ran PR head a4788df through the exact offline scan that reproduced the crash in our two #163 reports — same clamped host settings (VICTORY_HOST_RDNA=1, VICTORY_HOST_WAVE=32, VICTORY_VIEW_LIMIT=2097152), translate --validate --pipelines --jobs 1, cold store, diagnostics executable rebuilt from this head with the fingerprint wipe and executable identity proven by size/mtime.

Against the 6b3a266 baseline:

  • Baseline: the program stream ended at 21,397 pipeline creations; the last line emitted was creating offline D3D12 pipeline shader_hash=878933b499cfa14d stage=Cs, and WER recorded 0xc0000005 at amdxc64.dll+0x861b9f (same offset as on a51fb9d).

  • This head: the same 878933b499cfa14d compute pipeline is created and the very next program's container is read ~0.19 s later; zero exceptions, and the scan continues through the remaining census.

  • This head then completed the entire census without crashing: 26,180/26,180 programs translated, and every emitted program got both a DXIL validation and a pipeline creation — 14,262 vertex/pixel, 2,759 compute, 8,694 mesh — zero amdxc64.dll faults and zero Windows error-reporting events for the run. (The 71 vertex-output-size and 2 shared-memory validator complaints are the same tail validator reports our two completed tip scans produced on #163 — reports, not crashes.)

On this machine, this is the first head that clears the pipeline-creation crash end to end.

Scope note: this validates the offline pipeline-creation path under the clamped settings that reproduce #163. The in-game boot on this head has not been run on this machine yet (the pre-fix tip reproduced the identical fault signature in boot, per #163).

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-27 14:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7220386902) **RDNA4 verdict from the crash machine: this fix clears the fault at the previously-named pipeline — the clamped combined scan now runs past it (RX 9070 XT, driver 32.0.32029.2010, measured)** We ran PR head `a4788df` through the exact offline scan that reproduced the crash in our two #163 reports — same clamped host settings (`VICTORY_HOST_RDNA=1`, `VICTORY_HOST_WAVE=32`, `VICTORY_VIEW_LIMIT=2097152`), `translate --validate --pipelines --jobs 1`, cold store, diagnostics executable rebuilt from this head with the fingerprint wipe and executable identity proven by size/mtime. Against the `6b3a266` baseline: - Baseline: the program stream ended at 21,397 pipeline creations; the last line emitted was `creating offline D3D12 pipeline shader_hash=878933b499cfa14d stage=Cs`, and WER recorded `0xc0000005` at `amdxc64.dll+0x861b9f` (same offset as on `a51fb9d`). - This head: the same `878933b499cfa14d` compute pipeline is created and the very next program's container is read ~0.19 s later; zero exceptions, and the scan continues through the remaining census. - This head then completed the entire census without crashing: 26,180/26,180 programs translated, and every emitted program got both a DXIL validation and a pipeline creation — 14,262 vertex/pixel, 2,759 compute, 8,694 mesh — zero `amdxc64.dll` faults and zero Windows error-reporting events for the run. (The 71 vertex-output-size and 2 shared-memory validator complaints are the same tail validator reports our two completed tip scans produced on #163 — reports, not crashes.) On this machine, this is the first head that clears the pipeline-creation crash end to end. Scope note: this validates the offline pipeline-creation path under the clamped settings that reproduce #163. The in-game boot on this head has not been run on this machine yet (the pre-fix tip reproduced the identical fault signature in boot, per #163). AI-assisted (Hermes Agent)
Author
Owner

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

@⁠Vladimir-Human c788768 has four green checks. Use a cache directory unique to that commit for the RDNA4 confirmation, since #287 and #289 also declare translator version 10. I’ll tie the hardware result back to #163 before changing the default.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:11 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7220459773) @⁠Vladimir-Human `c788768` has four green checks. Use a cache directory unique to that commit for the RDNA4 confirmation, since #287 and #289 also declare translator version 10. I’ll tie the hardware result back to #163 before changing the default.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:25 UTC · original

@⁠KingKaom The completed 26,180-program scan confirms the offline fix on a4788df. The later c788768 rebase adds loop-latch lowering from main, so I’m keeping the hardware result tied to the tested revision. A normal launch on the newer candidate through the first world load would close the remaining check.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7220760828) @⁠KingKaom The completed 26,180-program scan confirms the offline fix on `a4788df`. The later `c788768` rebase adds loop-latch lowering from main, so I’m keeping the hardware result tied to the tested revision. A normal launch on the newer candidate through the first world load would close the remaining check.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 15:28 UTC · original

RDNA4 boot result from the crash machine: a normal launch through first world load passes on c788768 (RX 9070 XT, RDNA4, measured)

Closing the check you asked for on this thread's newest candidate. Ran c788768 (the 877a40e rebase head, translator version 10) as a normal launch through first world load on the RDNA4 box that reproduced #163 at boot:

  • Diagnostics executable rebuilt from this head with the fingerprint wipe, identity proven by size/mtime before and after (17,166,848 bytes).
  • Fresh shader-store directory unique to this commit, as advised; the store had been filled by a prior pre-launch translate of this same head (25,775 programs), and the boot ran against it with the reproduction's host clamps passed explicitly (VICTORY_HOST_RDNA=1, VICTORY_HOST_WAVE=32, VICTORY_VIEW_LIMIT=2097152 — the game's own host lines read wave lanes min=32 max=64 and 2,097,152 views, same as the crashing runs).
  • Result: world loads and renders. Overlay transcribed twice during the session: 17.1 fps render / 58.5 output, 6310 draws / 343 dropped, then 18.0 fps render / 55.5 output, 6622 draws / 359 dropped. VRAM ~9.6/12.1 GiB.
  • The session was ended by us at 9.5 minutes; zero 0xc0000005, zero breakpad crash files, no Windows error-reporting events for the run. For contrast, the pre-fix tip boot on this machine died ~6 minutes in (see #163).

Happy to post the in-game screenshot if useful.

Combined with the completed 26,180-program offline scan we reported earlier on this PR, both the offline pipeline-creation leg and now the in-game first world load pass on c788768 on this box.

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-27 15:28 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7222110188) **RDNA4 boot result from the crash machine: a normal launch through first world load passes on `c788768` (RX 9070 XT, RDNA4, measured)** Closing the check you asked for on this thread's newest candidate. Ran `c788768` (the `877a40e` rebase head, translator version 10) as a normal launch through first world load on the RDNA4 box that reproduced #163 at boot: - Diagnostics executable rebuilt from this head with the fingerprint wipe, identity proven by size/mtime before and after (`17,166,848` bytes). - Fresh shader-store directory unique to this commit, as advised; the store had been filled by a prior pre-launch translate of this same head (25,775 programs), and the boot ran against it with the reproduction's host clamps passed explicitly (`VICTORY_HOST_RDNA=1`, `VICTORY_HOST_WAVE=32`, `VICTORY_VIEW_LIMIT=2097152` — the game's own host lines read wave lanes min=32 max=64 and 2,097,152 views, same as the crashing runs). - Result: world loads and renders. Overlay transcribed twice during the session: 17.1 fps render / 58.5 output, 6310 draws / 343 dropped, then 18.0 fps render / 55.5 output, 6622 draws / 359 dropped. VRAM ~9.6/12.1 GiB. - The session was ended by us at 9.5 minutes; zero `0xc0000005`, zero breakpad crash files, no Windows error-reporting events for the run. For contrast, the pre-fix tip boot on this machine died ~6 minutes in (see #163). Happy to post the in-game screenshot if useful. Combined with the completed 26,180-program offline scan we reported earlier on this PR, both the offline pipeline-creation leg and now the in-game first world load pass on `c788768` on this box. AI-assisted (Hermes Agent)
Bring the compiler fix onto main before assigning its new cache version.
Use translator version 13 with the RDNA4 lowering changes on current main. Keep the normal-launch result tied to c788768. Evidence: https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7222110188
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 15:32 UTC · original

@⁠KingKaom The 9.5-minute run through the first world load confirms the normal launch on c788768. The render and output counts are useful context for that exact build. I’m bringing the compiler fix onto current main and assigning a fresh cache version so the combined build regenerates its translations.

**@⁠TaynanGT** on GitHub · 2026-11-27 15:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7222172344) @⁠KingKaom The 9.5-minute run through the first world load confirms the normal launch on `c788768`. The render and output counts are useful context for that exact build. I’m bringing the compiler fix onto current main and assigning a fresh cache version so the combined build regenerates its translations.
Bring the compiler fix onto main before assigning its new cache version.
Use translator version 14 with the RDNA4 lowering changes on current main. Keep the normal-launch result tied to c788768. Evidence: https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7222110188
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 16:10 UTC · original

RDNA4 result for the combined build: ff27527 (this PR's head on main 16edfec, fresh cache version) boots clean through first world load — RX 9070 XT, measured

Following the note about bringing the fix onto current main: the current head here is exactly that combination (0 behind / 4 ahead of main, including the fresh-shader-cache commit), and this box just ran it as a normal launch with the same recipe used for the c788768 run above, so the numbers are comparable.

  • Diagnostics executable rebuilt from ff27527 with the fingerprint wipe, identity proven by size/mtime before and after (17,166,848 at 07:46 -> 17,331,712 at 08:52, a real 47 s recompile). The fresh cache version took effect: the store was empty for this head and the game translated 4,753 shader programs during the run itself.
  • Normal launch, save resumed with the scripted walk route, clamped host settings as in the previous runs (wave 32, view heaps 2,097,152).
  • 16 minutes alive, ended by the bench timer. Two overlay reads: 14.9 fps render / 67.0 ms/frame / 10306 draws / 231 dropped at t+6.5 min, then 15.2 fps / 65.8 ms/frame / 11656 draws / 310 dropped at t+14 min; VRAM 10.0/12.0 GiB.
  • Zero 0xc0000005, zero breakpad/panic lines in the whole run log, and no new Windows Error Reporting events for the game between just before launch and after exit.

So the compiler fix and current main coexist on this machine: clean first-world-load behavior on today's main with regenerated translations, no recurrence of the fault this PR fixes. Happy to re-run if the head moves again before merge.

Tested on RX 9070 XT (RDNA4), measured. AI-assisted (Hermes Agent).

**@⁠KingKaom** on GitHub · 2026-11-27 16:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7222936222) **RDNA4 result for the combined build: `ff27527` (this PR's head on main `16edfec`, fresh cache version) boots clean through first world load — RX 9070 XT, measured** Following the note about bringing the fix onto current main: the current head here is exactly that combination (0 behind / 4 ahead of main, including the fresh-shader-cache commit), and this box just ran it as a normal launch with the same recipe used for the `c788768` run above, so the numbers are comparable. - Diagnostics executable rebuilt from `ff27527` with the fingerprint wipe, identity proven by size/mtime before and after (`17,166,848` at 07:46 -> `17,331,712` at 08:52, a real 47 s recompile). The fresh cache version took effect: the store was empty for this head and the game translated 4,753 shader programs during the run itself. - Normal launch, save resumed with the scripted walk route, clamped host settings as in the previous runs (wave 32, view heaps 2,097,152). - 16 minutes alive, ended by the bench timer. Two overlay reads: **14.9 fps render / 67.0 ms/frame / 10306 draws / 231 dropped** at t+6.5 min, then **15.2 fps / 65.8 ms/frame / 11656 draws / 310 dropped** at t+14 min; VRAM 10.0/12.0 GiB. - Zero `0xc0000005`, zero breakpad/panic lines in the whole run log, and no new Windows Error Reporting events for the game between just before launch and after exit. So the compiler fix and current main coexist on this machine: clean first-world-load behavior on today's main with regenerated translations, no recurrence of the fault this PR fixes. Happy to re-run if the head moves again before merge. *Tested on RX 9070 XT (RDNA4), measured. AI-assisted (Hermes Agent).*
github-bot changed target branch from main to gh-pr/258/base 2026-11-27 16:22:32 +00:00
github manually merged commit 17da1d006d into gh-pr/258/base 2026-11-27 16:22:33 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:17 UTC · original

@⁠KingKaom Thanks for putting 16 minutes into the first-world-load check on ff27527. That confirms the fix on the 16edfec base. The current head is 17da1d0 with translator version 14, and all four Windows checks passed there. Please repeat the first world load on that head with a fresh shader cache so the hardware result matches the revision we’d merge.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7223081295) @⁠KingKaom Thanks for putting 16 minutes into the first-world-load check on `ff27527`. That confirms the fix on the `16edfec` base. The current head is `17da1d0` with translator version 14, and all four Windows checks passed there. Please repeat the first world load on that head with a fresh shader cache so the hardware result matches the revision we’d merge.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 16:49 UTC · original

Main e7bfd07 (with #258 squashed in) boots clean on the crash machine — RX 9070 XT, fresh v14 shader cache

Repeating the first-world-load on the merged revision as asked, with a fresh cache. Setup: diag build at e7bfd07 (fingerprint-wiped rebuild, exe SHA-256 578B9EA0…), the shader store was purged and warmed offline with victory translate (same host settings the title runs with: wave 32–64, view heaps 2,097,152) before boot.

15-minute scripted run (two Enters, a ~4-minute walk route): the world rendered at both overlay reads — t+9 min: 17.4 render fps / 57.3 ms / 8,709 draws / 332 dropped, VRAM 9.9/11.5 GiB + 5.2 shared; t+15 min: 19.2 fps / 52.0 ms / 8,756 draws / 314 dropped, VRAM 10.6/12.8. Zero c0000005 / breakpad / panic lines and no new WER entries; the bench timer ended the session.

One data point from our side: after a full offline warm (14,262 VS/PS + 2,761 CS + 8,765 mesh programs written to the store before boot), the title still logged 3,629 shader translated lines in-run. Is that line printed on cache hits too, or are those entries outside what the offline translate writes? (One sample here; the pre-warm boot of ff27527 logged 4,753.)

Tested on RX 9070 XT (RDNA4), measured. AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-27 16:49 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7223706844) **Main `e7bfd07` (with #258 squashed in) boots clean on the crash machine — RX 9070 XT, fresh v14 shader cache** Repeating the first-world-load on the merged revision as asked, with a fresh cache. Setup: diag build at `e7bfd07` (fingerprint-wiped rebuild, exe SHA-256 `578B9EA0…`), the shader store was purged and warmed offline with `victory translate` (same host settings the title runs with: wave 32–64, view heaps 2,097,152) before boot. 15-minute scripted run (two Enters, a ~4-minute walk route): the world rendered at both overlay reads — t+9 min: 17.4 render fps / 57.3 ms / 8,709 draws / 332 dropped, VRAM 9.9/11.5 GiB + 5.2 shared; t+15 min: 19.2 fps / 52.0 ms / 8,756 draws / 314 dropped, VRAM 10.6/12.8. Zero `c0000005` / breakpad / panic lines and no new WER entries; the bench timer ended the session. One data point from our side: after a full offline warm (14,262 VS/PS + 2,761 CS + 8,765 mesh programs written to the store before boot), the title still logged 3,629 `shader translated` lines in-run. Is that line printed on cache hits too, or are those entries outside what the offline translate writes? (One sample here; the pre-warm boot of `ff27527` logged 4,753.) *Tested on RX 9070 XT (RDNA4), measured. AI-assisted (Hermes Agent)*
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:58 UTC · original

@⁠KingKaom Yes, shader translated on e7bfd07 also counts disk-cache hits. Shader::translated() logs that line the first time each shader is prepared in the process, after host_shader() returns successfully. The cache’s hit and miss counters are the ones to use for warm-up coverage. Your 15-minute first-world-load run also confirms the merged v14 fix on the RX 9070 XT. Pretranslation freshness is tracked in #325.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:58 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7223885165) @⁠KingKaom Yes, `shader translated` on `e7bfd07` also counts disk-cache hits. `Shader::translated()` logs that line the first time each shader is prepared in the process, after `host_shader()` returns successfully. The cache’s hit and miss counters are the ones to use for warm-up coverage. Your 15-minute first-world-load run also confirms the merged v14 fix on the RX 9070 XT. Pretranslation freshness is tracked in #325.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 17:26 UTC · original

RDNA4 confirmation for f386fc9 (main head, incl. the pretranslation freshness merge): clean 15m10s through first world load — RX 9070 XT, measured

Repeating the first-world-load recipe on the current head with a fresh shader store warmed offline before boot (same host settings: wave 32–64, view heaps 2,097,152; fingerprint-wiped diagnostics build).

  • Overlay t+6m10s: 11.4 render fps / 88.1 ms/frame / 11,988 draws / 291 dropped (VRAM 9.9/15.1 GiB); t+14m26s: 19.9 render fps / 50.2 ms/frame / 7,128 draws / 262 dropped (VRAM 10.3/12.9 GiB). Scripted walk route in between.
  • 0 first-chance and 0 unhandled exceptions, no breakpad dumps; run ended on the bench timer.
  • Using the counters named above: final hits=3596 misses=38. The 3,636 in-run shader translated lines match cache-hit preparations, so warm coverage on the used shader set is ~99% — the freshness change did not regress warm behavior on this machine.

AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-27 17:26 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7224415133) **RDNA4 confirmation for `f386fc9` (main head, incl. the pretranslation freshness merge): clean 15m10s through first world load — RX 9070 XT, measured** Repeating the first-world-load recipe on the current head with a fresh shader store warmed offline before boot (same host settings: wave 32–64, view heaps 2,097,152; fingerprint-wiped diagnostics build). - Overlay t+6m10s: 11.4 render fps / 88.1 ms/frame / 11,988 draws / 291 dropped (VRAM 9.9/15.1 GiB); t+14m26s: 19.9 render fps / 50.2 ms/frame / 7,128 draws / 262 dropped (VRAM 10.3/12.9 GiB). Scripted walk route in between. - 0 first-chance and 0 unhandled exceptions, no breakpad dumps; run ended on the bench timer. - Using the counters named above: final `hits=3596 misses=38`. The 3,636 in-run `shader translated` lines match cache-hit preparations, so warm coverage on the used shader set is ~99% — the freshness change did not regress warm behavior on this machine. AI-assisted (Hermes Agent)
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 17:29 UTC · original

@⁠KingKaom The 3,596 hits and 38 misses put the cache-hit share at about 99% for the shaders used in this run. That’s the coverage number to use. f386fc9 confirms the RDNA4 world load with #325’s pretranslation check in place.

**@⁠TaynanGT** on GitHub · 2026-11-27 17:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/258#issuecomment-7224462388) @⁠KingKaom The 3,596 hits and 38 misses put the cache-hit share at about 99% for the shaders used in this run. That’s the coverage number to use. `f386fc9` confirms the RDNA4 world load with #325’s pretranslation check in place.
This discussion has been locked. Commenting is limited to contributors.
No description provided.