Restore shader lowering modes after a worker panic #1369

Open
github-bot wants to merge 1 commit from github-bot/gh-1369 into main AGit
Owner

@⁠rafaconvaitis on GitHub · 2026-11-26 18:58 UTC · original
rafaconvaitis:codex/shader-lowering-unwind → main · +56 −12 · 1 files · 1 commits · open

Follow-up to #1353. A pipeline worker now continues after a caught build panic. The shader translator used to restore three thread-local lowering modes only after the translation closure returned normally. A panic could leave a mode enabled for the next shader handled by the same worker.

Restore each temporary mode with a drop guard. Normal returns and nested calls keep the previous behavior. The same cleanup now runs during unwinding.

Verification

  • Added a focused regression test that exercises all three modes, nested normal returns, and restoration after a caught panic.
  • The test passed on Windows with Rust 1.98.1, in an offline release build based on 52ac4ec.
  • git diff --check passed.
**@⁠rafaconvaitis** on GitHub · 2026-11-26 18:58 UTC · [original](https://github.com/fxceless/victory-fork/pull/1369) `rafaconvaitis:codex/shader-lowering-unwind` → `main` · +56 −12 · 1 files · 1 commits · open Follow-up to #1353. A pipeline worker now continues after a caught build panic. The shader translator used to restore three thread-local lowering modes only after the translation closure returned normally. A panic could leave a mode enabled for the next shader handled by the same worker. Restore each temporary mode with a drop guard. Normal returns and nested calls keep the previous behavior. The same cleanup now runs during unwinding. ## Verification - Added a focused regression test that exercises all three modes, nested normal returns, and restoration after a caught panic. - The test passed on Windows with Rust 1.98.1, in an offline release build based on `52ac4ec`. - `git diff --check` passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:01:20 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/src/emit/lower.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1369/head:github-bot/gh-1369'
git switch 'github-bot/gh-1369'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1369'
git switch 'github-bot/gh-1369'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1369'
git switch 'github-bot/gh-1369'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1369'
git switch 'main'
git merge --squash 'github-bot/gh-1369'
git switch 'main'
git merge --ff-only 'github-bot/gh-1369'
git switch 'main'
git merge 'github-bot/gh-1369'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.