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

Merged
leonida/mandy
MoonEyes merged 4 commits from carry/3222-compiler-guard into main 2026-12-03 14:27:23 +00:00

Pull request successfully merged and closed

MoonEyes commented 2026-12-03 14:02:45 +00:00

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

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 description provided.