gpu: isolate AMD driver compiler crashes (crashed.txt) and replace parked workers #1037

Closed
jmal423 wants to merge 2 commits from upstream-pr/1039 into main
jmal423 commented 2026-11-25 17:02:50 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by jmal423 on 2026-11-25T17:02:50Z.


Enables fxceless/victory-gta6 to boot and run on AMD RDNA4 (tested on Windows 11 / AMD Radeon RX 9070 XT, Series X target) without crashing inside amdxc64.dll:

  • Per-pipeline driver crash isolation (crashed.txt): installs a Vectored Exception Handler around pipeline::library (load and create) that logs the failing pipeline hash, records it in crashed.txt (skipped on subsequent runs), and parks the faulting worker thread instead of crashing the process.
  • Automatic worker replacement: tracks parked worker threads via library::LOST and spawns replacement workers in pipeline::make::start so the pipeline worker pool never starves.

Tested on Windows 11 / AMD Radeon RX 9070 XT (with VICTORY_ASYNC_SUBMIT=1, VICTORY_QUEUE2=1, VICTORY_INDIRECT_WINDOW=1, VICTORY_INDIRECT_GATHER=1):

  • Previously crashed ~3s after launch at amdxc64.dll+0x861b9f (0xc0000005, read 0x8), and later inside LoadComputePipeline at amdxc64.dll+0x5fe26b (read 0xa8).
  • With this patch, isolated the faulting RDNA4 pipelines into crashed.txt and ran in-game cleanly at 5.6-6.8 fps (146.7-178.1 ms/frame).
<!-- greyfinch-sync:fxceless/victory-fork:issue:5495646526 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1039). Originally posted by [jmal423](https://github.com/jmal423) on 2026-11-25T17:02:50Z. --- Enables `fxceless/victory-gta6` to boot and run on AMD RDNA4 (tested on Windows 11 / AMD Radeon RX 9070 XT, Series X target) without crashing inside `amdxc64.dll`: - **Per-pipeline driver crash isolation (`crashed.txt`)**: installs a Vectored Exception Handler around `pipeline::library` (`load` and `create`) that logs the failing pipeline hash, records it in `crashed.txt` (skipped on subsequent runs), and parks the faulting worker thread instead of crashing the process. - **Automatic worker replacement**: tracks parked worker threads via `library::LOST` and spawns replacement workers in `pipeline::make::start` so the pipeline worker pool never starves. Tested on Windows 11 / AMD Radeon RX 9070 XT (with `VICTORY_ASYNC_SUBMIT=1`, `VICTORY_QUEUE2=1`, `VICTORY_INDIRECT_WINDOW=1`, `VICTORY_INDIRECT_GATHER=1`): - Previously crashed ~3s after launch at `amdxc64.dll+0x861b9f` (`0xc0000005`, read `0x8`), and later inside `LoadComputePipeline` at `amdxc64.dll+0x5fe26b` (`read 0xa8`). - With this patch, isolated the faulting RDNA4 pipelines into `crashed.txt` and ran in-game cleanly at `5.6-6.8 fps` (`146.7-178.1 ms/frame`).
copilot-pull-request-reviewer[bot] commented 2026-11-25 17:03:05 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T17:03:05Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:fxceless/victory-fork:review:6061704744 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1039#pullrequestreview-6061704744). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-25T17:03:05Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Pull request closed

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
fxceless/victory-fork!1037
No description provided.