Scripts: smoke.ps1 names the adapter the run used, from XCL's log #282

Closed
srcamarda wants to merge 1 commit from upstream-pr/285 into main
srcamarda commented 2026-11-23 22:22:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by srcamarda on 2026-11-23T22:22:53Z.


scripts/smoke.ps1 printed the first display adapter Windows lists as gpu:, not the one the run used. On a machine with an iGPU, or a virtual display driver as here, that is another adapter: my runs on an RX 7800 XT said gpu: SudoMaker Virtual Display Adapter (#187). The block now takes the name from XCL's own log line, D3D12.X: backend 'real' – <name> (<n> MiB VRAM). It falls back to the old query when the line is not there (e.g. the null backend).

What is in it

  • scripts/smoke.ps1: gpu: from the backend line of the run's log, the first display adapter only without it

Tested

  • RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 5600G with its iGPU and a virtual display adapter installed, Windows 11 Pro 26300, Rust 1.100.0 MSVC
  • scripts/smoke.ps1 -Game <retail title> -Seconds 20 with an xcl.exe built from 9ab7d76, in Windows PowerShell 5.1 and PowerShell 7: both print gpu: AMD Radeon RX 7800 XT (before: gpu: SudoMaker Virtual Display Adapter)
  • The match and the fallback on a log text with and without the line, in both shells (the line's – is matched as \S+, since PowerShell 5.1 reads a script without a BOM as ANSI)
  • cargo test --workspace -- --test-threads=4 on this branch: 651 passed, 0 failed, 40 ignored, no SKIPPED

Regression run

  • not needed: no change to crates/xcl/src

Not tested

  • NVIDIA / Intel adapters, and a run on the null backend (the fallback is the old code, unchanged)

AI use

  • Claude Code with Claude Opus 5.5: found the problem, wrote the change and this description, ran the tests above. I reviewed the diff and the results.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6570047456 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/285). Originally posted by [srcamarda](https://github.com/srcamarda) on 2026-11-23T22:22:53Z. --- `scripts/smoke.ps1` printed the first display adapter Windows lists as `gpu:`, not the one the run used. On a machine with an iGPU, or a virtual display driver as here, that is another adapter: my runs on an RX 7800 XT said `gpu: SudoMaker Virtual Display Adapter` (#187). The block now takes the name from XCL's own log line, `D3D12.X: backend 'real' – <name> (<n> MiB VRAM)`. It falls back to the old query when the line is not there (e.g. the null backend). **What is in it** - `scripts/smoke.ps1`: `gpu:` from the backend line of the run's log, the first display adapter only without it **Tested** - RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 5600G with its iGPU and a virtual display adapter installed, Windows 11 Pro 26300, Rust 1.100.0 MSVC - `scripts/smoke.ps1 -Game <retail title> -Seconds 20` with an `xcl.exe` built from `9ab7d76`, in Windows PowerShell 5.1 and PowerShell 7: both print `gpu: AMD Radeon RX 7800 XT` (before: `gpu: SudoMaker Virtual Display Adapter`) - The match and the fallback on a log text with and without the line, in both shells (the line's `–` is matched as `\S+`, since PowerShell 5.1 reads a script without a BOM as ANSI) - `cargo test --workspace -- --test-threads=4` on this branch: 651 passed, 0 failed, 40 ignored, no `SKIPPED` **Regression run** - not needed: no change to `crates/xcl/src` **Not tested** - NVIDIA / Intel adapters, and a run on the null backend (the fallback is the old code, unchanged) **AI use** - Claude Code with Claude Opus 5.5: found the problem, wrote the change and this description, ran the tests above. I reviewed the diff and the results. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:57:59 +00:00
srcamarda commented 2026-11-24 07:04:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by srcamarda on 2026-11-24T00:09:04Z.


Closing: the same fix went into main as 97dc49c (#281, opened half a minute before this one), reading the adapter from report.json. Nothing left here.

<!-- greyfinch-sync:ivall/xcl:comment:7117757635 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/285#issuecomment-7117757635). Originally posted by [srcamarda](https://github.com/srcamarda) on 2026-11-24T00:09:04Z. --- Closing: the same fix went into `main` as 97dc49c (#281, opened half a minute before this one), reading the adapter from `report.json`. Nothing left here.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!282
No description provided.