startup: guard out-of-range descriptor heap type in slot 15 GetDescriptorHandleIncrementSize #1952
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1959"
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-24T22:09:32Z.
Part of #870
What this unblocks: startup device slot 15 (
GetDescriptorHandleIncrementSize) answers 0 for heap types desktop does not have, instead of tripping the debug layer, so startup gets past descriptor heap setup.Changes:
src/startup_stubs/d3d12_xs_device.cpp: new slot 15 handler. Valid types are forwarded as before. Out-of-range types are logged once and return 0.src/startup_stubs/descriptor_heap_type.h: valid desktop heap type check.tests/startup_descriptor_heap_type_check.cpp,tests/startup_descriptor_increment.cpp: tests for both.Verification:
git diff --check origin/main: clean (executed locally on Linux).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:19:12Z.
Review: CHANGES_REQUESTED
The slot handler keeps normal D3D12 values on the existing forward path. I found two new test sources, but neither is registered in CMake. Please wire the helper and its negative controls, and register the guest-device comparison with the existing WARP/hardware conventions. That should exercise all four native increments and the zero result for an out-of-range UINT on the actual slot.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:48:47Z.
Review: APPROVED
The missing CMake registrations are in place. On
5ac154f9the Windows Release run passed all five cases, including WARP, physical NVIDIA and both control tests.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:53:30Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
5ac154f9ffℹ️ 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-24T22:48:45Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
5ac154fℹ️ 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 chatgpt-codex-connector[bot] on 2026-11-24T22:53:30Z.
Code review location:
tests/startup_descriptor_increment.cpp; line 91If slot 15 regresses to the original forwarder, the configured
X2W_D3D12_DEBUG=1(CMakeLists.txt:426-427) causesforward_slot()to invokecheck_device(), which logs and clears the debug queue before returning (src/startup_stubs/d3d12_xs_device.cpp:359,636). The invalid types still return 0, and this loop sees an empty queue, so the integration test reports success for the exact pre-fix behavior it claims to reject. Observe errors through a message callback or the shim log, and add a forwarding negative control, following the new-fixture confirmation requirement inAGENTS.md, to demonstrate that the pre-fix behavior fails.AGENTS.md reference: AGENTS.md:L192-L192
Useful? React with 👍 / 👎.