runtime: forward Xbox DispatchL2 command signatures #3881
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!3881
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3879"
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-02 18:26 UTC · original
lambirou:runtime/dispatch-l2→main· +106 −5 · 4 files · 2 commits · merged 2026-12-02 23:07 UTCProblem
The title creates an Xbox indirect command signature with console argument type
0x69(DispatchL2).Its record is the 12-byte desktop Dispatch record plus a console flags word that desktop D3D12 does not
have, so
CreateCommandSignaturefailed and the stand-in answered with a placeholder signature thatrefused every dispatch.
Change
0x69argument with the Dispatch stride and translates it toD3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH, recording the signature as a dispatch of 12 bytes.Typemust all be zero.Any non-zero flag keeps the placeholder signature, so the dispatch is refused by name and leaves the
target unchanged.
0x69signature withflag
1, executes it, and checks the target stays unchanged.Validation
4/4 passed on WARP and on the RX 9060 XT. The Windows CI job replays the same selectors.
@R0Y00 on GitHub · 2026-12-02 19:11 UTC · original · requested changes
Independent MSVC Debug
ctest --preset dev --no-tests=error -V -j 1 -R '^startup_indirect_(dispatch|count_split)_(warp|hardware)$'passed 4/4 on Windows 11 build 26300, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 with the debug layer enabled. Type 105 executed and returned the expected fenced result. The matcher also accepts every flag value in the argument descriptor and drops those flags. The fixture uses a zero-initialized descriptor. Please state the flag value from the observation, restrict forwarding to flags whose behavior desktop Dispatch preserves, and add a control showing the unsupported flag case leaves the target unchanged.@R0Y00 on GitHub · 2026-12-02 23:07 UTC · original · approved these changes
The previous flag finding is resolved on
ad9f5a20. Only the captured zero-flag, single 12-byte DispatchL2 record is forwarded. The new nonzero-flag fixture stays on the placeholder path and leaves the fenced result at0x31415926. I independently ran Windows 11 build 26300 / MSVC Debugctest --preset dev --no-tests=error -V -j 1 -R '^startup_indirect_(dispatch|count_split)_(warp|hardware)$': 4/4 passed on inbox WARP10.0.26100.9818and RTX 4060 Laptop32.0.16.1656, debug layer enabled. Flipping onlyif (raw[i]) return falsetoreturn truebuilt, then failed both dispatch tests with0x31415f02instead of0x31415926. Restoring the source returned 4/4. GitHub Windows, Linux Python and gfx1013 checks passed, and the trial merge withmain517854f0is clean.