Tests: cover repeated texture-change compaction and range bounds #165
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/TaynanGT--Vice-Tay!165
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@anes66 on GitHub · 2026-11-27 05:23 UTC · original
anes66:test/texture-change-coverage→main· +69 −0 · 1 files · 1 commits · merged 2026-11-27 06:13 UTCThe 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.
@TaynanGT on GitHub · 2026-11-27 05:34 UTC · original
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.
@TaynanGT on GitHub · 2026-11-27 05:39 UTC · original
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.