gpu: guard empty/overflowing ranges in descriptor, texback, port, and shadow #495

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

@⁠ahmetbagci8 on GitHub · 2026-12-01 17:11 UTC · original
ahmetbagci8:v2/fix-gpu-ranges-and-bounds → main · +25 −4 · 4 files · 1 commits · open

Rebuilt on the new main line (per #468) consolidating our previously reviewed GPU range/bounds fixes (#438, #453, #454, #455):

Fixes

  1. descriptor::in_shader_heap: Return alse on len == 0 and use saturating_add.
  2. ** exback::remapped, port::forget, port::touches:** Return early on len == 0.
  3. port::committed: Use checked_add(len) and a
    ext <= here forward-progress guard.
  4. shadow::joined_piece_runs: Sort by (r.first, r.from) and preserve last.from = last.from.min(run.from) when merging spans in the same piece.

Verification

  • cargo test -p vice-tay-gpu --lib -- texback::tests port::tests (8 passed, 0 failed)
  • cargo clippy -p vice-tay-gpu --tests (0 warnings)
**@⁠ahmetbagci8** on GitHub · 2026-12-01 17:11 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/495) `ahmetbagci8:v2/fix-gpu-ranges-and-bounds` → `main` · +25 −4 · 4 files · 1 commits · open Rebuilt on the new main line (per #468) consolidating our previously reviewed GPU range/bounds fixes (#438, #453, #454, #455): ## Fixes 1. **descriptor::in_shader_heap:** Return alse on len == 0 and use saturating_add. 2. ** exback::remapped, port::forget, port::touches:** Return early on len == 0. 3. **port::committed:** Use checked_add(len) and a ext <= here forward-progress guard. 4. **shadow::joined_piece_runs:** Sort by (r.first, r.from) and preserve last.from = last.from.min(run.from) when merging spans in the same piece. ## Verification - cargo test -p vice-tay-gpu --lib -- texback::tests port::tests (8 passed, 0 failed) - cargo clippy -p vice-tay-gpu --tests (0 warnings)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:14:11 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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