shader: name the root type of refused FSPX metadata records #85
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T13:52:09Z.
What 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)Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T14:54:46Z.
Review: APPROVED
Nice diagnostic, thanks. Good that the record index stays out of the message so the tallies group.