Skip to content

Tests: list_x GPU fixtures use the XCL_ADAPTER adapter - #3016

Open
KDenKC wants to merge 1 commit into
xcl-dev:mainfrom
KDenKC:list-x-adapter-fixtures
Open

KDenKC wants to merge 1 commit into
xcl-dev:mainfrom
KDenKC:list-x-adapter-fixtures

Conversation

@KDenKC

@KDenKC KDenKC commented Nov 27, 2026

Copy link
Copy Markdown

The list_x GPU fixtures used the default D3D12 adapter even when XCL_ADAPTER selected a different GPU. This change makes those fixtures honor the same adapter selector as XCL. Thanks to @luckyteagirl for identifying the gap in #2622. Related #2337 applies the same idea to the VRAM fixtures.

What is in it

  • One test-only device helper selects the adapter, keeps WARP fallback, and prints the actual adapter name and WARP status. An explicit unmatched selector reports a skip.
  • Convert the 15 default-device fixtures. The deliberately WARP-only fixture still uses WARP. If D3D12.X: a put-off call's segment that does not close is not submitted #2622 merges first, also convert its new put_off_rig fixture when resolving the overlap.

Tested

At this head, 0624a46e (on main 8b957bec), release, XCL_NETWORK=0, RTX 5090 (621.24) and the Ryzen 7 9800X3D's AMD Radeon iGPU (RDNA2), Windows 11:

Not tested

We would appreciate a run on another AMD GPU. In PowerShell, set $env:XCL_NETWORK='0'; $env:XCL_ADAPTER='radeon' and run cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib hle::d3d12x::list_x::tests:: -- --test-threads=4 --nocapture. Please include the adapter and WARP line, the test counts, and any failure output. On a hybrid machine, verify the reported adapter matches the requested GPU.

Regression run

main:

xcl-smoke v1
commit: 8b957bec6f82495aec940944c6bf47faa02db590
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 200
exit: 0x0
frames shown: 2201 (PresentX 2201)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 36892 MB

This PR (0624a46e):

xcl-smoke v1
commit: 0624a46ed7f134a92fb7287d498a08fdca282b7a
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 200
exit: 0x0
frames shown: 2285 (PresentX 2285)
presents per 2 s (last 3): 4 3 3
device removals: 0
crashes: 0
peak commit: 36800 MB

Both: the retail title, -Seconds 200, RTX 5090, a fresh copy of the same precompiled cache, the same warm exe name (this head first), quarter-size frame dumps, and the same input (Enter from 6 s after the first frame plus the legal-screen keys; no XCL_PRESS_AT). The change is test-only, so this is a regression check of the build.

AI use

Codex (GPT-6.2-Sol) wrote the test-only helper and fixture changes. Codex (GPT-6.2-Sol) rebased the patch and drafted this description. Claude Code (Claude Opus 5.5) ran the validation above on both adapters and the smoke pair.

🤖 Generated with Claude Code

https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR

Use the existing adapter selector for test fixture devices, report the actual adapter and WARP status, and retain the WARP fallback. Keep the deliberate WARP-only test unchanged.

Assisted-by: Codex (GPT-6.1-Sol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant