GPU: ignore placed-texture filler words in same_placed_texture and Spans::bytes #502
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!502
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-502"
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?
@adritoyalser on GitHub · 2026-11-25 01:49 UTC · original
adritoyalser:fix/placed-filler-key→main· +33 −18 · 2 files · 1 commits · openSummary
Follow-up to
c96b4f2(which stripped the uninitialized stack filler words[1]and[13]from placed texture resource descriptions inresource::texture_at):crate::resource::placed_desc_key(desc: &[u32; 14]) -> [u32; 14](still honoringVICTORY_PLACED_FILLER=1) and used it inresource::texture_at.descriptor::host::same_placed_textureto compare normalized keys viaplaced_desc_key, so rewriting a streamed placed-texture view with different stack filler words keeps the existing host slot (KEPT_VIEWS) instead of nulling it out until re-uploaded.descriptor::host::Spans::bytesto key itssizescache byplaced_desc_key, preventing redundant footprint recomputations and unbounded cache growth from random stack filler.descriptor::host::tests::views_of_one_placed_texture_are_told_by_address_and_descriptionto cover bothsame_placed_textureandSpans::bytesdeduplication with differing filler words[1]and[13].Verification
cargo test -q -p victory-gpu --lib --locked views_of_one_placed_texture_are_told_by_address_and_description(pass)cargo clippy -q -p victory-gpu --all-targets --all-features --locked -- -D warnings(0 warnings; note default-feature clippy onc96b4f2currently fails on pre-existingplaced_filler_twinsdead_code, tracked in #491)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.