vkback probe: fail loudly on a heap RTAS handle, drop binding 7 #73

Manually merged
github merged 1 commit from github-bot/gh-73 into gh-pr/73/base 2026-12-01 11:13:36 +00:00 AGit
Owner

@⁠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 UTC

What

greenfield/vkback/tools/probe.cpp declared B_RTAS = 7 and 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 loud remap_fail) and B_RTAS is 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-probe rebuilds against the pinned dxil-spirv.
  • A 120 s house validation run on the reference card: no remap failures, no heap RTAS lines, no new VUIDs — only the four known ones (three descriptor limits and 06409). The run survived to its timeout.
**@⁠TheRifai** on GitHub · 2026-12-01 11:01 UTC · [original](https://github.com/vktory6/VKtory/pull/73) `TheRifai:vkback-rtas-loud` → `main` · +6 −2 · 1 files · 1 commits · merged 2026-12-01 11:08 UTC ## What `greenfield/vkback/tools/probe.cpp` declared `B_RTAS = 7` and 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 loud `remap_fail`) and `B_RTAS` is 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-probe` rebuilds against the pinned dxil-spirv. - A 120 s house validation run on the reference card: no remap failures, no `heap RTAS` lines, no new VUIDs — only the four known ones (three descriptor limits and `06409`). The run survived to its timeout.
dxil-probe mapped heap ray-tracing acceleration structures to set 0 binding 7,
but vkback's set-0 layout declares bindings 0-6 only; a shader that used one
would name a binding the pipeline layout lacks (issue #71). No translated
program uses that handle today (the title walks its BVH as buffers and structure
views are nulled). Make it a loud remap failure and drop B_RTAS, so the remapper
table and the runtime layout agree before the one-array port (#57).

dxil-probe rebuilds; a 120 s house validation run has no remap failures, no new
VUIDs and only the four known ones.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 11:03:07 +00:00
github-bot changed target branch from main to gh-pr/73/base 2026-12-01 11:13:35 +00:00
github manually merged commit ea16adb743 into gh-pr/73/base 2026-12-01 11:13:36 +00:00
Author
Owner

@⁠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_fail is the right answer, and the table now matches the layout.

Checked here: the probe builds with -Wall against the pinned dxil-spirv, warning-free. Continuing after fail() with return DXIL_SPV_TRUE is fine: any recorded failure makes the status remap_fail and 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.

**@⁠vktory6** on GitHub · 2026-12-01 11:09 UTC · [original](https://github.com/vktory6/VKtory/pull/73#issuecomment-7309243489) Merged, thanks! A heap acceleration-structure handle can't occur here (the title walks its BVH as buffers), so a loud `remap_fail` is the right answer, and the table now matches the layout. Checked here: the probe builds with `-Wall` against the pinned dxil-spirv, warning-free. Continuing after `fail()` with `return DXIL_SPV_TRUE` is fine: any recorded failure makes the status `remap_fail` and 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.