Skip to content

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

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-list-slot80-dispatch
Nov 29, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-list-slot80-dispatch

Conversation

@kotekompotek

@kotekompotek kotekompotek commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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.

@lixonik lixonik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 abnalstlll-byte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
kotekompotek force-pushed the work/d3d12-xs-list-slot80-dispatch branch from 2b6f834 to 004fee4 Compare November 24, 2026 15:24
@aslan2142 aslan2142 added missing claim Needs a claim in #14 and removed missing claim Needs a claim in #14 labels Nov 24, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@kotekompotek
kotekompotek force-pushed the work/d3d12-xs-list-slot80-dispatch branch from 004fee4 to 0fcca5e Compare November 25, 2026 07:44
@kotekompotek

Copy link
Copy Markdown
Contributor Author

Rebased on current ubi/main (3f81d46) 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

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@zmasi

zmasi commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

OreoFR commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Verified by OreoFR

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

@OreoFR

OreoFR commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

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

lixonik commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

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
MoonEyes merged commit 01c555a into ProjectLeonida:main Nov 29, 2026
5 of 12 checks passed
@MoonEyes

Copy link
Copy Markdown
Collaborator

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 29c0ad9, 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants