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

Closed
leonida/mandy
nicoco23 wants to merge 0 commits from policy-dll-spellings into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

nicoco23 commented 2026-11-24 20:16:42 +00:00

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

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 reviewed 2026-11-24 21:22:28 +00:00
espaciointoficial-sys left a comment
No description provided.
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

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.

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

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

#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

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

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 reviewed 2026-11-26 23:48:40 +00:00
OreoFR left a comment
No description provided.
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

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

**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

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.

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.
Sign in to join this conversation.
No description provided.