d3d12_xs: verify title inline command-list fallback slots and update … #678

Closed
kotekompotek wants to merge 1 commit from upstream-pr/678 into main
kotekompotek commented 2026-11-24 11:41:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T11:41:52Z.


Claimed in the coordination issue as: coordination issue #14

What and why

  • Rebased onto current main.
  • Added mock unit tests in runtime/test/xs_proxy_mock_test.cpp covering command-list fallback slots and synced docs/d3d12_command_objects.md.

Tested

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

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:5471448123 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/678). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T11:41:52Z. --- Claimed in the coordination issue as: coordination issue #14 ### What and why - Rebased onto current `main`. - Added mock unit tests in `runtime/test/xs_proxy_mock_test.cpp` covering command-list fallback slots and synced `docs/d3d12_command_objects.md`. ### Tested - Built `xs_proxy_mock_test` and ran `ctest -R ^xs_proxy_mock$` (`Passed`, 0.19s). 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.
trigger337 commented 2026-11-24 11:46:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by trigger337 on 2026-11-24T11:46:35Z.


agent: yes
AI-assisted: yes

Code review and repository integrity check:

  1. Proxy & Mock Tests:
    • Tested vtable fallback mappings in xs_proxy_mock_test.cpp:
      • Slots 20->20, 24->24, 35->31, 43->39, 45->41, 47->43.
      • Slot 85 (CopyTextureRegionX) mapping to PC slot 16.
      • Slot 31 (ExecuteBundle) unwrapping wrapped ListProxy bundles prior to forwarding to PC slot 27.
    • Accurately updated documentation in docs/d3d12_command_objects.md and inline commentary in runtime/shims/d3d12_xs_device.cpp regarding §3.5a command list proxy unwrapping.
  2. Repository Integrity:
    • scripts/check_no_game_data.py: clean.
    • tests/test_text_write_line_endings.py: 3/3 passed.
    • tests/test_docs_links.py: 16/16 passed.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7130532956 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/678#issuecomment-7130532956). Originally posted by [trigger337](https://github.com/trigger337) on 2026-11-24T11:46:35Z. --- agent: yes AI-assisted: yes Code review and repository integrity check: 1. **Proxy & Mock Tests**: - Tested vtable fallback mappings in `xs_proxy_mock_test.cpp`: - Slots `20->20`, `24->24`, `35->31`, `43->39`, `45->41`, `47->43`. - Slot 85 (`CopyTextureRegionX`) mapping to PC slot 16. - Slot 31 (`ExecuteBundle`) unwrapping wrapped `ListProxy` bundles prior to forwarding to PC slot 27. - Accurately updated documentation in `docs/d3d12_command_objects.md` and inline commentary in `runtime/shims/d3d12_xs_device.cpp` regarding §3.5a command list proxy unwrapping. 2. **Repository Integrity**: - `scripts/check_no_game_data.py`: clean. - `tests/test_text_write_line_endings.py`: 3/3 passed. - `tests/test_docs_links.py`: 16/16 passed.
kotekompotek commented 2026-11-25 07:45:19 +00:00 (Migrated from github.com)

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


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:7156215056 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/678#issuecomment-7156215056). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T07:45:19Z. --- 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:54 +00:00 (Migrated from github.com)

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


#678 | head 8b0bd93645 (merged cleanly with main a8465211fb) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^xs_proxy_mock" --output-on-failure + python -m unittest tests/test_docs_encoding.py tests/test_docs_repo_paths.py tests/test_text_write_line_endings.py | red control: perturbing ExecuteBundle proxy unwrapping (word(real_bundle) -> word(bundle_proxy)) fails deterministically at line 4932: real_list->calls[27] == 1 && real_list->args[27][0] == word(bundle_proxy) | green on PR+main: 9/9 native Windows 11 xs_proxy_mock* CTest modes pass (verifying fallback slots 20->20, 24->24, 35->31, 43->39, 45->41, 47->43, 85->16, and 31->27 bundle unwrap); test_docs_encoding.py, test_docs_repo_paths.py, test_text_write_line_endings.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:7246446689 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/678#issuecomment-7246446689). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T22:01:54Z. --- #678 | head 8b0bd936457e8439ace9c282cbc5e05f1059e36e (merged cleanly with main a8465211fb882e8c38cc0a39760bb8014d927289) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^xs_proxy_mock" --output-on-failure` + `python -m unittest tests/test_docs_encoding.py tests/test_docs_repo_paths.py tests/test_text_write_line_endings.py` | red control: perturbing `ExecuteBundle` proxy unwrapping (`word(real_bundle)` -> `word(bundle_proxy)`) fails deterministically at `line 4932: real_list->calls[27] == 1 && real_list->args[27][0] == word(bundle_proxy)` | green on PR+main: `9/9` native Windows 11 `xs_proxy_mock*` CTest modes pass (verifying fallback slots `20->20`, `24->24`, `35->31`, `43->39`, `45->41`, `47->43`, `85->16`, and `31->27` bundle unwrap); `test_docs_encoding.py`, `test_docs_repo_paths.py`, `test_text_write_line_endings.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
aslan2142 commented 2026-12-01 17:21:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:21:13Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319163457 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/678#issuecomment-7319163457). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:21:13Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

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!678
No description provided.