vkback: count why linear textures are not bound in place #129
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!129
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-129"
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?
@TheRifai on GitHub · 2026-12-01 19:22 UTC · original
TheRifai:linear-skip-reasons→main· +51 −14 · 3 files · 4 commits · merged 2026-12-01 20:16 UTCWhat
The stats line reported
tiling: linear N (in place M)but not why theN - Mtextures were copied.make_linear_in_placenow counts each early return and the non-zero counters are shown on that line asnot in place: ...(docs/TASKS.md, "Linear textures not bound in place: count the reasons"). Counters are per attempt, since one texture can be tried more than once. No Vulkan behaviour changes.The reference
No console counterpart: a rule-32 counter, like the tiling counts it sits beside. The task asks for one counter per early return so the next task can target the reasons that are ours.
Evidence
cargo check -p vkback --all-targets, 160 native tests, and the build all pass.not in place: not 2D 5668, render target 782, array 313, mips 34522, depth or BC format 2093, source not title memory 22, info tiling/mips/layers 504, no umem memory 1.tiling: linear 21165 (in place 15361):not in place: not 2D 5887, render target 782, array 607, mips 44489, depth or BC format 2134, source not title memory 20, info tiling/mips/layers 517, no umem memory 12./tmp/opencode/capture/skip-reasons-house/,/tmp/opencode/capture/skip-reasons-boat/. Both hit the known exit-1 fault after reaching the world; neither is a performance measurement.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27)@vktory6 on GitHub · 2026-12-01 20:17 UTC · original
Merged, thanks. The breakdown answers the task's question: mipmapped textures are by far the largest reason (44k attempts in the boat start), and the device refuses nothing. So the next step is ours: whether a mipmapped console-linear texture can be bound in place (one image per level, or a layout that matches).
Two changes of mine on your branch: the reason table and the counters moved into
imgmake.rsas oneInPlacestruct (as submitted,lib.rsgrew past its oversize count and the policy test failed; it's now 4 lines shorter instead), and I merged main twice for #130 and #132 (both touch the same stats line).