Report the native D3D12 pipeline library test adapter (TEST-PIPELINE-LIBRARY-HOST-ADAPTER) #1061

Manually merged
github merged 1 commit from gh-pr/1061/head into gh-pr/1061/base 2026-11-26 09:35:59 +00:00
Owner

@⁠sodove on GitHub · 2026-11-24 17:28 UTC · original
sodove:test/pipeline-library-host-adapter → main · +18 −0 · 1 files · 1 commits · merged 2026-11-25 00:02 UTC

Claimed as TEST-PIPELINE-LIBRARY-HOST-ADAPTER in #14. Related discussion: host adapter verification in #533.

What and why

The pipeline-library parity test prints the Vulkan GPU. Windows chooses the native host independently when the test calls D3D12CreateDevice(nullptr, ...). On a multi-GPU machine the two runs in the #533 discussion initially measured the same host adapter, which took an external probe to establish.

Print the name and LUID of the main process's native device once, immediately after creation. Resolve the name through DXGI using the LUID returned by that device. A failed description lookup still reports the LUID. The child processes keep their existing machine-readable output.

Tested

  • Windows 11 build 26100.7623, MSVC 19.44, RelWithDebInfo. The stock test on an NVIDIA RTX 5070 Ti (610.74) printed one host adapter line and completed 74 comparisons with zero mismatches. Its --host-step control emitted only the result record.
  • A separate local probe exercised the same reporter with the default D3D12 device and an explicitly created WARP device. Both name/LUID pairs matched independent DXGI enumeration and differed from one another. Hardware coverage was one physical GPU.
  • Translator semantic suite on the shared base: 6,168 tests across 470 files, zero failing files.
  • The game-data check passed for the changed source file.

AI-assisted: yes, OpenAI Codex.

**@⁠sodove** on GitHub · 2026-11-24 17:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1061) `sodove:test/pipeline-library-host-adapter` → `main` · +18 −0 · 1 files · 1 commits · merged 2026-11-25 00:02 UTC Claimed as `TEST-PIPELINE-LIBRARY-HOST-ADAPTER` in [#14](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). Related discussion: [host adapter verification in #533](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/533). ### What and why The pipeline-library parity test prints the Vulkan GPU. Windows chooses the native host independently when the test calls `D3D12CreateDevice(nullptr, ...)`. On a multi-GPU machine the two runs in the #533 discussion initially measured the same host adapter, which took an external probe to establish. Print the name and LUID of the main process's native device once, immediately after creation. Resolve the name through DXGI using the LUID returned by that device. A failed description lookup still reports the LUID. The child processes keep their existing machine-readable output. ### Tested - Windows 11 build 26100.7623, MSVC 19.44, RelWithDebInfo. The stock test on an NVIDIA RTX 5070 Ti (610.74) printed one host adapter line and completed 74 comparisons with zero mismatches. Its `--host-step` control emitted only the result record. - A separate local probe exercised the same reporter with the default D3D12 device and an explicitly created WARP device. Both name/LUID pairs matched independent DXGI enumeration and differed from one another. Hardware coverage was one physical GPU. - Translator semantic suite on the shared base: 6,168 tests across 470 files, zero failing files. - The game-data check passed for the changed source file. AI-assisted: yes, OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:35:57 +00:00
github manually merged commit 3ced903929 into gh-pr/1061/base 2026-11-26 09:35:59 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 17:38 UTC · original · approved these changes

Static review: resolving the created host device’s GetAdapterLuid through IDXGIFactory4::EnumAdapterByLuid correctly associates the reported DXGI description with that D3D12 device, instead of assuming the Vulkan-selected GPU is the same adapter. The LUID is still printed if name lookup fails, and this diagnostic remains in the parent process rather than changing child machine-readable output. No-game-data, diff, and merge-tree checks passed. This Windows-only C++ test could not be built or run on my Linux host; the Windows build and adapter/WARP probes described in the PR are author-reported, not independently reproduced.

**@⁠KernelSmoker** on GitHub · 2026-11-24 17:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1061#pullrequestreview-6044326870) · **approved these changes** Static review: resolving the created host device’s GetAdapterLuid through IDXGIFactory4::EnumAdapterByLuid correctly associates the reported DXGI description with that D3D12 device, instead of assuming the Vulkan-selected GPU is the same adapter. The LUID is still printed if name lookup fails, and this diagnostic remains in the parent process rather than changing child machine-readable output. No-game-data, diff, and merge-tree checks passed. This Windows-only C++ test could not be built or run on my Linux host; the Windows build and adapter/WARP probes described in the PR are author-reported, not independently reproduced.
Author
Owner

@⁠sodove on GitHub · 2026-11-24 18:46 UTC · original

Verified 3ced9039 on a Windows 11 26100.7623 machine with two physical GPUs enabled: Ryzen 5 9600X integrated Radeon (AMD 26.11.2) and RTX 5070 Ti (610.74). Built the unmodified parity test with MSVC 19.44, RelWithDebInfo.

Vulkan device selected via LEONIDA_VK_DEVICE Native D3D12 adapter printed by the test Result
Integrated Radeon RTX 5070 Ti 74 compared, 0 mismatches
RTX 5070 Ti RTX 5070 Ti 74 compared, 0 mismatches

The host line appeared once in each run and reported the same LUID. The Vulkan device line changed as requested. The Radeon run exercises the physical two-adapter case that motivated this diagnostic: selecting the iGPU for the layer leaves the native default host on the discrete GPU.

No game files. AI-assisted: yes (OpenAI Codex).

**@⁠sodove** on GitHub · 2026-11-24 18:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1061#issuecomment-7141131543) Verified `3ced9039` on a Windows 11 26100.7623 machine with two physical GPUs enabled: Ryzen 5 9600X integrated Radeon (AMD 26.11.2) and RTX 5070 Ti (610.74). Built the unmodified parity test with MSVC 19.44, RelWithDebInfo. | Vulkan device selected via `LEONIDA_VK_DEVICE` | Native D3D12 adapter printed by the test | Result | |---|---|---| | Integrated Radeon | RTX 5070 Ti | 74 compared, 0 mismatches | | RTX 5070 Ti | RTX 5070 Ti | 74 compared, 0 mismatches | The host line appeared once in each run and reported the same LUID. The Vulkan device line changed as requested. The Radeon run exercises the physical two-adapter case that motivated this diagnostic: selecting the iGPU for the layer leaves the native default host on the discrete GPU. No game files. AI-assisted: yes (OpenAI Codex).
Author
Owner

@⁠QemmHD on GitHub · 2026-11-25 00:02 UTC · original

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

**@⁠QemmHD** on GitHub · 2026-11-25 00:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1061#issuecomment-7148077310) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.