Reject overlapping depth slices before copying a volume texture #65
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/DexNom--VIctory!65
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-65"
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?
@Yoshi-233 on GitHub · 2026-11-26 03:29 UTC · original
Yoshi-233:fix/volume-copy-depth-pitch→main· +47 −5 · 1 files · 1 commits · openA 2×2×2 R8 volume with two active bytes per row and a four-byte row pitch needs six bytes before the next depth slice may start. On
64bd58f, pitches of 0 and 5 were accepted in both copy directions, allowing one slice to overwrite or reuse the previous slice’s texels.Check the occupied extent through the last active byte of a slice before copying. This preserves DexNom’s
bytes_from(mip)limit for streamed mips. The next slice may start at byte 6; a single-slice mip still accepts a depth pitch of 0.This ports Belobug/VIctory-Belobug-AMD#21, where I previously called the exported XG texture computer and its actual copy methods on native Windows build 26200. Those measurements exercise CPU-side layout and copy semantics.
Checks on DexNom
Ok(())for an overlapping pitch). After the fix,cargo test --locked -p victory-formats --libpassed: 27 passed, 4 ignored.S_OKand modified the destination. With the patch, all eight returnedE_INVALIDARGand left the destination untouched. Six valid round trips, including the minimum pitch, padded pitch and single-slice mip, passed on both revisions.cargo check --locked --target x86_64-pc-windows-gnu -p victory-hle -p victory-formats --tests. I have not run this DexNom revision on native Windows. No rendering or frame-rate claim.AI-assisted port and testing.
@Artking175 on GitHub · 2026-11-26 05:32 UTC · original
I ran
cargo test --locked -p victory-formats --libon native Windows 10 / MSVC, Rust 1.98.1, against259756e. The volume depth-pitch regression passed and the full crate reported 27 passed, 0 failed, 4 ignored. This confirms the CPU-side copy test on native Windows. I did not exercise the exported XG vtable in this run.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.