Return early on empty ranges in texback::remapped, port::forget, and port::touches #454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from TaynanGT/Vice-Tay. Originally posted by ahmetbagci8 on 2026-11-29T18:18:25Z.
Problem
In crates/victory-gpu/src/texback.rs (
emapped) and crates/victory-gpu/src/port.rs (orget and ouches), half-open range checks did not return early when len == 0:
Fix
Return early on len == 0 in exback::remapped, port::forget, and port::touches, with unit tests covering each case.
Verification
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:09:17Z.
Thanks for the consistent half-open range handling. I checked the diff: empty remaps preserve live readback tickets and empty forgets preserve registered regions. The positive nonempty invalidation tests should remain alongside these regressions.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:05:48Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed