vkback probe: fail loudly on a heap RTAS handle, drop binding 7 #73
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!73
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-73"
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 11:01 UTC · original
TheRifai:vkback-rtas-loud→main· +6 −2 · 1 files · 1 commits · merged 2026-12-01 11:08 UTCWhat
greenfield/vkback/tools/probe.cppdeclaredB_RTAS = 7and mapped heap ray-tracing acceleration structures to set 0 binding 7, but vkback's set-0 descriptor layout declares bindings 0–6 only. A translated shader that used such a handle would name a binding the pipeline layout lacks (issue #71). No translated program does today — the title walks its BVH as buffers and structure views are nulled — but the remapper table and the runtime layout disagree, and the one-array port (#57) rewrites that table.The RTAS case now calls the probe's existing
fail()path (a loudremap_fail) andB_RTASis removed, so the table ends at binding 6 and an unexpected handle is reported rather than silently given an invalid binding (rule 32).Evidence
dxil-proberebuilds against the pinned dxil-spirv.heap RTASlines, no new VUIDs — only the four known ones (three descriptor limits and06409). The run survived to its timeout.@vktory6 on GitHub · 2026-12-01 11:09 UTC · original
Merged, thanks! A heap acceleration-structure handle can't occur here (the title walks its BVH as buffers), so a loud
remap_failis the right answer, and the table now matches the layout.Checked here: the probe builds with
-Wallagainst the pinned dxil-spirv, warning-free. Continuing afterfail()withreturn DXIL_SPV_TRUEis fine: any recorded failure makes the statusremap_failand no SPIR-V is written, and the status stays more specific than a converter abort would make it. Your house validation run with the new probe is the runtime evidence; our standard check runs the installed probe, so it doesn't exercise this file.