Report the native D3D12 pipeline library test adapter (TEST-PIPELINE-LIBRARY-HOST-ADAPTER) #1061
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1061
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1061/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCClaimed as
TEST-PIPELINE-LIBRARY-HOST-ADAPTERin #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
--host-stepcontrol emitted only the result record.AI-assisted: yes, OpenAI Codex.
@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.
@sodove on GitHub · 2026-11-24 18:46 UTC · original
Verified
3ced9039on 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.LEONIDA_VK_DEVICEThe 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).
@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 main507029d1e: 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 main9c5e70661: 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).