Commit Graph

5 Commits

Author SHA1 Message Date
1b946497a9 Merge pull request #1061 from sodove/test/pipeline-library-host-adapter
Merging.

**Why merged:** TEST-PIPELINE-LIBRARY-HOST-ADAPTER, test-only: prints which host D3D12 adapter was actually used, so host-comparison results can be tied to a GPU. This was the first independent Windows build; KernelSmoker's review was static.

**Why it's good:** d3d12_pipeline_library and _host pass both plain and under validation, and print "host D3D12 adapter: NVIDIA GeForce RTX 4070 SUPER".

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 0f98d193c, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative with the rest of this batch on main 507029d1e: the repo-consistency set gives 578 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 317/318 with the usual 11 skips; the only failure is main's pre-existing d3d12_depth_resolve. All d3d12_* tests under validation: 119/120 with 0 VUIDs. The semantic suite has only the known environment-only failure. git merge-tree against current main 9c5e70661: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 19:02:50 -05:00
3ced903929 Report the native pipeline-library test adapter (TEST-PIPELINE-LIBRARY-HOST-ADAPTER) 2026-11-24 22:25:23 +05:00
0a81e16316 docs: clarify the pipeline library host comparison 2026-11-24 13:12:14 +05:00
14513af943 tests: separate pipeline library blob validation from host parity (TEST-PIPELINE-LIBRARY-OWN-FORMAT) 2026-11-24 12:04:30 +05:00
4abd83a06b d3d12: pipeline libraries answer their arguments as the host runtime does
d3d12_pipeline_library_host_test runs 46 CreatePipelineLibrary /
ID3D12PipelineLibrary1 calls that need no pipeline state object on the
Vulkan-backed device and on the host runtime, and compares each HRESULT and
what happened to the output pointer (74 values). On the host every call runs
in a child process with a fresh device: a call that faults there leaves the
runtime broken, and in-process the next call failed fast (0xC0000409). On main 25 values differed (RTX
3060, driver 610.88); now none do:

- A foreign, truncated or corrupt blob, the other device's serialized
  library, or a null pointer with a size is E_INVALIDARG, and the output
  pointer is left as it was (the layer answered DRIVER_VERSION_MISMATCH and
  nulled it). One of the layer's own blobs from another format version stays
  D3D12_ERROR_DRIVER_VERSION_MISMATCH.
- A pipeline library is a device child, not a pageable object:
  QueryInterface(ID3D12Pageable) is E_NOINTERFACE.
- Load*Pipeline with a null output is E_INVALIDARG, not E_POINTER.

Not compared, and printed as such: the serialized size and bytes (each
device's own), and the calls the host faults on (Serialize(nullptr, n),
StorePipeline with a null PSO, Load* with a null name or description), which
the layer answers E_INVALIDARG.

d3d12_pipeline_library_test expected DRIVER_VERSION_MISMATCH for a foreign or
tiny blob; it now expects E_INVALIDARG, and DRIVER_VERSION_MISMATCH for one of
ours from another version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:41:50 +01:00