runtime: log one adapter-facts line per adapter at device creation #3680
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3680
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3678"
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?
@legacy-code-archaeologist on GitHub · 2026-12-01 00:53 UTC · original
legacy-code-archaeologist:runtime/adapter-facts-line→main· +107 −3 · 3 files · 1 commits · merged 2026-12-01 01:17 UTCSummary
Item (d) of #3678: one adapter-facts line at start-up.
The runtime's device path (
x2w_d3d12_permissive_create_device, used byD3D12XboxCreateDevicewith a parameter block) now queriesD3D12_FEATURE_ARCHITECTURE1andD3D12_FEATURE_EXISTING_HEAPSafter the device is created, and logs once per adapter and process:local/nonlocalare theQueryVideoMemoryInfobudgets of the segment groups. A failed query prints -1.report_budgetalready had (including the WARP match throughEnumWarpAdapter) moves intoadapter_for(), and both use it.report_budget's behaviour is unchanged.Refs #3678, refs #1914
Measured on this machine
maina3bfd019plus this change, Windows 11 Pro 10.0.26100, in-box runtime:uma=1 cache_coherent_uma=1 existing_heaps=1 local=7781651866 nonlocal=0uma=1 cache_coherent_uma=1 existing_heaps=0 local=7781651866 nonlocal=0The Intel adapter is an integrated GPU with unified memory that still reports
existing_heaps=0. That is the case #1914 mentions, where only the copy path is left.Tests
tests/startup_adapter_facts_check.py,tests/cmake/startup_adapter_facts.cmake. It runsstartup_descriptor_increment(the permissive create path) and checks for exactly one facts line, after the create line, with fields in range. It also checksexisting_heaps=1on WARP. A hardware run passes 77 through.ctest --preset dev --no-tests=error -R '^startup_adapter_facts_' -V: warp and hardware passed (hardware ran on the Intel HD 530).report_adapter_facts(device)call removed,startup_adapter_facts_warpfails.ctest --preset dev --no-tests=error -R '^(startup_|d3d12x_|d3d12_xs).*(warp|controls)$' -j 3: 582 of 587 passed. The 5 failures fail identically on unmodifiedmaina3bfd019with this machine's in-box WARP:startup_image_load_mip_warp,startup_image_gather_lz_warp,startup_compute_gather_l_warp,startup_compute_dispatch_cube_warp,startup_presenter_fence_warp.startup_triage_run,startup_build_rev_controls/_dlland thed3d12_xs_shimchecks passed.AI-assisted: written with Claude Code. I reviewed it and ran the commands above.
🤖 Generated with Claude Code
@R0Y00 on GitHub · 2026-12-01 01:14 UTC · original · approved these changes
Reviewed adapter lookup and one-line-per-LUID behavior. The WARP fallback compares the adapter LUID, the deduplication is locked, and failed queries have explicit
-1fields.ctest --test-dir <build> --no-tests=error -j1 -R '^startup_adapter_facts_(warp|hardware)$' --output-on-failurepassed on WARP and RTX 4060 Laptop.