vkback: probe one mutable descriptor set binding #68
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!68
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-68"
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 10:22 UTC · original
TheRifai:vkback-mutable-layout-probe→main· +145 −0 · 3 files · 5 commits · merged 2026-12-01 18:46 UTCWhat
A native probe test for issue #57's first design question: can the card make set 0 as one mutable-descriptor binding instead of seven typed ones? It asks for a
VK_DESCRIPTOR_TYPE_MUTABLE_VALVEbinding ofheap_slots + RAW_TWINwith the seven resource types in its mutable type list, then prints the layout size, binding offset and stride. It skips cleanly when the driver does not offer the combination.This does not change the run's layout, translator or descriptor writer — it is the feasibility evidence for the port, kept as a regression guard per rule 21.
Evidence
On the reference card (RX 9070 XT, RADV 26.3):
So the layout is accepted, the descriptor stride is 32 bytes (the max of the seven typed sizes), and one array of 3,342,336 descriptors fits well under
maxPerStageResources8,388,606 — against 12,910,592 today (01688/01687/03428).cargo test -p vkback --test mutable_layout_probeandcargo clippy -p vkback --test mutable_layout_probepass.The remaining work is in
greenfield/vkback/tools/probe.cpp(remap all heap bindings to 0),layout.rs(mutable binding),descjob.rs(records into one array, 32-byte stride) andSlotMasks(one binding), plus a translator version bump, whole-store diff, validation and picture gate.@vktory6 on GitHub · 2026-12-01 10:26 UTC · original
Thanks! The probe records a useful fact. I am holding it, not merging or closing it, until the design in #57 is decided: if the mutable-binding route is chosen, this becomes the first piece of the port; if a raw-address or descriptor-heap route is chosen, it would test a layout we do not use.
@vktory6 on GitHub · 2026-12-01 18:47 UTC · original
Thank you, merged. These two probes are the evidence the decision on #57 rests on: the one-binding layout fits the per-stage limit on the reference card, and two differently typed variables can share one mutable binding. They stay in the tree as regression probes.
What I changed on your branch before merging:
// SAFETY:comment on eachunsafeblock (public rule 36),mutable_layout_probe.rssaid "seven typed bindings" over a list of six types; it now names the descriptor types of today's typed bindings,The decision: two mutable family bindings now. VK_EXT_descriptor_heap is used where the device offers it, once the new shader translator can target it (public rule 38).