shader: name the root type of refused FSPX metadata records #85
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!85
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-85"
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?
@Olima34 on GitHub · 2026-11-26 13:52 UTC · original
Olima34:fix/fspx-root-type-refusals→main· +38 −6 · 3 files · 2 commits · merged 2026-11-26 14:58 UTCWhat this changes
The largest class of shader refusals in the latest tester logs (#66, #68: 53 and 54 compute shaders) is one message,
malformed shader: an FSPX resource of an unknown root type, whichmetadata_resourcesgave for three different cases. Each now has its own message, naming the root type, so the next log says which fix is needed:FSPX metadata resource of root type 0: root constants in a compute shader(compute only; graphics takes them)... a descriptor heap (SM 6.6 dynamic resources)(ResourceHeap,SamplerHeap; compute and graphics)... an unknown root typeThe record index is left out on purpose:
translatetallies failures by message, so one line per cause keeps the counts together. A newShaderError::FspxRootvariant carries the type.rejects_corrupt_fspx_partsnow checks the exact text for root types 0, 5, 6, 2 and 7.Likely follow-up, not in this PR: the heap case (b) looks small, since graphics already lowers SGPR-held heap addresses (
emit/graphics.rs,resource.rsheap_base); compute root constants (a) need the one-dword-per-record size checked for compute.How it was tested
cargo test -p victory-shader; the test fails onmain(the old message)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings, also with--all-featurescargo test --workspaceandcargo xtask policyChecklist
VICTORY_*variable and documented (none added)@LakshanSivakumar on GitHub · 2026-11-26 14:54 UTC · original · approved these changes
Nice diagnostic, thanks. Good that the record index stays out of the message so the tallies group.