GPU: ignore placed-texture filler words in same_placed_texture and Spans::bytes #502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by adritoyalser on 2026-11-25T01:49:27Z.
Summary
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.