Skip to content

Scripts: smoke.ps1 names the adapter XCL ran on, from report.json - #281

Closed
grahamster2 wants to merge 1 commit into
ivall:mainfrom
grahamster2:smoke-gpu-from-report
Closed

grahamster2 wants to merge 1 commit into
ivall:mainfrom
grahamster2:smoke-gpu-from-report

Conversation

@grahamster2

Copy link
Copy Markdown
Contributor

smoke.ps1's gpu: line took the first Win32_VideoController that is not the basic display adapter. On a machine with an iGPU next to a discrete GPU that is often the iGPU, so the xcl-smoke block names hardware the run did not use: on an RTX 3080 + AMD RDNA2 iGPU machine it said AMD Radeon(TM) Graphics while XCL ran on the RTX 3080. The line now comes from d3d12.adapter in the run's report.json, with the Win32 query kept as the fallback.

What is in it

  • scripts/smoke.ps1: read d3d12.adapter from report.json next to the run's log (XCL moves the previous run's report to report.prev.json at start, so a stale one is not read) and drop its (N MiB VRAM) suffix; fall back to the old Win32_VideoController query when the report or the field is missing.

Tested

  • NVIDIA GeForce RTX 3080 10 GB (driver 610.88) + AMD RDNA2 iGPU, Windows 11 Pro 26200, Rust 1.94.0, release build for the smoke run, debug for the suite
  • cargo test --workspace -- --test-threads=4: 651 passed, 0 failed, 40 ignored
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64)
  • scripts/smoke.ps1 -Game <retail title> at 9ab7d76: before, gpu: AMD Radeon(TM) Graphics; with this change, gpu: NVIDIA GeForce RTX 3080 (XCL's log: backend 'real' – NVIDIA GeForce RTX 3080)
  • The fallback, run by hand with no report.json: the old Win32 name

Regression run

  • Not needed: the change is in scripts/ only, crates/xcl/src is untouched.

Not tested

  • A run killed by the script's timeout (no report written): only the fallback was checked by hand, not through a real timed-out run
  • AMD-only and NVIDIA-only machines (the Win32 and report names are expected to agree there)
  • PowerShell 7: run with Windows PowerShell 5.1 only

AI use

  • Claude Code with Claude Opus 5.5: wrote the change and ran the tests.

The gpu line took the first Win32_VideoController that is not the basic
display adapter. On a machine with an iGPU and a discrete GPU that is often
the iGPU: on an RTX 3080 + AMD RDNA2 iGPU machine the block said
"AMD Radeon(TM) Graphics" while XCL ran on the RTX 3080.

The line now comes from d3d12.adapter in the run's report.json (next to the
log; XCL removes the previous run's report at start), without the VRAM
suffix. The Win32 query stays as the fallback when the report or the field
is missing.
@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Merged into a6f5f7a by cherry-pick together with #318 - thanks! Checked on an RX 9070 (RDNA4) on main a6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332: cargo test --workspace -- --test-threads=4 - 636 unit tests passed, 0 failed; the retail game reaches its menu and draws it (frame dump) and goes on past it.

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.

2 participants