runtime: pin the DLL spellings the unimplemented-import policy classifies (TEST-POLICY-DLL-SPELLINGS) #1206

Closed
nicoco23 wants to merge 4 commits from upstream-pr/1206 into main
nicoco23 commented 2026-11-24 20:16:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by nicoco23 on 2026-11-24T20:16:42Z.


Claimed in the coordination issue as: TEST-POLICY-DLL-SPELLINGS

#47 showed that the return class depends on the exact DLL spelling: the retail executable imports DStorageGetFactory from XCRDAPI.dll, which classify() did not know. That is fixed in main, but unimplemented_policy_test only checked dstorage_xs.dll, so dropping the xcrdapi.dll or dstorage.dll spelling broke nothing.

  • test: XCRDAPI.dll (retail casing) and dstorage.dll classify as HResult, and another xcrdapi.dll import stays Other.
  • xapu.dll and chad.dll were not in classify(), so under LEONIDA_UNIMPLEMENTED=fail an import of theirs without a shim returned 0 instead of E_NOTIMPL. classify() now names the nine functions whose shims return an HRESULT; XApuGetResultCount returns uint32_t and stays Other. The test checks all ten.
  • audio_hal_exe_calls.md no longer says none of the audio calls is on the list.

Tested: unimplemented_policy_test built and run through ctest on Windows (MSVC), passing. No game files, no GPU.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479623381 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1206). Originally posted by [nicoco23](https://github.com/nicoco23) on 2026-11-24T20:16:42Z. --- Claimed in the coordination issue as: TEST-POLICY-DLL-SPELLINGS #47 showed that the return class depends on the exact DLL spelling: the retail executable imports DStorageGetFactory from XCRDAPI.dll, which classify() did not know. That is fixed in main, but unimplemented_policy_test only checked dstorage_xs.dll, so dropping the xcrdapi.dll or dstorage.dll spelling broke nothing. - test: XCRDAPI.dll (retail casing) and dstorage.dll classify as HResult, and another xcrdapi.dll import stays Other. - xapu.dll and chad.dll were not in classify(), so under LEONIDA_UNIMPLEMENTED=fail an import of theirs without a shim returned 0 instead of E_NOTIMPL. classify() now names the nine functions whose shims return an HRESULT; XApuGetResultCount returns uint32_t and stays Other. The test checks all ten. - audio_hal_exe_calls.md no longer says none of the audio calls is on the list. Tested: unimplemented_policy_test built and run through ctest on Windows (MSVC), passing. No game files, no GPU. AI-assisted: yes (Claude Code).
espaciointoficial-sys commented 2026-11-24 21:22:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by espaciointoficial-sys on 2026-11-24T21:22:28Z.

Review: COMMENTED


Read through the diff (not built or run here). The ten names match the shims' return types in runtime/shims/xapu_chad.cpp on main (nine HRESULT, XApuGetResultCount returns uint32_t), and the new lines cover the retail XCRDAPI.dll casing and the PC dstorage.dll name. Looks good to me. Nits: the edited paragraph in docs/audio_hal_exe_calls.md is one ~200-character line while the file wraps at 120, and if #1144 merges first the registry comment should say xapu.cpp. AI-assisted review (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6047624568 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1206#pullrequestreview-6047624568). Originally posted by [espaciointoficial-sys](https://github.com/espaciointoficial-sys) on 2026-11-24T21:22:28Z. **Review:** COMMENTED --- Read through the diff (not built or run here). The ten names match the shims' return types in `runtime/shims/xapu_chad.cpp` on `main` (nine `HRESULT`, `XApuGetResultCount` returns `uint32_t`), and the new lines cover the retail `XCRDAPI.dll` casing and the PC `dstorage.dll` name. Looks good to me. Nits: the edited paragraph in `docs/audio_hal_exe_calls.md` is one ~200-character line while the file wraps at 120, and if #1144 merges first the registry comment should say `xapu.cpp`. AI-assisted review (Claude Code).
nicoco23 commented 2026-11-24 21:36:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by nicoco23 on 2026-11-24T21:36:32Z.


Thanks. Fixed the long line: the paragraph is rewrapped at 120 columns in ef55ee582, same words. I will update the registry comment to name xapu.cpp as soon as #1144 merges, so it is not wrong in the meantime.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145155182 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1206#issuecomment-7145155182). Originally posted by [nicoco23](https://github.com/nicoco23) on 2026-11-24T21:36:32Z. --- Thanks. Fixed the long line: the paragraph is rewrapped at 120 columns in ef55ee582, same words. I will update the registry comment to name xapu.cpp as soon as #1144 merges, so it is not wrong in the meantime.
nicoco23 commented 2026-11-26 16:23:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by nicoco23 on 2026-11-26T16:23:32Z.


#1144 is merged; its queue reached main as xapu_queue.cpp. The registry comment now names the files gta6rt actually links: xapu_queue.cpp for xapu.dll and xapu_chad.cpp for chad.dll (xapu.cpp and chad.cpp on main are the older shims that only xapu_test and chad_test build). The return types the test pins are unchanged.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7197583869 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1206#issuecomment-7197583869). Originally posted by [nicoco23](https://github.com/nicoco23) on 2026-11-26T16:23:32Z. --- #1144 is merged; its queue reached main as `xapu_queue.cpp`. The registry comment now names the files gta6rt actually links: `xapu_queue.cpp` for xapu.dll and `xapu_chad.cpp` for chad.dll (`xapu.cpp` and `chad.cpp` on main are the older shims that only xapu_test and chad_test build). The return types the test pins are unchanged.
nicoco23 commented 2026-11-26 19:40:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by nicoco23 on 2026-11-26T19:40:41Z.


Ready for merge from my side: the review note is addressed (registry comment names xapu_queue.cpp and xapu_chad.cpp), no conflict with main. It would also free a slot for TOOLS-DSTORAGE-HISTORY-JOBS (see #1608).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7201846170 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1206#issuecomment-7201846170). Originally posted by [nicoco23](https://github.com/nicoco23) on 2026-11-26T19:40:41Z. --- Ready for merge from my side: the review note is addressed (registry comment names xapu_queue.cpp and xapu_chad.cpp), no conflict with main. It would also free a slot for TOOLS-DSTORAGE-HISTORY-JOBS (see #1608).
OreoFR commented 2026-11-26 23:48:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-26T23:48:40Z.

Review: COMMENTED


Read through on main d1dff7949 (static review, no build).

  • The new checks match main's classification: is_audio_hal_hresult in runtime/shims/registry.cpp already classes the xapu.dll and chad.dll functions as HRESULT, with XApuGetResultCount as the exception. classify_import lowercases the DLL name, so XCRDAPI.dll resolves the same way.
  • The doc sentence "all four are on that list now" holds: AcpHalCreate, AcpHalAllocateShapeContexts and ApuCreateHeap are in the acphal.dll branch, and XApuDequeueResult is in the xapu.dll one.
  • Nit: the comment added in registry.cpp repeats its last sentence without a space: ... XApuGetResultCount returns uint32_t.XApuGetResultCount returns uint32_t.

Looks good to me apart from that. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6081664539 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1206#pullrequestreview-6081664539). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-26T23:48:40Z. **Review:** COMMENTED --- Read through on `main` `d1dff7949` (static review, no build). - The new checks match `main`'s classification: `is_audio_hal_hresult` in `runtime/shims/registry.cpp` already classes the `xapu.dll` and `chad.dll` functions as `HRESULT`, with `XApuGetResultCount` as the exception. `classify_import` lowercases the DLL name, so `XCRDAPI.dll` resolves the same way. - The doc sentence "all four are on that list now" holds: `AcpHalCreate`, `AcpHalAllocateShapeContexts` and `ApuCreateHeap` are in the `acphal.dll` branch, and `XApuDequeueResult` is in the `xapu.dll` one. - Nit: the comment added in `registry.cpp` repeats its last sentence without a space: `... XApuGetResultCount returns uint32_t.XApuGetResultCount returns uint32_t.` Looks good to me apart from that. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-28 21:47:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:47:36Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head ef12c7556; green run in a merge package of 2 PRs, no new ctest failure vs main
  • Test: ctest -R ^unimplemented_policy$
  • Red on main: OK
  • Green with the PR: OK
  • Verdict: NO RED (against main the PR only adds a comment to registry.cpp, with a duplicated sentence ("XApuGetResultCount returns uint32_t."); its tests already pass on main)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246276450 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1206#issuecomment-7246276450). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:47:36Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `ef12c7556`; green run in a merge package of 2 PRs, no new ctest failure vs main - Test: `ctest -R ^unimplemented_policy$` - Red on main: OK - Green with the PR: OK - Verdict: NO RED (against main the PR only adds a comment to registry.cpp, with a duplicated sentence ("XApuGetResultCount returns uint32_t."); its tests already pass on main) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 17:22:19 +00:00 (Migrated from github.com)

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


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:7319192351 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1206#issuecomment-7319192351). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:22:19Z. --- 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!1206
No description provided.