Skip to content

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

Closed
makmatvey wants to merge 1 commit into
mainfrom
cursor/shader-adapter-pipeline-verdict-d264
Closed

makmatvey wants to merge 1 commit into
mainfrom
cursor/shader-adapter-pipeline-verdict-d264

Conversation

@makmatvey

Copy link
Copy Markdown
Owner

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.

Marvisak#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 Marvisak#1487 (high-performance default) and Marvisak#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.

Open in Web Open in Cursor 

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>
@makmatvey

Copy link
Copy Markdown
Owner Author

Closing: Matvey wants upstream Marvisak PRs only, not fork PRs.

@makmatvey makmatvey closed this Nov 25, 2026
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.

1 participant