GPU/descriptor: cap Rule::Start head block at texture size #1391
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!1391
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1391"
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?
@n-romanovich on GitHub · 2026-11-26 22:30 UTC · original
n-romanovich:fix/923-cap-head-block-size→main· +34 −5 · 1 files · 1 commits · openRelated to #923 and #1284.
Under
Rule::Start(default),Spans::notetreated any placed texture view starting withinHEAD(4096 bytes) of another view's start as replacing it, regardless of the actual texture size. When the title packs small textures or tint palettes (e.g., 256 B – 2 KiB) consecutively within 4 KiB, each new view marked its non-overlapping neighbours stale and nulled their host views.Changes in
crates/victory-gpu/src/descriptor/host.rs:Rule::Starthead block at its own size (end.min(start + HEAD)for the incoming span andold_end > startfor preceding spans), so non-overlapping neighbours packed within 4 KiB remain valid while overlapping views still replace stale ones.descriptor::host::tests::small_non_overlapping_neighbours_within_head_stay.Verified locally:
cargo test --locked -p victory-gpu --lib(224 passed, 0 failed, 6 ignored)cargo test --locked -p victory-gpu --features diagnostics --lib descriptor(40 passed, 0 failed)cargo build --release --locked -p victoryView 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.