d3d12: catch the driver's compiler crashing on a pipeline and carry on (carry of #3222) #3333

Merged
MoonEyes merged 4 commits from upstream-pr/3333 into main 2026-12-03 14:27:23 +00:00
MoonEyes commented 2026-12-03 14:02:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T14:02:45Z.


Carries #3222 by @roanh47 onto current main. Claim and authorship stay theirs: the two commits are theirs, unchanged; the only new commit merges main and regenerates d3d12/docs/switches.md with tools/d3d12_switches.py --out (the one conflict, a generated file whose format changed in #3318).

#3222 was green but stuck in conflict on that generated page only, and the contributor branch could not be updated from here.

What it does (from #3222)

Catches the driver's shader compiler crashing on a pipeline and carries on (LEONIDA_COMPILER_GUARD), instead of taking the game down.

Tested

  • In game by a third party on #3222: RTX 5070 12 GB, 315 s in the world, PASS (comment on #3222, head d59a9d6e2; the later head only regenerated the switches page).
  • Here: python -I tools/d3d12_switches.py --check d3d12/docs/switches.md exit 0, python -I tests/test_d3d12_switches.py OK. CI runs on this pull request.

If #3222 is updated by its author first, this one can be closed.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5628014068 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3333). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T14:02:45Z. --- Carries #3222 by @roanh47 onto current `main`. Claim and authorship stay theirs: the two commits are theirs, unchanged; the only new commit merges `main` and regenerates `d3d12/docs/switches.md` with `tools/d3d12_switches.py --out` (the one conflict, a generated file whose format changed in #3318). #3222 was green but stuck in conflict on that generated page only, and the contributor branch could not be updated from here. ## What it does (from #3222) Catches the driver's shader compiler crashing on a pipeline and carries on (`LEONIDA_COMPILER_GUARD`), instead of taking the game down. ## Tested - In game by a third party on #3222: RTX 5070 12 GB, 315 s in the world, PASS (comment on #3222, head `d59a9d6e2`; the later head only regenerated the switches page). - Here: `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` exit 0, `python -I tests/test_d3d12_switches.py` OK. CI runs on this pull request. If #3222 is updated by its author first, this one can be closed. AI-assisted (Claude Code, Claude Opus 5.5). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
ProjectLeonida/mandy!3333
No description provided.