Shaders: name the adapter on translate --pipelines verdicts (FIND-3) #2456

Open
github-bot wants to merge 2 commits from github-bot/gh-2456 into main AGit
Owner

@⁠makmatvey on GitHub · 2026-11-25 13:51 UTC · original
makmatvey:cursor/shader-adapter-pipeline-verdict-d264 → main · +177 −15 · 4 files · 2 commits · open

What

FIND-3: any translate --pipelines verdict 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 main still has no VICTORY_D3D12_ADAPTER path. Distinct from #1487 (high-performance default) and #1138 (test failure labels).

Change

  • victory_shader::emit::host::Host records the DXGI adapter index and description, and honours VICTORY_D3D12_ADAPTER (decimal index or case-insensitive description substring). WARP and the default hardware pick are unchanged aside from naming.
  • translate --pipelines prints adapter <index> "<name>" once, and every pipeline created / pipeline: … line (including VICTORY_PAIRS) appends on <index> "<name>".
  • README documents the variable.
  • Unit tests cover the selector matching rules (no GPU needed).

Tests

  • cargo test -p xtask --locked repository_passes_policy — pass
  • Selector unit tests live under emit::host::adapter_selector_tests (Windows CI / cargo test -p victory-shader --lib)
  • Clippy and the full workspace suite run on Windows CI for this PR

No game data used.

**@⁠makmatvey** on GitHub · 2026-11-25 13:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/2456) `makmatvey:cursor/shader-adapter-pipeline-verdict-d264` → `main` · +177 −15 · 4 files · 2 commits · open ## What FIND-3: any `translate --pipelines` verdict 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 `main` still has no `VICTORY_D3D12_ADAPTER` path. Distinct from #1487 (high-performance default) and #1138 (test failure labels). ## Change - `victory_shader::emit::host::Host` records the DXGI adapter index and description, and honours `VICTORY_D3D12_ADAPTER` (decimal index or case-insensitive description substring). WARP and the default hardware pick are unchanged aside from naming. - `translate --pipelines` prints `adapter <index> "<name>"` once, and every `pipeline created` / `pipeline: …` line (including `VICTORY_PAIRS`) appends ` on <index> "<name>"`. - README documents the variable. - Unit tests cover the selector matching rules (no GPU needed). ## Tests - `cargo test -p xtask --locked repository_passes_policy` — pass - Selector unit tests live under `emit::host::adapter_selector_tests` (Windows CI / `cargo test -p victory-shader --lib`) - Clippy and the full workspace suite run on Windows CI for this PR No game data used.
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 <[email protected]>
Fixes the Clippy/type-inference failure on Windows CI for FIND-3.

Co-authored-by: Matsvey Makushenka <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:06:28 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 14:24 UTC · original

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 fuses_fmad construction fills defaults; adapter_label is not called there, so harmless. Selector is unit-tested.

**@⁠kotekompotek** on GitHub · 2026-11-25 14:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/2456#issuecomment-7165227354) 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 `fuses_fmad` construction fills defaults; `adapter_label` is not called there, so harmless. Selector is unit-tested.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:55 UTC · original · edited 2026-11-25 22:23 UTC

Automated triage for the maintainers.

Needs rebase. This PR no longer merges cleanly into main (conflicts in crates/victory-gpu/src/host.rs and crates/victory-shader/src/emit/host.rs). It will be reviewed again once it is rebased.

From the earlier needs-work note, still open: refuse software adapters in the VICTORY_D3D12_ADAPTER path, print WARP without a made-up index, and avoid the placeholder adapter_index: 0 / empty name in victory-gpu's Host.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/2456#issuecomment-7167433880) · edited 2026-11-25 22:23 UTC <!-- victory-triage v1 head=d58745e1c97895618938eb9d8156efeeece94dcb verdict=needs-rebase at=2026-11-25T22:32:40Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/host.rs` and `crates/victory-shader/src/emit/host.rs`). It will be reviewed again once it is rebased. From the earlier needs-work note, still open: refuse software adapters in the `VICTORY_D3D12_ADAPTER` path, print WARP without a made-up index, and avoid the placeholder `adapter_index: 0` / empty name in `victory-gpu`'s `Host`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-shader/src/emit/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2456/head:github-bot/gh-2456'
git switch 'github-bot/gh-2456'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2456'
git switch 'github-bot/gh-2456'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2456'
git switch 'github-bot/gh-2456'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2456'
git switch 'main'
git merge --squash 'github-bot/gh-2456'
git switch 'main'
git merge --ff-only 'github-bot/gh-2456'
git switch 'main'
git merge 'github-bot/gh-2456'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2456
No description provided.