Commit Graph

10 Commits

Author SHA1 Message Date
15d9ec9715 d3d12_xs_surface: guard GUID negative bounds, SCARAB BOM/CRLF, and bad paths 2026-11-26 19:39:01 +08:00
7853f64af5 d3d12_xs_surface: SDK discovery skips a newer driver-kit include folder without the D3D headers 2026-11-24 09:26:11 +05:30
f9d75c1859 Merge pull request #3520 from Kam471 2026-11-22 17:02:28 -05:00
7a0030564d Add a runner-completeness meta-test and route the d3d12_xs_surface runner through its real defs 2026-11-22 21:56:40 +01:00
9be4e17afa docs: correct console command-list IID status (D3D-369)
The 1.0.2.1 package has 16 DLLs and no D3D12 runtime DLL; gameos.xvd is encrypted with no plaintext D3D12 strings, and the executable that would call QueryInterface is absent. SCARAB's provenance note also says the runtime does not export ID3D12ConsComputeCommandList/6/8 or ID3D12ConsCopyCommandList6, so no export table can supply them. Correct the surface/export-contract rows and lock the negative in the checker and test. All four stay unknown until the title's QueryInterface is logged.
2026-11-22 20:44:56 +00:00
d3c587f3fd d3d12_xs_surface: compare SDK include versions numerically 2026-11-22 17:57:33 +01:00
31cd7326c9 test_d3d12_xs_surface: run the SCARAB cross-check as a script too
The docstring says the cross-check runs when SCARAB_REF points at a
checkout, but the __main__ block (how CI and CONTRIBUTING run the file,
python -I tests/test_<name>.py) never called it, so the file printed
"ok" with SCARAB_REF set to anything. Run check_scarab there when
SCARAB_REF is set, like the SDK check above it, and say when it is
skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:57:46 +01:00
02c74f1e35 d3d12_xs_surface.py: accept an SDK um path with a trailing separator
find_sdk_include() tells a WINDOWS_SDK_INCLUDE that names the um folder
from one that names the version folder by the path's basename. For
"...\um\" the basename is empty, so it looked for "...\um\um", and
--sdk skipped the check (--require-sdk failed) although the headers were
there. The path is normalized first. A synthetic test tries all four
spellings against a temporary folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:03:17 -03:00
711d386320 CI, tests, tools: fix file handle leak, skip without pytest, build GPU tools on Linux
- tools/awc_opus.py: wrap export_bank file read in a with-statement to
  close the handle promptly instead of relying on GC (fixes ResourceWarning
  seen in test output).

- tests/test_amd_swizzle.py: use raise unittest.SkipTest instead of
  import pytest; pytest.skip so the test works under both python -I and
  unittest discovery when numpy is absent. No pytest dependency needed.

- tests/test_d3d12_xs_surface.py: same treatment for the two conditional
  skips (Windows SDK headers, SCARAB_REF). The test still skips gracefully
  without pytest installed.

- .github/workflows/runtime.yml: add a linux-gpu-tools job that installs
  libvulkan-dev, builds all GPU test tools with cmake + ninja + g++, and
  verifies every tool binary exists. Rename the Windows job from 'build' to
  'windows' to disambiguate. This catches build regressions in GPU tool code
  that only manifest on Linux.

AI-assisted.
2026-11-21 21:10:01 +01:00
b406270b53 Docs: measured d3d12_xs surface from SCARAB
Records the 116-export contract (23 functions + 93 GUIDs), the 28 D3D12 IIDs and the 10 console-only IIDs from SCARAB, with per-item provenance and file:line references. The IID block ordinals 72-99 are derived from the alphabetical export order anchored by IID_ID3D12Debug @76. Includes a checker/test that re-verifies the 116-slot arithmetic and the 83 standard GUIDs against the Windows SDK.
2026-11-21 18:23:05 +00:00