startup: validate command signature in command-list slot 41 (Part of #870) #2011
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2018"
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 R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T23:11:17Z.
Part of #870
What this unblocks: a title that passes a console-only indirect argument type (0x69, stride 12) to device slot 41 no longer triggers the failed desktop
CreateCommandSignaturecall and debug-layer message 743; the placeholder result stays the same.Changes:
src/startup_stubs/command_signature_filter.h(new): recognises an argument type outside the desktop enumeration.src/startup_stubs/d3d12_xs_device.cpp: slot 41 checks the type before callingCreateCommandSignature.tests/startup_command_signature.cpp,tests/startup_command_signature_filter_check.cpp(new, registered in CMake).Verification:
git merge-tree --write-tree origin/main tmp-rbdl743is clean (origin/main66423e45, branch based on82f0db65, 114 commits behind).71d4bff1(Build 26100, MSVC 14.44.35207),x2w_pipe.py win2025 2018 --targets startup_command_signature_filter_check,startup_command_signature,d3d12_xs_shim --regex startup_command_signature: PASS.--preset dev):ctest -R startup_command_signature: 3/5 passed (filter test and both negative controls).--preset release):ctest -R startup_command_signature: 3/5 passed (same three).startup_command_signature_warpandstartup_command_signature_hardwarewere skipped on this node (return code 77, capability). The debug-layer check for message 743 therefore did not run here.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:18:55Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
71d4bff162ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:13:32Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
71d4bffℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:29:04Z.
The early filter now recognises only the observed 0x69 type. Valid later desktop types such as INCREMENTING_CONSTANT reach the native device. The existing fallback for an unknown type stays after a native failure. Also clear message 743 from the direct control before creating the wrapper, since both may share the same desktop device. The Release fixture passed all five cases on WARP/RTX, with a missing log treated as a failure. Microsoft ExecuteIndirect argument types
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:18:56Z.
Code review location:
tests/startup_command_signature.cpp; line 126When this control succeeds on a Windows host with the debug layer,
stored_message()leaves ID 743 in the device's info queue. D3D12 devices are singletons per adapter, so the subsequentD3D12XboxCreateDevice(adapter.Get(), ...)reuses the still-livedesktopdevice. The valid DRAW_INDEXED call then reachescreate_slot()andcheck_device(), which copies that retained control error intolog_path, causing the valid-caselogged_messages()check to fail with exit code 11 even though the wrapper generated no error. Clear the control's stored messages before exercising the wrapper, or isolate the control device.Useful? React with 👍 / 👎.