startup: confirm command list slots from the 261000 table #3274

Manually merged
github merged 0 commits from github-bot/gh-3272 into gh-pr/3272/base 2026-11-28 05:08:32 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-11-28 04:35 UTC · original
lambirou:gdk/d3d12x-confirmed-slots → main · +58 −50 · 4 files · 3 commits · merged 2026-11-28 05:02 UTC

Problem

The command-list slot names were inferred from the calls observed at startup. The GXDK 261000 function table shows that three ranges were wrong:

  • slots 10 and 11 are Reset and ClearState, not unknown;
  • BeginQuery, EndQuery and ResolveQueryData are slots 28 to 30, not 56 to 58;
  • slots 56 to 58 are SetMarker, BeginEvent and EndEvent;
  • slot 139 is ResetX (the console reset path), while the base Reset is slot 10;
  • slot 148 is AllocateFromCommandAllocatorX.

The previous plus-four rule named 56 to 58 as query methods and left 10-11 and 27-31 unnamed.

Change

  • Update src/startup_stubs/command_list_slot_names.h with the confirmed public desktop names for slots 10-11, 28-31 and 56-58.
  • Keep the console-only names (59-60 and 62-149) out of the repository.
  • Name the console reset at slot 139 "Reset (console)" so it is distinct from the base Reset at 10.
  • Update tests/startup_command_list_slot_names.cpp and the comments in src/startup_stubs/d3d12_xs_device.cpp.
  • Correct the occlusion-query section of docs/startup-runtime.md.
  • Keep the query bindings behind X2W_D3D12_QUERY_SLOTS=1: the numbering is now confirmed, but the behavior remains diagnostic.

Evidence

The order was extracted with MSVC from the locally installed GXDK 261000 headers:

cl /c /d1reportSingleClassLayoutD3D12GraphicsCommandList8_Function_Table ...

The table has 150 slots (1200 bytes). The full local report is kept outside the repository; no SDK header, LIB or DLL is committed.

Validation

.\tools\dev.ps1
cmake --preset dev
cmake --build --preset dev --target startup_command_list_slot_names startup_list_queries
ctest --preset dev --no-tests=error -R '^startup_command_list_slot_names$|^startup_list_queries_(warp|default_warp_control)$'

Result: 3/3 passed on WARP (Microsoft Basic Render Driver), no hardware GPU required.

  • startup_command_list_slot_names: pass
  • startup_list_queries_warp: pass
  • startup_list_queries_default_warp_control: pass

Notes

This PR only changes the command-list name table and its documentation. It does not claim a console runtime oracle; the exact table is used locally as evidence. The callback/query behavior remains opt-in until a separate fixture confirms it on hardware or a devkit.

**@⁠lambirou** on GitHub · 2026-11-28 04:35 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3272) `lambirou:gdk/d3d12x-confirmed-slots` → `main` · +58 −50 · 4 files · 3 commits · merged 2026-11-28 05:02 UTC ## Problem The command-list slot names were inferred from the calls observed at startup. The GXDK 261000 function table shows that three ranges were wrong: - slots 10 and 11 are Reset and ClearState, not unknown; - BeginQuery, EndQuery and ResolveQueryData are slots 28 to 30, not 56 to 58; - slots 56 to 58 are SetMarker, BeginEvent and EndEvent; - slot 139 is ResetX (the console reset path), while the base Reset is slot 10; - slot 148 is AllocateFromCommandAllocatorX. The previous plus-four rule named 56 to 58 as query methods and left 10-11 and 27-31 unnamed. ## Change - Update src/startup_stubs/command_list_slot_names.h with the confirmed public desktop names for slots 10-11, 28-31 and 56-58. - Keep the console-only names (59-60 and 62-149) out of the repository. - Name the console reset at slot 139 "Reset (console)" so it is distinct from the base Reset at 10. - Update tests/startup_command_list_slot_names.cpp and the comments in src/startup_stubs/d3d12_xs_device.cpp. - Correct the occlusion-query section of docs/startup-runtime.md. - Keep the query bindings behind X2W_D3D12_QUERY_SLOTS=1: the numbering is now confirmed, but the behavior remains diagnostic. ## Evidence The order was extracted with MSVC from the locally installed GXDK 261000 headers: ~~~text cl /c /d1reportSingleClassLayoutD3D12GraphicsCommandList8_Function_Table ... ~~~ The table has 150 slots (1200 bytes). The full local report is kept outside the repository; no SDK header, LIB or DLL is committed. ## Validation ~~~powershell .\tools\dev.ps1 cmake --preset dev cmake --build --preset dev --target startup_command_list_slot_names startup_list_queries ctest --preset dev --no-tests=error -R '^startup_command_list_slot_names$|^startup_list_queries_(warp|default_warp_control)$' ~~~ Result: 3/3 passed on WARP (Microsoft Basic Render Driver), no hardware GPU required. - startup_command_list_slot_names: pass - startup_list_queries_warp: pass - startup_list_queries_default_warp_control: pass ## Notes This PR only changes the command-list name table and its documentation. It does not claim a console runtime oracle; the exact table is used locally as evidence. The callback/query behavior remains opt-in until a separate fixture confirms it on hardware or a devkit.
The GXDK 261000 ID3D12GraphicsCommandList8 table confirms the command-list order: Reset and ClearState at 10-11, the query methods at 28-30, SetPredication at 31, the desktop marker methods at 56-58, ExecuteIndirect at 61 and the console reset at 139. It also confirms AllocateFromCommandAllocatorX at 148.

Name the confirmed public methods and fix the query comments. The console-only rows stay outside the repository. Tests: startup_command_list_slot_names, startup_list_queries_warp and startup_list_queries_default_warp_control.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:35:46 +00:00
The query comment still cited ID3D12GraphicsCommandList6; the extracted 261000 table is GraphicsCommandList8.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-28 04:44 UTC · original · requested changes

Independent Release check on 250418b5: built startup_command_list_slot_names, startup_list_queries and d3d12_xs_shim. ctest --preset release --no-tests=error -R '^startup_command_list_slot_names$|^startup_list_queries_(warp|default_warp_control)$' passed 3/3 on Windows 11 build 26200 and inbox WARP. This verifies the names and opt-in/default forwarding behavior in the source-built fixture.

Please update the X2W_D3D12_QUERY_SLOTS=1 environment table row in docs/startup-runtime.md as well. It still calls the slot numbers hypothesised, contradicting the updated Occlusion queries section. Keep the diagnostic opt-in and its behavior caveat there. The allocator page-size comment in d3d12_xs_device.cpp belongs with the separate #3275 XMem change. Please drop it from this command-list PR.

**@⁠R0Y00** on GitHub · 2026-11-28 04:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3272#pullrequestreview-6095862674) · **requested changes** Independent Release check on `250418b5`: built `startup_command_list_slot_names`, `startup_list_queries` and `d3d12_xs_shim`. `ctest --preset release --no-tests=error -R '^startup_command_list_slot_names$|^startup_list_queries_(warp|default_warp_control)$'` passed 3/3 on Windows 11 build 26200 and inbox WARP. This verifies the names and opt-in/default forwarding behavior in the source-built fixture. Please update the `X2W_D3D12_QUERY_SLOTS=1` environment table row in `docs/startup-runtime.md` as well. It still calls the slot numbers hypothesised, contradicting the updated Occlusion queries section. Keep the diagnostic opt-in and its behavior caveat there. The allocator page-size comment in `d3d12_xs_device.cpp` belongs with the separate #3275 XMem change. Please drop it from this command-list PR.
Keep the query bindings diagnostic while naming the confirmed methods. Leave the allocator page-size note to the xmem change.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-28 05:01 UTC · original · approved these changes

Re-reviewed 7d3ae280. The environment table now agrees with the slot evidence and preserves the diagnostic scope; the unrelated allocator comment is gone. Independently rebuilt startup_command_list_slot_names, startup_list_queries and d3d12_xs_shim in Release. The slot-name, WARP query and default WARP refusal control passed 3/3. The docs-link check passed (659 links). The requested changes are resolved.

**@⁠R0Y00** on GitHub · 2026-11-28 05:01 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3272#pullrequestreview-6095925109) · **approved these changes** Re-reviewed `7d3ae280`. The environment table now agrees with the slot evidence and preserves the diagnostic scope; the unrelated allocator comment is gone. Independently rebuilt `startup_command_list_slot_names`, `startup_list_queries` and `d3d12_xs_shim` in Release. The slot-name, WARP query and default WARP refusal control passed 3/3. The docs-link check passed (659 links). The requested changes are resolved.
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 05:02 UTC · original

Merci pour la vérification. Les deux points sont traités sur la branche :\n\n- la ligne X2W_D3D12_QUERY_SLOTS=1 du tableau d'environnement décrit maintenant les slots 28 à 30 confirmés (commit 7d3ae280) ; le diagnostic reste opt-in et la réserve sur le comportement de forwarding reste en place ;\n- le commentaire d'allocateur page-size a été retiré de cette PR et reste dans #3275 (commit 6ed317e6).\n\nHead : 6ed317e6.

**@⁠lambirou** on GitHub · 2026-11-28 05:02 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3272#issuecomment-7234419332) Merci pour la vérification. Les deux points sont traités sur la branche :\n\n- la ligne X2W_D3D12_QUERY_SLOTS=1 du tableau d'environnement décrit maintenant les slots 28 à 30 confirmés (commit 7d3ae280) ; le diagnostic reste opt-in et la réserve sur le comportement de forwarding reste en place ;\n- le commentaire d'allocateur page-size a été retiré de cette PR et reste dans #3275 (commit 6ed317e6).\n\nHead : 6ed317e6.
github-bot changed target branch from main to gh-pr/3272/base 2026-11-28 05:08:31 +00:00
github manually merged commit 7d3ae280e1 into gh-pr/3272/base 2026-11-28 05:08:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.