Reject overlapping linear slices in volume texture copies #1055
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1055
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1055"
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?
@teecil on GitHub · 2026-11-25 17:44 UTC · original
teecil:fix/texture-linear-depth-pitch→main· +49 −4 · 1 files · 1 commits · openLayout::tileandLayout::detileaccepted a linear depth pitch one byte shorter than an active slice. Indetile, the first row of the next slice then overwrote the last active byte of the previous slice. Intile, both slices read that same byte.Check the span of one active slice before either copy starts. The minimum pitch ends after the last active row byte, so tightly packed slices can still omit the last row's trailing padding. Keep checked arithmetic for the whole buffer span.
Verification
ca8829fand passes with the patch. It exercises both copy directions with linear and 4 KB swizzled textures, checks that rejected copies leave their destinations intact, and verifies the exact valid pitch.cargo build --workspace --lockedpasses with the pinned Rust 1.98.1. The repository asset policy also passes.cargo test --workspace --locked --no-fail-fast -- --test-threads=4exits successfully on Windows. Cargo reports 582 passed, 12 ignored, and zero failures. Four shader differential tests that Cargo reports as passed exit early because a console compiler is unavailable.victory-formats. The default and all-features workspace runs reproduce the same existingvictory-gpudiagnostics asca8829f.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.