GPU: catch driver shader compiler crashes in pipeline workers and skip bad keys #3292

Open
pushkarreddyy wants to merge 4 commits from upstream-pr/3292 into main
pushkarreddyy commented 2026-11-26 16:10:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-26T16:10:25Z.


Summary

Adds a lock-free vectored exception handler (VEH) guard and bad-pipeline skip list (warm-bad.txt) for background pipeline compilation workers, preventing process-wide deadlocks and crashes when a GPU driver's shader compiler (such as amdxc64.dll on RDNA4) faults inside HostPipeline::new (addresses #2124, #2517).

Root Cause

  • Pending::make used OnceLock::get_or_init, so if a worker thread faulted inside the driver's shader compiler, any caller waiting on that Pending pipeline deadlocked forever.
  • A crashing worker thread took its WAITING count and worker slot with it, starving the pipeline queue.

Changes

  • crates/victory-gpu/src/pipeline/make.rs:
    • Replaced OnceLock::get_or_init with made.get().is_none() + made.set(...) so waiters are never stuck behind a faulted worker.
    • Added guard_start / compiler_crashed VEH + victory-pipeline-watch thread (VICTORY_COMPILER_GUARD=0 to disable) that records the faulting pipeline key in warm-bad.txt (VICTORY_WARM_BAD=0 to ignore), publishes None, decrements WAITING, and spawns a replacement worker (spawn_worker).
    • Added a_pipeline_on_the_bad_list_is_not_compiled unit test.
  • crates/victory-gpu/src/pipeline/library.rs:
    • Exposed folder() for warm-bad.txt lookup/persistence.

Testing & Verification

  • Added unit test a_pipeline_on_the_bad_list_is_not_compiled in crates/victory-gpu/src/pipeline/make.rs.
  • Testers on untested GPU models and drivers (especially RDNA4 / RX 9070 XT and NVIDIA/Intel setups) are welcome to test this build.

No game files used.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:issue:5513412727 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-26T16:10:25Z. --- ## Summary Adds a lock-free vectored exception handler (VEH) guard and bad-pipeline skip list (`warm-bad.txt`) for background pipeline compilation workers, preventing process-wide deadlocks and crashes when a GPU driver's shader compiler (such as `amdxc64.dll` on RDNA4) faults inside `HostPipeline::new` (addresses #2124, #2517). ## Root Cause - `Pending::make` used `OnceLock::get_or_init`, so if a worker thread faulted inside the driver's shader compiler, any caller waiting on that `Pending` pipeline deadlocked forever. - A crashing worker thread took its `WAITING` count and worker slot with it, starving the pipeline queue. ## Changes - `crates/victory-gpu/src/pipeline/make.rs`: - Replaced `OnceLock::get_or_init` with `made.get().is_none()` + `made.set(...)` so waiters are never stuck behind a faulted worker. - Added `guard_start` / `compiler_crashed` VEH + `victory-pipeline-watch` thread (`VICTORY_COMPILER_GUARD=0` to disable) that records the faulting pipeline key in `warm-bad.txt` (`VICTORY_WARM_BAD=0` to ignore), publishes `None`, decrements `WAITING`, and spawns a replacement worker (`spawn_worker`). - Added `a_pipeline_on_the_bad_list_is_not_compiled` unit test. - `crates/victory-gpu/src/pipeline/library.rs`: - Exposed `folder()` for `warm-bad.txt` lookup/persistence. ## Testing & Verification - Added unit test `a_pipeline_on_the_bad_list_is_not_compiled` in `crates/victory-gpu/src/pipeline/make.rs`. - Testers on untested GPU models and drivers (especially RDNA4 / RX 9070 XT and NVIDIA/Intel setups) are welcome to test this build. No game files used. AI-assisted: yes (Gemini 4 Neon)
Aniseto commented 2026-11-26 16:27:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Aniseto on 2026-11-26T16:27:29Z.


Ran the pipeline-worker guard tests at 5a8b4d7 on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.

cargo test -p victory-gpu --lib pipeline::make -- --test-threads=1
3 passed; 0 failed; 0 ignored; 0 measured; 230 filtered out      (exit 0)

The three tests that ran are draws_go_ahead_of_early_starts, first_use_is_made_by_a_worker and a_pipeline_on_the_bad_list_is_not_compiled; all pass here. The PR has no comments yet, so this is the first datapoint in the thread. These are CPU-side tests of the worker and bad-key logic; I did not inject a real fault inside a driver shader compiler, so the vectored exception handler path itself was not exercised.

Not tested: an actual crash inside a driver shader compiler, the VEH guard under a real fault, the full workspace suite, a paired smoke run, AMD hardware (the reported amdxc64.dll case), Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7197670985 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7197670985). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T16:27:29Z. --- Ran the pipeline-worker guard tests at `5a8b4d7` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build. ``` cargo test -p victory-gpu --lib pipeline::make -- --test-threads=1 3 passed; 0 failed; 0 ignored; 0 measured; 230 filtered out (exit 0) ``` The three tests that ran are `draws_go_ahead_of_early_starts`, `first_use_is_made_by_a_worker` and `a_pipeline_on_the_bad_list_is_not_compiled`; all pass here. The PR has no comments yet, so this is the first datapoint in the thread. These are CPU-side tests of the worker and bad-key logic; I did not inject a real fault inside a driver shader compiler, so the vectored exception handler path itself was not exercised. Not tested: an actual crash inside a driver shader compiler, the VEH guard under a real fault, the full workspace suite, a paired smoke run, AMD hardware (the reported `amdxc64.dll` case), Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
oni-swr commented 2026-11-26 16:55:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-26T16:55:25Z.


Independent verification of #3292 (claimed on #1633). Test report only, no code changes. AI use: Claude Code (Claude Sonnet 5.5), run on behalf of oni-swr.

  • Head: 5a8b4d714b149048763053d13ad30d32f54b1409. Control: main = 63bcca43c6a00a758510398fa43096ce7e4f7df0 (the PR's merge base).
  • Windows 11 Pro, WARP only, no physical GPU: VICTORY_WARP=1, VICTORY_D3D12_WARP=1, VICTORY_DXIL = Windows SDK 10.0.26100.0 dxil.dll. No game files.
  • Command (head and main): cargo test -j 4 -p victory-gpu --lib --locked (also --features diagnostics on head).
  • I found no CONTRIBUTING.md in the repository, so I followed the #1633 rules.
Run Result
head, default features, 3 runs (low host load) 232 passed, 0 failed, 1 ignored, each time
head, --features diagnostics 247 passed, 0 failed, 1 ignored
main, default features 231 passed, 0 failed, 1 ignored (the 232nd is the PR's new test)
head with --skip waits_end_on_ticks (host at 100% CPU) 231 passed, 0 failed, 1 ignored
main with the same skip 230 passed, 0 failed, 1 ignored

Claimed test: pipeline::make::tests::a_pipeline_on_the_bad_list_is_not_compiled exists at head and passes (3/3).

Does it catch a bug on main? Not in the form shipped. Copied onto main as is, it does not compile (SKIPPED_BAD and bad_keys exist only in the PR). I then removed its bad-list-only lines (bad_keys(...), the SKIPPED_BAD counter) and ran the rest on main: it passes. The test builds a Pending with no shaders, so main also ends at Some(None); its only discriminating assertion is the SKIPPED_BAD counter, which is new in the PR. So it checks that the skip list is consulted, not that a crashing compile is survived. It does not write warm-bad.txt: it only touches the in-memory set and reads the file.

Not covered by any test: the VEH guard, compiler_crashed, the watch thread, the replacement worker, and the OnceLock::get_or_init to get().is_none() + set change. I did not reproduce a driver fault, so I did not verify the deadlock fix. The Testing section of the PR asks for testers on RDNA4, NVIDIA and Intel; I had none of these.

Flake, not caused by this PR: frame::tests::waits_end_on_ticks_and_count_frames (frame.rs, untouched here) passed in the first runs (head 4/4, main 1/1). Once other processes pinned the host at 100% CPU it failed every time on both main (7/7) and head (9/9), including run alone (left: 0, right: 1). It is a timing assertion; head and main behave the same.

Not verified: any physical GPU, a real compiler crash, clippy and rustfmt.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7198266164 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7198266164). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T16:55:25Z. --- Independent verification of #3292 (claimed on #1633). Test report only, no code changes. AI use: Claude Code (Claude Sonnet 5.5), run on behalf of oni-swr. - Head: `5a8b4d714b149048763053d13ad30d32f54b1409`. Control: `main` = `63bcca43c6a00a758510398fa43096ce7e4f7df0` (the PR's merge base). - Windows 11 Pro, WARP only, no physical GPU: `VICTORY_WARP=1`, `VICTORY_D3D12_WARP=1`, `VICTORY_DXIL` = Windows SDK 10.0.26100.0 `dxil.dll`. No game files. - Command (head and main): `cargo test -j 4 -p victory-gpu --lib --locked` (also `--features diagnostics` on head). - I found no CONTRIBUTING.md in the repository, so I followed the #1633 rules. | Run | Result | |---|---| | head, default features, 3 runs (low host load) | 232 passed, 0 failed, 1 ignored, each time | | head, `--features diagnostics` | 247 passed, 0 failed, 1 ignored | | main, default features | 231 passed, 0 failed, 1 ignored (the 232nd is the PR's new test) | | head with `--skip waits_end_on_ticks` (host at 100% CPU) | 231 passed, 0 failed, 1 ignored | | main with the same skip | 230 passed, 0 failed, 1 ignored | **Claimed test:** `pipeline::make::tests::a_pipeline_on_the_bad_list_is_not_compiled` exists at head and passes (3/3). **Does it catch a bug on main?** Not in the form shipped. Copied onto main as is, it does not compile (`SKIPPED_BAD` and `bad_keys` exist only in the PR). I then removed its bad-list-only lines (`bad_keys(...)`, the `SKIPPED_BAD` counter) and ran the rest on main: it passes. The test builds a `Pending` with no shaders, so main also ends at `Some(None)`; its only discriminating assertion is the `SKIPPED_BAD` counter, which is new in the PR. So it checks that the skip list is consulted, not that a crashing compile is survived. It does not write `warm-bad.txt`: it only touches the in-memory set and reads the file. **Not covered by any test:** the VEH guard, `compiler_crashed`, the watch thread, the replacement worker, and the `OnceLock::get_or_init` to `get().is_none()` + `set` change. I did not reproduce a driver fault, so I did not verify the deadlock fix. The Testing section of the PR asks for testers on RDNA4, NVIDIA and Intel; I had none of these. **Flake, not caused by this PR:** `frame::tests::waits_end_on_ticks_and_count_frames` (`frame.rs`, untouched here) passed in the first runs (head 4/4, main 1/1). Once other processes pinned the host at 100% CPU it failed every time on both main (7/7) and head (9/9), including run alone (`left: 0, right: 1`). It is a timing assertion; head and main behave the same. Not verified: any physical GPU, a real compiler crash, clippy and rustfmt.
Dukestar69 commented 2026-11-26 17:11:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T17:11:19Z.

Review: APPROVED


Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090):

  • Guarding pipeline worker threads against driver shader compiler crashes, recording bad keys in warm-bad.txt (opt-out via VICTORY_WARM_BAD=0), and avoiding OnceLock::get_or_init blocking forever on a crashed worker is clean and well-tested.
  • cargo test -p victory-gpu --lib pipeline:: -- --test-threads=1 (RTX 5090): 24 passed, 0 failed (including a_pipeline_on_the_bad_list_is_not_compiled).
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6078126728 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#pullrequestreview-6078126728). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T17:11:19Z. **Review:** APPROVED --- Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090): - Guarding pipeline worker threads against driver shader compiler crashes, recording bad keys in `warm-bad.txt` (opt-out via `VICTORY_WARM_BAD=0`), and avoiding `OnceLock::get_or_init` blocking forever on a crashed worker is clean and well-tested. - `cargo test -p victory-gpu --lib pipeline:: -- --test-threads=1` (RTX 5090): 24 passed, 0 failed (including `a_pipeline_on_the_bad_list_is_not_compiled`). - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
rpmaster2 commented 2026-11-26 17:41:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-26T17:41:09Z.


RDNA4 (RX 9070 XT) datapoint on 5a8b4d7: the offline pipeline phase, no game run.

Host: Radeon RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 5 5600, 32 GB RAM, Windows 11 10.0.26100.9974. Head 5a8b4d7 (base 63bcca4), diagnostics build, --locked.

Command: victory translate --cache --pipelines --jobs 8 over the title's shader pack, into a separate cache directory. 28.9 minutes wall clock:

containers   25889 in 156.2 s: 25669 translated, 220 refused
pipelines    28164 in the pack, 1575.3 s: 23488 made, 3632 already in the library

Exit code 0, zero first-chance exceptions, zero unhandled exceptions, no panics, and no warm-bad.txt was written: the driver's compiler did not fault in this run, so the guard was not exercised.

What that means for this PR: this is a negative control, not a VEH test. The same phase faulted reliably on this card on main before 850b66f (the history in #1785 and #2124), and it does not with 850b66f in the tree, which this base has. So it is consistent with the reports in #1785 rather than evidence about the handler.

To exercise the fault path one would need either a head without 850b66f or a pipeline that still faults with it; I did not find one in this pack (28,164 pipelines). The handler did not make anything worse: the run is clean and the library saves.

Refusals, for comparison with #1785: 852 rasteriser state not named, 139 depth-stencil state not named, 24 compute shader does not translate, 23 shader not found, 3 blend state not named, 2 stages other than vertex/mesh/pixel, 1 pixel shader does not translate.

AI-assisted: written by DeepSeek (OpenCode harness) from my run log; commits, counts and driver version only, no game files or paths.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7199454524 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7199454524). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-26T17:41:09Z. --- **RDNA4 (RX 9070 XT) datapoint on `5a8b4d7`: the offline pipeline phase, no game run.** Host: Radeon RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 5 5600, 32 GB RAM, Windows 11 10.0.26100.9974. Head `5a8b4d7` (base `63bcca4`), diagnostics build, `--locked`. Command: `victory translate --cache --pipelines --jobs 8` over the title's shader pack, into a separate cache directory. 28.9 minutes wall clock: ``` containers 25889 in 156.2 s: 25669 translated, 220 refused pipelines 28164 in the pack, 1575.3 s: 23488 made, 3632 already in the library ``` Exit code 0, zero first-chance exceptions, zero unhandled exceptions, no panics, and **no `warm-bad.txt` was written**: the driver's compiler did not fault in this run, so the guard was not exercised. What that means for this PR: this is a negative control, not a VEH test. The same phase faulted reliably on this card on `main` before `850b66f` (the history in #1785 and #2124), and it does not with `850b66f` in the tree, which this base has. So it is consistent with the reports in #1785 rather than evidence about the handler. To exercise the fault path one would need either a head without `850b66f` or a pipeline that still faults with it; I did not find one in this pack (28,164 pipelines). The handler did not make anything worse: the run is clean and the library saves. Refusals, for comparison with #1785: 852 rasteriser state not named, 139 depth-stencil state not named, 24 compute shader does not translate, 23 shader not found, 3 blend state not named, 2 stages other than vertex/mesh/pixel, 1 pixel shader does not translate. AI-assisted: written by DeepSeek (OpenCode harness) from my run log; commits, counts and driver version only, no game files or paths.
pushkarreddyy commented 2026-11-26 18:46:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-26T18:46:26Z.


@Marvisak Please review and merge this PR. Testers, kindly run on untested GPU models. AI‑assisted ✅ Gemini‑4 Neon

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200835576 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7200835576). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-26T18:46:26Z. --- @Marvisak Please review and merge this PR. Testers, kindly run on untested GPU models. AI‑assisted ✅ Gemini‑4 Neon
borosf commented 2026-11-26 19:03:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by borosf on 2026-11-26T19:03:41Z.


Independent local verification on Windows 11 x64, Intel Arc B580 12 GB (12 cores), at this PR's head 5a8b4d7:

cargo test -p victory-gpu --lib --locked --no-fail-fast -- --test-threads=1
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings
cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings

Result: victory-gpu lib: 230 passed / 2 failed (both known baseline); the new a_pipeline_on_the_bad_list_is_not_compiled test passed.

Both clippy runs exit 0 (-D warnings, both feature sets). The B580 baseline failures pristine main also hits are: victory-gpu descriptor::host::tests::dynamic_slots_are_held_until_released + memory::tests::lists_share_a_table_and_copies_keep_their_views (#1744/#1829); victory-shader emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros + emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_products. No PR regressions.

Synthetic tests only; no game data used. Full log kept locally. — borosf

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201152849 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7201152849). Originally posted by [borosf](https://github.com/borosf) on 2026-11-26T19:03:41Z. --- Independent local verification on Windows 11 x64, Intel Arc B580 12 GB (12 cores), at this PR's head `5a8b4d7`: ``` cargo test -p victory-gpu --lib --locked --no-fail-fast -- --test-threads=1 cargo clippy -p victory-gpu --all-targets --locked -- -D warnings cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings ``` Result: victory-gpu lib: 230 passed / 2 failed (both known baseline); the new a_pipeline_on_the_bad_list_is_not_compiled test passed. Both clippy runs exit 0 (-D warnings, both feature sets). The B580 baseline failures pristine main also hits are: victory-gpu descriptor::host::tests::dynamic_slots_are_held_until_released + memory::tests::lists_share_a_table_and_copies_keep_their_views (#1744/#1829); victory-shader emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros + emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_products. No PR regressions. Synthetic tests only; no game data used. Full log kept locally. — borosf
upipibi commented 2026-11-26 22:53:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-26T22:53:43Z.


compiler_crashed (make.rs:252-266 at 5a8b4d7) keys only on an access violation below 0x10000 on a worker that is compiling. It checks neither the faulting module nor the vendor, then parks the worker and writes the key to warm-bad.txt (lost, :306-329).

On an RTX 5080, Belobug/VIctory-Belobug-AMD#158 found that nvgpucomp64.dll takes such null-page faults and handles them itself. The first-position VEH sees them first, so 20-28 mesh pipelines a run were parked and every later run refused them.

Could the guard check the faulting module (e.g. GetModuleHandleExW on ExceptionAddress, amdxc64.dll only), or stay off by default on NVIDIA?

Hypothesis, by reading and not run: #3292 behaves the same on NVIDIA. Nobody has reported an NVIDIA game run on it yet.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7205076631 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7205076631). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T22:53:43Z. --- `compiler_crashed` (make.rs:252-266 at 5a8b4d7) keys only on an access violation below 0x10000 on a worker that is compiling. It checks neither the faulting module nor the vendor, then parks the worker and writes the key to `warm-bad.txt` (`lost`, :306-329). On an RTX 5080, Belobug/VIctory-Belobug-AMD#158 found that nvgpucomp64.dll takes such null-page faults and handles them itself. The first-position VEH sees them first, so 20-28 mesh pipelines a run were parked and every later run refused them. Could the guard check the faulting module (e.g. `GetModuleHandleExW` on ExceptionAddress, amdxc64.dll only), or stay off by default on NVIDIA? Hypothesis, by reading and not run: #3292 behaves the same on NVIDIA. Nobody has reported an NVIDIA game run on it yet. AI-assisted (Claude Code, Claude Opus 5.5).
fuzeofficlal commented 2026-11-27 00:00:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T00:00:02Z.

Review: CHANGES_REQUESTED


Tested 5a8b4d71 on hardware GPU and WARP. While the bad-key skip path (a_pipeline_on_the_bad_list_is_not_compiled) works in isolation, exercising the actual vectored exception handler (compiler_crashed) exposed blocking concurrency and process-safety bugs:

1. Guaranteed NAMES.hold(name) deadlock on every caught crash inside library::pipeline (reproduced live)

  • crates/victory-gpu/src/pipeline/make.rs:424-460 (compiler_crashed), make.rs:584-589 (work)
  • crates/victory-gpu/src/pipeline/library.rs:111-129 (Names::hold / Drop for Held), library.rs:299-318 (pipeline)

library::pipeline acquires let _held = NAMES.hold(name); at line 299 before invoking load() and create() (CreateGraphicsPipelineState / CreateComputePipelineState — the exact site of the driver compiler crash). When compiler_crashed intercepts the access violation and parks the worker thread forever in loop { Sleep(u32::MAX - 1); }, the stack never unwinds and Drop for Held never runs, leaving name permanently stuck in NAMES.held.

Any other thread (including the replacement worker) that calls library::pipeline for the same host PSO name (for example, a different title Pending::key whose translated shaders/PC state hash to the same host library::name, or a concurrent duplicate queued before lost() updates BAD_KEYS) blocks in NAMES.hold forever.

Reproduced live with a simulated NULL-page access violation (0x20) inside library::pipeline's create closure on a guarded worker:

  • crash caught & recovered=true, bad_listed=true
  • Second caller to library::pipeline with the same name timed out / deadlocked permanently in NAMES.hold (deadlocked_in_NAMES_hold=true).

2. Parking a faulted thread in AddVectoredExceptionHandler(1, ...) leaks held Rust/driver locks and hijacks SEH

  • crates/victory-gpu/src/pipeline/make.rs:413-415, make.rs:424-460, make.rs:584-589

  • Held locks across p.make(): Compile::begin keeps COMPILING = true across all of p.make(), including BAD_KEYS, library::NAMES, library.state (during StorePipeline), LOG, DONE, and any driver-internal compiler / pipeline-library / Windows heap critical sections held at the moment of the fault. Freezing the faulting thread forever in Sleep(u32::MAX - 1) leaks every Rust and native lock on its stack, which can permanently deadlock the replacement worker or the entire process.

  • First = 1 VEH intercepts SEH: AddVectoredExceptionHandler(1, Some(compiler_crashed)) runs before frame-based Windows SEH (__try/__except) handlers inside d3d12.dll, dxil.dll, or GPU driver DLLs. Any SEH-handled < 0x10000 fault inside those DLLs on a worker thread will be hijacked, permanently parking the worker and recording a false positive in warm-bad.txt.

  • Unbounded slot/thread leak: NEXT_SLOT monotonically increments without reuse; once slot >= MAX_SLOTS (128), Compile::begin silently stops arming the guard while each prior crash permanently leaks a thread and its stack.

To recover safely from driver shader-compiler crashes without leaking NAMES / Rust mutexes / driver locks or interfering with SEH, driver compilation needs process isolation (e.g. compiling in a child process and sharing the serialized cache) rather than parking faulted threads in-process inside a First = 1 VEH.

(Minor non-blocking note: crates/victory-gpu/src/pipeline/library.rs also contains ~100 lines of unrelated reformatting beyond the 4-line folder() helper.)

<!-- greyfinch-sync:Marvisak/VIctory:review:6081794990 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#pullrequestreview-6081794990). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-27T00:00:02Z. **Review:** CHANGES_REQUESTED --- Tested `5a8b4d71` on hardware GPU and WARP. While the bad-key skip path (`a_pipeline_on_the_bad_list_is_not_compiled`) works in isolation, exercising the actual vectored exception handler (`compiler_crashed`) exposed blocking concurrency and process-safety bugs: ### 1. Guaranteed `NAMES.hold(name)` deadlock on every caught crash inside `library::pipeline` (reproduced live) - `crates/victory-gpu/src/pipeline/make.rs:424-460` (`compiler_crashed`), `make.rs:584-589` (`work`) - `crates/victory-gpu/src/pipeline/library.rs:111-129` (`Names::hold` / `Drop for Held`), `library.rs:299-318` (`pipeline`) `library::pipeline` acquires `let _held = NAMES.hold(name);` at line 299 before invoking `load()` and `create()` (`CreateGraphicsPipelineState` / `CreateComputePipelineState` — the exact site of the driver compiler crash). When `compiler_crashed` intercepts the access violation and parks the worker thread forever in `loop { Sleep(u32::MAX - 1); }`, the stack never unwinds and `Drop for Held` never runs, leaving `name` permanently stuck in `NAMES.held`. Any other thread (including the replacement worker) that calls `library::pipeline` for the same host PSO `name` (for example, a different title `Pending::key` whose translated shaders/PC state hash to the same host `library::name`, or a concurrent duplicate queued before `lost()` updates `BAD_KEYS`) blocks in `NAMES.hold` forever. Reproduced live with a simulated NULL-page access violation (`0x20`) inside `library::pipeline`'s `create` closure on a guarded worker: - `crash caught & recovered=true, bad_listed=true` - Second caller to `library::pipeline` with the same `name` timed out / deadlocked permanently in `NAMES.hold` (`deadlocked_in_NAMES_hold=true`). ### 2. Parking a faulted thread in `AddVectoredExceptionHandler(1, ...)` leaks held Rust/driver locks and hijacks SEH - `crates/victory-gpu/src/pipeline/make.rs:413-415`, `make.rs:424-460`, `make.rs:584-589` - **Held locks across `p.make()`:** `Compile::begin` keeps `COMPILING = true` across all of `p.make()`, including `BAD_KEYS`, `library::NAMES`, `library.state` (during `StorePipeline`), `LOG`, `DONE`, and any driver-internal compiler / pipeline-library / Windows heap critical sections held at the moment of the fault. Freezing the faulting thread forever in `Sleep(u32::MAX - 1)` leaks every Rust and native lock on its stack, which can permanently deadlock the replacement worker or the entire process. - **`First = 1` VEH intercepts SEH:** `AddVectoredExceptionHandler(1, Some(compiler_crashed))` runs **before** frame-based Windows SEH (`__try/__except`) handlers inside `d3d12.dll`, `dxil.dll`, or GPU driver DLLs. Any SEH-handled `< 0x10000` fault inside those DLLs on a worker thread will be hijacked, permanently parking the worker and recording a false positive in `warm-bad.txt`. - **Unbounded slot/thread leak:** `NEXT_SLOT` monotonically increments without reuse; once `slot >= MAX_SLOTS` (`128`), `Compile::begin` silently stops arming the guard while each prior crash permanently leaks a thread and its stack. To recover safely from driver shader-compiler crashes without leaking `NAMES` / Rust mutexes / driver locks or interfering with SEH, driver compilation needs process isolation (e.g. compiling in a child process and sharing the serialized cache) rather than parking faulted threads in-process inside a `First = 1` VEH. *(Minor non-blocking note: `crates/victory-gpu/src/pipeline/library.rs` also contains ~100 lines of unrelated reformatting beyond the 4-line `folder()` helper.)*
pushkarreddyy commented 2026-11-27 04:06:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-27T04:06:01Z.


@fuzeofficlal @upipibi @rpmaster2 @borosf @oni-swr @Aniseto Thank you all for the thorough testing and architectural analysis!

I have cleaned up the unrelated reformatting in crates/victory-gpu/src/pipeline/library.rs so only folder() is added.

On the core VEH design points raised by @fuzeofficlal and @upipibi:

  • Parking a faulted worker thread in-process leaves NAMES.hold(name) (as reproduced live) and any held Rust/driver/heap critical sections unreleased, and a First = 1 VEH intercepts SEH-handled < 0x10000 faults in nvgpucomp64.dll / d3d12.dll.
  • As @fuzeofficlal noted, safe recovery from driver shader-compiler crashes requires process isolation rather than in-process thread parking. Also per @rpmaster2's 28,164-pipeline RDNA4 run, 850b66f already avoids the amdxc64.dll compiler fault on main.

@Marvisak Please let us know if you'd prefer this reworked to out-of-process compilation (or just keeping the warm-bad.txt skip list without in-process VEH thread parking), or closed in favor of process isolation. Testers on untested GPU models are welcome to chime in.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7209518813 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7209518813). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-27T04:06:01Z. --- @fuzeofficlal @upipibi @rpmaster2 @borosf @oni-swr @Aniseto Thank you all for the thorough testing and architectural analysis! I have cleaned up the unrelated reformatting in `crates/victory-gpu/src/pipeline/library.rs` so only `folder()` is added. On the core VEH design points raised by @fuzeofficlal and @upipibi: - Parking a faulted worker thread in-process leaves `NAMES.hold(name)` (as reproduced live) and any held Rust/driver/heap critical sections unreleased, and a `First = 1` VEH intercepts SEH-handled `< 0x10000` faults in `nvgpucomp64.dll` / `d3d12.dll`. - As @fuzeofficlal noted, safe recovery from driver shader-compiler crashes requires process isolation rather than in-process thread parking. Also per @rpmaster2's 28,164-pipeline RDNA4 run, `850b66f` already avoids the `amdxc64.dll` compiler fault on `main`. @Marvisak Please let us know if you'd prefer this reworked to out-of-process compilation (or just keeping the `warm-bad.txt` skip list without in-process VEH thread parking), or closed in favor of process isolation. Testers on untested GPU models are welcome to chime in. AI-assisted: yes (Gemini 4 Neon)
rpmaster2 commented 2026-11-27 12:52:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-27T12:52:04Z.


A data point on the in-process vs out-of-process question, from the card this PR was filed for (RX 9070 XT, RDNA4, driver 32.0.32029.2010).

In-process parking, as used by the AMD fork, worked in practice here. Before 850b66f, that fork's version of this guard — a VEH that only claims an access violation whose faulting address is below 64 KiB while a pipeline is being made on that thread, writes the pipeline's name to a skip file, parks the thread and lets a replacement worker start — is what kept the game alive for hours on this machine. I ran it for two days, dozens of launches, and never saw a hang that I could attribute to a parked thread holding a lock. That is not proof the locks are safe, only that the failure you and @fuzeiocflal describe was rarer than the crash it replaced, on this card.

Out-of-process is already the pattern here, and it does survive faults. The fork's warm builds pipelines one process per pipeline: in a 2,481-pipeline pass on this machine one process ended with 0xc0000005 and the other 2,480 finished. That is the strongest argument for process isolation for anything built ahead of time.

What actually bit me was the skip list, not the parking. The fork writes warm-bad.txt, and warm retries an entry "after a driver or translator change" by fingerprint. On this machine 34 stale entries survived several builds and cost about 40 dropped draws a frame (and, as it turned out, a whole layer of city visibility) until I found VICTORY_WARM_BAD=0: with it, all 34 compiled in a 4-minute run with 0 crashes and 0 "not made" lines. So whichever way the guard goes, an entry needs to expire on its own (a timestamp, or a --retry-bad), or people will carry dead entries for days.

Since 850b66f the in-game faults do not reproduce here: translate --cache --pipelines over the pack makes 28,164 pipelines with zero first-chance exceptions at 5a8b4d7 (that is the run you cited). So on this card the guard is a safety net now, not a load-bearing part.

If it helps the decision: out-of-process for the offline prebuild (warm already does it), in-process parking only for a pipeline the title insists on during play, where abandoning one thread is the least bad option — and a skip list that expires.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; counts and versions only, no game files or paths.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7218770535 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7218770535). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-27T12:52:04Z. --- A data point on the in-process vs out-of-process question, from the card this PR was filed for (RX 9070 XT, RDNA4, driver 32.0.32029.2010). **In-process parking, as used by the AMD fork, worked in practice here.** Before `850b66f`, that fork's version of this guard — a VEH that only claims an access violation whose faulting address is below 64 KiB while a pipeline is being made on that thread, writes the pipeline's name to a skip file, parks the thread and lets a replacement worker start — is what kept the game alive for hours on this machine. I ran it for two days, dozens of launches, and never saw a hang that I could attribute to a parked thread holding a lock. That is not proof the locks are safe, only that the failure you and @fuzeiocflal describe was rarer than the crash it replaced, on this card. **Out-of-process is already the pattern here, and it does survive faults.** The fork's `warm` builds pipelines one process per pipeline: in a 2,481-pipeline pass on this machine one process ended with `0xc0000005` and the other 2,480 finished. That is the strongest argument for process isolation for anything built ahead of time. **What actually bit me was the skip list, not the parking.** The fork writes `warm-bad.txt`, and `warm` retries an entry "after a driver or translator change" by fingerprint. On this machine 34 stale entries survived several builds and cost about 40 dropped draws a frame (and, as it turned out, a whole layer of city visibility) until I found `VICTORY_WARM_BAD=0`: with it, all 34 compiled in a 4-minute run with 0 crashes and 0 "not made" lines. So whichever way the guard goes, an entry needs to expire on its own (a timestamp, or a `--retry-bad`), or people will carry dead entries for days. **Since `850b66f` the in-game faults do not reproduce here**: `translate --cache --pipelines` over the pack makes 28,164 pipelines with zero first-chance exceptions at `5a8b4d7` (that is the run you cited). So on this card the guard is a safety net now, not a load-bearing part. If it helps the decision: out-of-process for the offline prebuild (`warm` already does it), in-process parking only for a pipeline the title insists on during play, where abandoning one thread is the least bad option — and a skip list that expires. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; counts and versions only, no game files or paths.
pushkarreddyy commented 2026-11-28 07:33:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-28T07:33:20Z.


@rpmaster2 Thank you for the detailed RDNA4 (RX 9070 XT) datapoint and the insight on stale warm-bad.txt entries! Expiring stale entries (or adding a --retry-bad / fingerprint check) and keeping out-of-process compilation for offline warm makes a lot of sense.

@Marvisak Please let us know how you'd like to proceed on this (rework to out-of-process / expiring skip list, or close). Testers on untested GPU models are welcome to share feedback.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236014724 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7236014724). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-28T07:33:20Z. --- @rpmaster2 Thank you for the detailed RDNA4 (RX 9070 XT) datapoint and the insight on stale `warm-bad.txt` entries! Expiring stale entries (or adding a `--retry-bad` / fingerprint check) and keeping out-of-process compilation for offline `warm` makes a lot of sense. @Marvisak Please let us know how you'd like to proceed on this (rework to out-of-process / expiring skip list, or close). Testers on untested GPU models are welcome to share feedback. AI-assisted: yes (Gemini 4 Neon)
pushkarreddyy commented 2026-11-28 07:53:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-28T07:53:15Z.


@fuzeofficlal @upipibi @rpmaster2 Updated PR #3292 to address the blocking issues raised:

  1. NAMES.hold deadlock fixed: Names in library.rs now tracks the owning ThreadId, and lost(slot) calls library::release_held_by(tid) before notifying DONE or spawning the replacement worker, so a parked worker never leaves a pipeline name permanently stuck in NAMES.held.
  2. Scoped to amdxc64.dll (no NVIDIA/D3D12/DXIL SEH interception): guard_on() now enables the VEH by default only when amdxc64.dll is loaded (or when explicitly forced via VICTORY_COMPILER_GUARD=1), and guard_start() records amdxc64.dll's [AMD_START, AMD_END) address range once at init so compiler_crashed performs a lock-free integer range check and never intercepts nvgpucomp64.dll, d3d12.dll, or dxil.dll SEH faults.

@fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (AMD RDNA4, NVIDIA, Intel) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236224749 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7236224749). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-28T07:53:15Z. --- @fuzeofficlal @upipibi @rpmaster2 Updated PR #3292 to address the blocking issues raised: 1. **`NAMES.hold` deadlock fixed**: `Names` in `library.rs` now tracks the owning `ThreadId`, and `lost(slot)` calls `library::release_held_by(tid)` before notifying `DONE` or spawning the replacement worker, so a parked worker never leaves a pipeline name permanently stuck in `NAMES.held`. 2. **Scoped to `amdxc64.dll` (no NVIDIA/D3D12/DXIL SEH interception)**: `guard_on()` now enables the VEH by default only when `amdxc64.dll` is loaded (or when explicitly forced via `VICTORY_COMPILER_GUARD=1`), and `guard_start()` records `amdxc64.dll`'s `[AMD_START, AMD_END)` address range once at init so `compiler_crashed` performs a lock-free integer range check and never intercepts `nvgpucomp64.dll`, `d3d12.dll`, or `dxil.dll` SEH faults. @fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (AMD RDNA4, NVIDIA, Intel) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
upipibi commented 2026-11-28 07:57:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-28T07:57:49Z.


@pushkarreddyy The NVIDIA side of my point holds at fb7d071. RTX 3070, driver 616.56, Windows 11 Pro 10.0.26100, debug, on main 63bcca4:

  • The guard stays off on NVIDIA. With a local probe test calling amd_range() and guard_on() after the host device is made, I get amd_range=None guard_on=false, and guard_on=true with VICTORY_COMPILER_GUARD=1 (the range check is then skipped, as the code says). So by default nvgpucomp64.dll's own handled null-page faults no longer reach the guard.
  • cargo test --locked -p victory-gpu --lib, 3 runs: 230 passed, 2 failed, 1 ignored, not counting my probe. That's main's 229 plus your a_pipeline_on_the_bad_list_is_not_compiled. The 2 failures are the same on main on this card: dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views, from the capped view heap. One run also failed watch::tests::writes_through_another_mapping_mark_the_tracker once, which this PR doesn't touch.

Not tested: AMD, where amd_range() decides. It's read once, when the first pipeline is queued, so it depends on amdxc64.dll already being loaded by then. No NVIDIA title run either.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236272719 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7236272719). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T07:57:49Z. --- @pushkarreddyy The NVIDIA side of my point holds at `fb7d071`. RTX 3070, driver 616.56, Windows 11 Pro 10.0.26100, debug, on main `63bcca4`: - **The guard stays off on NVIDIA.** With a local probe test calling `amd_range()` and `guard_on()` after the host device is made, I get `amd_range=None guard_on=false`, and `guard_on=true` with `VICTORY_COMPILER_GUARD=1` (the range check is then skipped, as the code says). So by default `nvgpucomp64.dll`'s own handled null-page faults no longer reach the guard. - **`cargo test --locked -p victory-gpu --lib`, 3 runs:** 230 passed, 2 failed, 1 ignored, not counting my probe. That's main's 229 plus your `a_pipeline_on_the_bad_list_is_not_compiled`. The 2 failures are the same on main on this card: `dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views`, from the capped view heap. One run also failed `watch::tests::writes_through_another_mapping_mark_the_tracker` once, which this PR doesn't touch. Not tested: AMD, where `amd_range()` decides. It's read once, when the first pipeline is queued, so it depends on `amdxc64.dll` already being loaded by then. No NVIDIA title run either. AI-assisted (Claude Code, Claude Opus 5.5).
rpmaster2 commented 2026-11-28 10:33:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-28T10:33:37Z.


RDNA4 (RX 9070 XT) datapoint at 5a0a855. RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 5 5600 (12 threads), 32 GB DDR4-3600, Windows 11 10.0.26100.9974, diagnostics build, --locked, no VICTORY_COMPILER_GUARD set in either run below.

The AMD scoping works on this card: the guard is on by default

A title run with this head logs, once, at start:

INFO victory_gpu::pipeline::make: the driver's compiler crashing on a worker is caught (VICTORY_COMPILER_GUARD=0: not)

So amd_range() found amdxc64.dll in this process before the first pipeline was queued, and the VEH is armed without the environment variable. That is the behaviour you described for AMD, and it is the opposite of what @upipibi measured on the RTX 3070 (amd_range=None guard_on=false) — the two reports together cover both sides of the change.

The offline pipeline phase, into a warm library

victory translate <title> --cache --pipelines --jobs 8, 29 minutes wall clock:

containers   25985 in 37.9 s: 25947 already cached, 35 translated, 3 refused
pipelines    28164 in the pack, 1647.2 s: 11 made, 27124 already in the library

Exit code 0, no first-chance exceptions, no unhandled exceptions, no panics, and no warm-bad.txt was written: the driver's compiler did not fault, so the handler was not exercised. Negative control, not a VEH test — same as my November run.

One thing worth knowing for anyone reading logs: guard_start() does not run in the pre-build path at all (no such line in the pre-build log), so the offline phase cannot tell you whether the range check activates. Only a title run does, which is where the line above comes from.

A title run with the warm library

Two minutes, --console series-s, the same save: 1.6–2.3 fps, 444–626 ms a frame, 2,636–3,454 draws a frame, 145–197 dropped without a host pipeline, 4 black frames, and zero pipelines compiled during the run (made=0, 2,794–2,894 loaded from the library). Nothing regressed against main on the same card and save; it is the best this machine has run upstream.

What I cannot add

No NVIDIA or Intel hardware here, so the vendor boundary is only tested on AMD by me and on NVIDIA by @upipibi. The NAMES.hold fix is not exercised either: we never see a fault on this card since 850b66f, which is exactly why the skip list went stale on it in the first place.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; counts and versions only, no game files or paths.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7237975316 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7237975316). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-28T10:33:37Z. --- **RDNA4 (RX 9070 XT) datapoint at `5a0a855`.** RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 5 5600 (12 threads), 32 GB DDR4-3600, Windows 11 10.0.26100.9974, diagnostics build, `--locked`, no `VICTORY_COMPILER_GUARD` set in either run below. ### The AMD scoping works on this card: the guard is on by default A title run with this head logs, once, at start: ``` INFO victory_gpu::pipeline::make: the driver's compiler crashing on a worker is caught (VICTORY_COMPILER_GUARD=0: not) ``` So `amd_range()` found `amdxc64.dll` in this process before the first pipeline was queued, and the VEH is armed without the environment variable. That is the behaviour you described for AMD, and it is the opposite of what @upipibi measured on the RTX 3070 (`amd_range=None guard_on=false`) — the two reports together cover both sides of the change. ### The offline pipeline phase, into a warm library `victory translate <title> --cache --pipelines --jobs 8`, 29 minutes wall clock: ``` containers 25985 in 37.9 s: 25947 already cached, 35 translated, 3 refused pipelines 28164 in the pack, 1647.2 s: 11 made, 27124 already in the library ``` Exit code 0, no first-chance exceptions, no unhandled exceptions, no panics, and **no `warm-bad.txt` was written**: the driver's compiler did not fault, so the handler was not exercised. Negative control, not a VEH test — same as my November run. One thing worth knowing for anyone reading logs: `guard_start()` does not run in the pre-build path at all (no such line in the pre-build log), so the offline phase cannot tell you whether the range check activates. Only a title run does, which is where the line above comes from. ### A title run with the warm library Two minutes, `--console series-s`, the same save: 1.6–2.3 fps, 444–626 ms a frame, 2,636–3,454 draws a frame, 145–197 dropped without a host pipeline, 4 black frames, and **zero pipelines compiled during the run** (`made=0`, 2,794–2,894 loaded from the library). Nothing regressed against `main` on the same card and save; it is the best this machine has run upstream. ### What I cannot add No NVIDIA or Intel hardware here, so the vendor boundary is only tested on AMD by me and on NVIDIA by @upipibi. The `NAMES.hold` fix is not exercised either: we never see a fault on this card since `850b66f`, which is exactly why the skip list went stale on it in the first place. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; counts and versions only, no game files or paths.
pushkarreddyy commented 2026-11-28 17:05:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-28T17:05:01Z.


@rpmaster2 @upipibi Thank you both for verifying both sides of the vendor boundary on 5a0a855 (RX 9070 XT arms amdxc64.dll guard by default; RTX 3070 leaves amd_range=None guard_on=false) and confirming zero regressions in the 28,164-pipeline + title run!

@fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., Intel Arc) are welcome to test.

AI-assisted: yes (Gemini 4 Neon)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7242740417 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3292#issuecomment-7242740417). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-28T17:05:01Z. --- @rpmaster2 @upipibi Thank you both for verifying both sides of the vendor boundary on `5a0a855` (RX 9070 XT arms `amdxc64.dll` guard by default; RTX 3070 leaves `amd_range=None guard_on=false`) and confirming zero regressions in the 28,164-pipeline + title run! @fuzeofficlal Please re-review when convenient, and @Marvisak please review and merge once approved and CI is green. Testers on untested GPU models (e.g., Intel Arc) are welcome to test. AI-assisted: yes (Gemini 4 Neon)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3292:upstream-pr/3292'
git switch 'upstream-pr/3292'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3292'
git switch 'upstream-pr/3292'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3292'
git switch 'upstream-pr/3292'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3292'
git switch 'main'
git merge --squash 'upstream-pr/3292'
git switch 'main'
git merge --ff-only 'upstream-pr/3292'
git switch 'main'
git merge 'upstream-pr/3292'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!3292
No description provided.