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

Merged
kotekompotek merged 1 commit from upstream-pr/687 into main 2026-11-29 08:10:47 +00:00
kotekompotek commented 2026-11-24 12:02:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T12:02:16Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5471740245 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T12:02:16Z. --- 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 commented 2026-11-24 12:09:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-24T12:09:14Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6038925732 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#pullrequestreview-6038925732). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-24T12:09:14Z. **Review:** COMMENTED --- 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 commented 2026-11-24 12:21:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T12:21:02Z.

Review: 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6039091492 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#pullrequestreview-6039091492). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T12:21:02Z. **Review:** 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T07:45:30Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7156218649 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/687#issuecomment-7156218649). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T07:45:30Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T22:01:53Z.


#687 | head 0fcca5ef26 (merged cleanly with main a8465211fb) | 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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246446420 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7246446420). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T22:01:53Z. --- #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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T00:13:59Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247968690 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7247968690). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T00:13:59Z. --- **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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T02:15:25Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249310574 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7249310574). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T02:15:25Z. --- **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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-29T02:56:03Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249736534 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7249736534). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-29T02:56:03Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T08:10:49Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7252937061 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/687#issuecomment-7252937061). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T08:10:49Z. --- 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 reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!687
No description provided.