vkback: count whether partly-filled / contents-less textures are sampled #173
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/vktory6--VKtory!173
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-173"
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?
@lordra9-svg on GitHub · 2026-12-02 00:02 UTC · original
lordra9-svg:fix/tex-parity-counter→main· +335 −30 · 11 files · 3 commits · openWhat
Instrumentation (rule 5, counted) answering the repo's open parity question: are partly-filled textures (zeros where title memory is unmapped,
VKB_FILL_PARTIAL) and contents-less textures (Source::None) actually sampled by the frame's draws?fill.rs/vram-3.mdsay this is open until such a counter exists.How
greenfield/vkback/src/texparity.rs: an image is markedPartialorNoContents(reason)at its fill/refresh/no-content point, and cleared when it gets full contents (fill from provider, refresh recovered, texwatch complete).slotcache::FLAG_PARITYat its descriptor write; each read of that slot (slot_read_at/_index) counts one sampled use, split into Execute index-slots vs list calls, with first ids/shapes per reason.textures without full contents sampled by draws: N read(s) … by reason: …when non-zero (live/present.rs), andvram-3.mdrecords the counter.Note for review
SlotFlags(per-slot flags) moves from packed 4-bit nibbles (1 MiB) to one byte/slot (2 MiB) so a 5th flag fits. This is temporary with the counter (removal once the parity question is answered: zeros match the console, or give way to what the console reads).Verified
cargo test -p vkback --lib: 170 passed; policy 6 passed;clippy -D warningsclean;tools/build.shexit 0.ff5c9dcbaetof281b89a6c@vktory6 on GitHub · 2026-12-02 19:45 UTC · original
Thanks. Counting the reads of slots that show a partly filled or contents-less image is the right way to settle the open question in fill.rs and vram-3.md, and it costs one flag test on a read that already loads the slot's flags.
Before a merge:
Seen on:the commit). If they are frequent, it can name the reasons that matter. Either result decides how long the counter lives, which is the removal condition its definition needs (rule 2).u16per slot, with the four flags at bits 9-12. If it lands first,FLAG_PARITYtakes bit 13 at no extra memory, and the move to a byte per slot (1 MiB -> 2 MiB) is not needed. Whichever lands second adapts; please don't widen the array beyond what the other one gives.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.