d3d12_xs: map console list slot 80 DispatchX to PC Dispatch slot 14 #687

Merged
leonida/mandy
kotekompotek merged 1 commit from work/d3d12-xs-list-slot80-dispatch into main 2026-11-29 08:10:47 +00:00

Pull request successfully merged and closed

kotekompotek commented 2026-11-24 12:02:16 +00:00

Claimed in the coordination issue as: coordination issue #14

What and why

  • Rebased onto current main.
  • Mapped console command-list slot 80 (DispatchX) to PC ID3D12GraphicsCommandList::Dispatch (slot 14) in runtime/shims/d3d12_xs_device.h.
  • Added mock coverage in runtime/test/xs_proxy_mock_test.cpp and synced docs/d3d12_command_objects.md.

Tested

  • Built xs_proxy_mock_test and ran ctest -R ^xs_proxy_mock$ (Passed, 0.10s).

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
Claimed in the coordination issue as: coordination issue #14 ### What and why - Rebased onto current `main`. - Mapped console command-list slot `80` (`DispatchX`) to PC `ID3D12GraphicsCommandList::Dispatch` (slot `14`) in `runtime/shims/d3d12_xs_device.h`. - Added mock coverage in `runtime/test/xs_proxy_mock_test.cpp` and synced `docs/d3d12_command_objects.md`. ### Tested - Built `xs_proxy_mock_test` and ran `ctest -R ^xs_proxy_mock$` (`Passed`, 0.10s). GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
lixonik reviewed 2026-11-24 12:09:14 +00:00
lixonik left a comment
No description provided.
Independent native Windows build of the standalone `xs_proxy_mock_test` from a full checkout at `2b6f834e`. The PR executable exits 0. Compiling the same test source against `main` at `21625bca` exits 1 specifically at the new check that the mock PC Dispatch slot was called. This confirms the new assertion exercises the changed forwarding path. This verifies the forwarding and three dimension arguments in the mock. AI-assisted, synthetic COM objects only.
abnalstlll-byte approved these changes 2026-11-24 12:21:02 +00:00
abnalstlll-byte left a comment

Reviewed and verified mapping of console command list slot 80 DispatchX to PC Dispatch slot 14. Forwarding table updated and verified with unit test in xs_proxy_mock_test.cpp. Clean and correct, approved.

Reviewed and verified mapping of console command list slot 80 DispatchX to PC Dispatch slot 14. Forwarding table updated and verified with unit test in xs_proxy_mock_test.cpp. Clean and correct, approved.
kotekompotek commented 2026-11-25 07:45:30 +00:00

Rebased on current ubi/main (3f81d46ac) and pushed. Conflicts resolved against the newer main changes; test suite for the touched area passes locally (xs_proxy_mock_test PASS on Windows; the int64-atomics semantic tests 6/6 and test_rdna2_decode 21/21 where applicable).

AI-assisted: yes

Rebased on current ubi/main (3f81d46ac) and pushed. Conflicts resolved against the newer main changes; test suite for the touched area passes locally (xs_proxy_mock_test PASS on Windows; the int64-atomics semantic tests 6/6 and test_rdna2_decode 21/21 where applicable). AI-assisted: yes
zmasi commented 2026-11-28 22:01:53 +00:00

#687 | head 0fcca5ef2667723d47fe4ca787001d067e97177f (merged cleanly with main a8465211fb882e8c38cc0a39760bb8014d927289) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^(xs_proxy_mock.*|d3d12_compute)$" --output-on-failure (LEONIDA_VK_VALIDATION=1) + python -m unittest tests/test_docs_encoding.py tests/test_docs_repo_paths.py | red on main: xs_proxy_mock fails at real_list->calls[14] == 1 (console command-list slot 80 DispatchX unmapped in main's d3d12_xs_device.h) | green on PR+main: 10/10 CTests pass (9/9 xs_proxy_mock* modes routing slot 80 (16, 2, 1, 0x8020) to PC Dispatch slot 14 (16, 2, 1), plus d3d12_compute on RTX 3090 with 0 Khronos validation errors); test_docs_encoding.py, test_docs_repo_paths.py, and check_no_game_data.py 0 violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

#687 | head 0fcca5ef2667723d47fe4ca787001d067e97177f (merged cleanly with main a8465211fb882e8c38cc0a39760bb8014d927289) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^(xs_proxy_mock.*|d3d12_compute)$" --output-on-failure` (`LEONIDA_VK_VALIDATION=1`) + `python -m unittest tests/test_docs_encoding.py tests/test_docs_repo_paths.py` | red on main: `xs_proxy_mock` fails at `real_list->calls[14] == 1` (console command-list slot `80` `DispatchX` unmapped in `main`'s `d3d12_xs_device.h`) | green on PR+main: `10/10` CTests pass (`9/9` `xs_proxy_mock*` modes routing slot `80` `(16, 2, 1, 0x8020)` to PC `Dispatch` slot `14` `(16, 2, 1)`, plus `d3d12_compute` on RTX 3090 with `0` Khronos validation errors); `test_docs_encoding.py`, `test_docs_repo_paths.py`, and `check_no_game_data.py` `0` violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
OreoFR commented 2026-11-29 00:13:59 +00:00

Verified by OreoFR

  • Base: main a8465211f + PR head 0fcca5ef2 (merged with --no-ff, no conflict; tested in a package with other PRs that share no file with it)
  • Test: ctest -R ^xs_proxy_mock$ (red: the PR's test with shims/d3d12_xs_device.h from main)
  • Red on main: fails at line 4898 (real_list->calls[14] == 1: slot 80 DispatchX does not reach PC Dispatch)
  • Green with the PR: passes; full ctest on the package: no new failure from this PR (the only other new failure there, gta6rt_no_tls_callbacks, comes from #680)
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11
  • Note: shares runtime/shims/d3d12_xs_device.h and runtime/test/xs_proxy_mock_test.cpp with the open #2566; a rebase may be needed if #2566 lands first.

AI-assisted (Claude Code, Claude Opus 5.5).

**Verified by OreoFR** - Base: main `a8465211f` + PR head `0fcca5ef2` (merged with --no-ff, no conflict; tested in a package with other PRs that share no file with it) - Test: `ctest -R ^xs_proxy_mock$` (red: the PR's test with shims/d3d12_xs_device.h from main) - Red on main: fails at line 4898 (`real_list->calls[14] == 1`: slot 80 DispatchX does not reach PC Dispatch) - Green with the PR: passes; full ctest on the package: no new failure from this PR (the only other new failure there, `gta6rt_no_tls_callbacks`, comes from #680) - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 - Note: shares `runtime/shims/d3d12_xs_device.h` and `runtime/test/xs_proxy_mock_test.cpp` with the open #2566; a rebase may be needed if #2566 lands first. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-29 02:15:25 +00:00

Verified by OreoFR: link check

  • main 59e65849b + this PR (head 0fcca5ef2, the head verified earlier) merged with --no-ff, built without the XMA decoder (LEONIDA_CARGO=OFF, no LEONIDA_XMA2_DECODER_LIB: configure reports the XMA2 and Opus decoders not built), RelWithDebInfo, Ninja, MSVC 19.44.35230 (VS 2022 BuildTools), LEONIDA_REQUIRE_VULKAN=ON
  • gta6rt.exe links; imports unchanged vs main built the same way (dumpbin /imports: 25 DLLs, 655 functions, no WS2_32)
  • gta6rt was not launched.

AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.

**Verified by OreoFR**: link check - main `59e65849b` + this PR (head `0fcca5ef2`, the head verified earlier) merged with --no-ff, built without the XMA decoder (`LEONIDA_CARGO=OFF`, no `LEONIDA_XMA2_DECODER_LIB`: configure reports the XMA2 and Opus decoders not built), RelWithDebInfo, Ninja, MSVC 19.44.35230 (VS 2022 BuildTools), `LEONIDA_REQUIRE_VULKAN=ON` - `gta6rt.exe` links; imports unchanged vs main built the same way (`dumpbin /imports`: 25 DLLs, 655 functions, no WS2_32) - gta6rt was not launched. AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.
lixonik commented 2026-11-29 02:56:03 +00:00

Retested the current head 0fcca5ef2667723d47fe4ca787001d067e97177f merged into main c8bf0e7b65. The native xs_proxy_mock_test passed on Windows 10/MSVC 19.29 using the pinned Agility headers. Rebuilding the identical fixture with main's proxy header made it fail at the assertion that PC slot 14 was called. The updated head still forwards DispatchX and its three dimensions through the proxy. Synthetic COM mocks only.

AI-assisted. Codex (GPT-6).

Retested the current head `0fcca5ef2667723d47fe4ca787001d067e97177f` merged into `main` `c8bf0e7b65`. The native `xs_proxy_mock_test` passed on Windows 10/MSVC 19.29 using the pinned Agility headers. Rebuilding the identical fixture with main's proxy header made it fail at the assertion that PC slot 14 was called. The updated head still forwards DispatchX and its three dimensions through the proxy. Synthetic COM mocks only. AI-assisted. Codex (GPT-6).
MoonEyes commented 2026-11-29 08:10:49 +00:00

Merged after OreoFR's red/green check (check: green with this PR merged onto main, red without it; gta6rt.exe still links with unchanged imports when the PR touches the runtime) and a re-check here: no conflict with main 29c0ad95c, same head as checked, not frozen, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on main or Vulkan).

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

Merged after **OreoFR**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7249310574): green with this PR merged onto `main`, red without it; `gta6rt.exe` still links with unchanged imports when the PR touches the runtime) and a re-check here: no conflict with `main` 29c0ad95c, same head as checked, not frozen, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on `main` or Vulkan). _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No description provided.