Reject overlapping linear slices in volume texture copies #1053
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by teecil on 2026-11-25T17:44:13Z.
Layout::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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.