Repository navigation
Conversation
FIND-3: VICTORY_D3D12_ADAPTER (index or description substring) selects the offline emit host; each pipeline created/refused line names that adapter. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
Fixes the Clippy/type-inference failure on Windows CI for FIND-3. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
DenRakEiw
left a comment
There was a problem hiding this comment.
Tested against origin/main (940d32f) on Windows 11:
- Compile error on Windows (
victory-shader):error[E0282]: type annotations needed --> crates\victory-shader\src\emit\host.rs:190:21 | 190 | let warp_adapter = factory.EnumWarpAdapter().map_err(err)?; | ^^^^^^^^^^^^ 191 | let adapter: IDXGIAdapter1 = warp_adapter.cast().map_err(err)?; | ------------ type must be known at this pointIDXGIFactory4::EnumWarpAdapteris generic overT: Interface, so callinglet adapter: IDXGIAdapter1 = factory.EnumWarpAdapter().map_err(err)?;directly (or specifying::<IDXGIAdapter>) will fix the Windows build.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
VICTORY_D3D12_ADAPTER for the offline translate --pipelines host, verdicts name the adapter. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Complements the adapter-selection cluster (#1889/#2367/#2371) — those cover runtime, this covers offline translate; fine as its own PR.
|
Reviewed — clean addition. Adapter selection covers index and case-insensitive substring, WARP index resolved by LUID rather than assumed, and naming the adapter on every verdict makes "hardware" results self-describing (a verdict on GTX 1050 vs RTX means different things — this is exactly the ambiguity pipeline reports had). The gpu-side |
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into From the earlier needs-work note, still open: refuse software adapters in the Generated by Claude Code |
What
FIND-3: any
translate --pipelinesverdict should name the adapter it was taken on. Before this, the offline host always took the first hardware adapter (or failed on CI's software-only machines), so census results collected across machines were ambiguous when a box has more than one GPU.#1630's body once described this selector, but that PR now carries only the texture-description ladder — the offline host on
mainstill has noVICTORY_D3D12_ADAPTERpath. Distinct from #1487 (high-performance default) and #1138 (test failure labels).Change
victory_shader::emit::host::Hostrecords the DXGI adapter index and description, and honoursVICTORY_D3D12_ADAPTER(decimal index or case-insensitive description substring). WARP and the default hardware pick are unchanged aside from naming.translate --pipelinesprintsadapter <index> "<name>"once, and everypipeline created/pipeline: …line (includingVICTORY_PAIRS) appendson <index> "<name>".Tests
cargo test -p xtask --locked repository_passes_policy— passemit::host::adapter_selector_tests(Windows CI /cargo test -p victory-shader --lib)No game data used.