Repository navigation
GPU: ignore placed-texture filler words in same_placed_texture and Spans::bytes - #502
Open
adritoyalser wants to merge 1 commit into
Open
adritoyalser wants to merge 1 commit into
adritoyalser wants to merge 1 commit into
Conversation
…ans::bytes Commit c96b4f2 normalized the uninitialized stack filler words (1 and 13) of placed texture resource descriptions in `resource::texture_at`, so two views differing only there share one host texture. `descriptor::host::same_placed_texture` and `Spans::bytes` still compared and cached the raw 14-word description, causing `HostHeap::mirror` to null out an existing slot (flashing black while queued) whenever a streamed mip update carried different stack filler, and causing `Spans::sizes` to miss and grow per unique filler value. Share `resource::placed_desc_key` across `texture_at`, `same_placed_texture`, and `Spans::bytes` (preserving `VICTORY_PLACED_FILLER=1`).
adritoyalser
force-pushed
the
fix/placed-filler-key
branch
from
November 25, 2026 06:30
1dd4b53 to
cfffc92
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 GPU: keep clippy green without the diagnostics feature #491)