Shaders: name the adapter on translate --pipelines verdicts (FIND-3) #2456
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2456
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2456"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@makmatvey on GitHub · 2026-11-25 13:51 UTC · original
makmatvey:cursor/shader-adapter-pipeline-verdict-d264→main· +177 −15 · 4 files · 2 commits · openWhat
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.
@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_fmadconstruction fills defaults;adapter_labelis not called there, so harmless. Selector is unit-tested.@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 incrates/victory-gpu/src/host.rsandcrates/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_ADAPTERpath, print WARP without a made-up index, and avoid the placeholderadapter_index: 0/ empty name invictory-gpu'sHost.Generated by Claude Code
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.Merge
Merge the changes and update on Forgejo.