Repository navigation
Conversation
Host::new always took the default adapter, so a machine with a second GPU (an iGPU beside a graphics card, say) could not run the GPU checks on it. VICTORY_ADAPTER=<n> picks DXGI's nth adapter; the first host of a run names it on stderr, or says the index has no adapter, since the tests then skip as they do without a device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@fiestorra Upstream CI at Explicit NVIDIA selection exposed a separate reproducible issue on driver 581.91. The AMD iGPU reports 512 MiB dedicated. NVIDIA reports 7.62 GiB and WARP reports zero. A non-software adapter that reports zero dedicated memory would still be excluded by the default filter, and I did not have one to verify. No assertions were changed. |
|
Automated triage for the maintainers. Merge candidate. Thanks for merging CI: passing ( Generated by Claude Code |
|
Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head
Not tested: Windows MSVC build, the title itself. AI-assisted. |
# Conflicts: # crates/victory-shader/src/emit/host.rs
|
@catminou4 merged Rechecked on the RX 9070 + gfx1036 machine:
|
…hardware checks run on
Offline measurement on a retail dumpResult: no count change against I merged head 113f280 onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Tested head
The switch works. With Things worth knowing:
Relation to #2367. No conflict: AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this. |
Host::newalways takes the default adapter. On a machine with two GPUs (common: an iGPU beside a graphics card, or a laptop's Intel and NVIDIA), the hardware checks invictory-shader's tests can only run on one of them, and testers post results for half their hardware.With
VICTORY_ADAPTER=<n>,Host::newuses DXGI'snth adapter (0 is the default). The first host of a run names the device on stderr. A wrong index says so once and the hardware checks skip, as they do on a machine without a device. When the variable is unset nothing changes. The README's test section gets two lines about it.Tested on one machine with an AMD RX 9070 (RDNA4, adapter 0) and the Ryzen 7700's iGPU (gfx1036, RDNA2, adapter 1), on
main@70564ae:cargo test -p victory-shader --locked --libgives the same result on both adapters: 208 passed, plus the 2 PSV0 tests that fail onmainwith the Windows SDK'sdxil.dll1.7. Those fail without this change too;VICTORY_ADAPTER=1 … -- --nocaptureprintsVICTORY_ADAPTER=1: AMD Radeon(TM) Graphics, andVICTORY_ADAPTER=7printsno such adapter;adapter_index_reads_a_number_or_nothing, covers parsing the variable.This makes RDNA2 and RDNA4 runs of the same commit from one machine routine, for example for #1599 (AMD's i64 compares, which reproduce on both).
AI-assisted (Claude Code).
🤖 Generated with Claude Code