Tests: cover repeated texture-change compaction and range bounds #165
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/165"
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 anes66 on 2026-11-27T05:23:11Z.
The regression in #137 covers one full queue of disjoint texture changes. Add CPU-only coverage for repeated compactions, overlapping/nested writes and 64-bit address bounds, so those cases cannot silently lose pending texture updates.
The checks assert that every original changed interval remains covered and the queue stays within its limit. Coverage is checked independently of the production
joinhelper. This changes tests only.Validation:
cargo test --locked -j2 -p victory-gpu --lib --features diagnostics pending_texture_changes_ -- --test-threads=1: 4 passed, including the existing regression (Rust 1.100.0, Windows/MSVC).git diff --checkpassed.The full GPU suite and title runtime were not run. These tests use local integer vectors and do not create a graphics device. No rendering or FPS improvement is claimed.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T05:34:52Z.
I checked the coverage helper against the compactor, including the fallback that combines neighboring ranges. Each input should still have one covering entry, so the prefix maximum checks the right invariant. The repeated passes and the near-u64::MAX endpoints both add coverage beyond the existing full-queue case.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T05:39:00Z.
Thanks for adding this coverage, @anes66. I ran
pending_texture_changes_on Windows at580e169with diagnostics enabled. All four tests passed, including the existing full-queue regression. The new cases exercise repeated compactions, nested writes and addresses nearu64::MAX, and check coverage independently of the queue’s merge helper.