shader: validate ACCC parts through DXIL retarget #3953
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3953
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3951"
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?
@lambirou on GitHub · 2026-12-03 16:52 UTC · original
lambirou:codex/aco-container-support→main· +644 −47 · 6 files · 2 commits · openProblem
The GDK
xdxccompiler can append anACCCcompute part to an otherwise normalDXIL container. The existing retarget path treats unknown parts as malformed or
passes them to desktop validation, which rejects the custom FourCC. This prevents
source-built ACO containers from being inspected and retargeted reproducibly.
Change
ACCC/FSPXversion-1 compute layout: header, sectioncount, declared size, ranges, overlaps and the single tag-6 code section.
ACCCpayload byte for byte while retargeting the DXILprogram and rewriting its triple.
with
ACCComitted, recordingaco_parts_omitted: ["ACCC"].ACCCarchive separate from that signed DXIL view. Thearchive retains its original payload with a zero digest and reports
signed: false; the signed view reportssigned_view: trueandsigning_scope: "dxil-view".unchanged, and omit
ACCCexplicitly from the desktop compute-catalogue export.Refs #3678.
Validation
Windows development environment:
ACCCcontrols and the mock signer boundary.xdxc -noprecompilecompute container retained a 672-byteACCCpayload after retarget. Its saved archive has a zero digest and is not desktop-ready; the separate 3,684-byte signed DXIL view validated and created a WARP PSO with0x00000000.signing_scope: "container".Limits
ACCC/FSPXform is supported.ACGSparts are not parsed.@R0Y00 on GitHub · 2026-12-03 17:22 UTC · original · requested changes
The pure-Python DXIL retarget and GDK corpus controls passed, as did the eight DXBC offset and ten FFX profile cases. The remaining issue is the saved artifact's signing status. sign_container sends only the ACCC-free bytes to root_probe, then rebuilds the larger container and copies that digest into it. Both CLI and PE-mode reports mark the larger saved file signed, although the full container was never signed by the probe and the PR documents that WARP rejects the full file.
Please report the signing scope at the saved-artifact boundary. A preserved ACCC archive can have a separate signed DXIL view, but the archive itself should not be marked signed or be reported as the validated desktop file. Keep the existing no-ACCC output behavior and add a control that distinguishes the signed view from the preserved archive.
2999c7204ato1ba8b0326b@lambirou on GitHub · 2026-12-03 17:40 UTC · original
Review feedback addressed in
1ba8b0326. The saved ACCC archive now has a zero digest andsigned: false; the separate signed DXIL view carriessigned_view: trueandsigning_scope: "dxil-view". CLI and PE reports expose the saved-artifact fields, and controls cover both the ACO archive and the unchanged no-ACCC path. Tests: DXIL retarget, GDK corpus, 8 DXBC offsets, 10 FFX profiles and 287/1,012 Markdown links all pass.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.