Shaders, CLI: name a host without mesh shaders in the pipeline census #1675

Open
fiestorra wants to merge 2 commits from upstream-pr/1676 into main
fiestorra commented 2026-11-24 20:41:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-24T20:41:34Z.


A census on a host without mesh shaders now says so, instead of 8,214 Unspecified error rows

victory translate … --pipelines over the whole archive on an adapter whose D3D12_OPTIONS7 mesh tier is not supported (an integrated GPU, a software one) prints:

             8214 emitted of 8713 mesh programs; 8152 validated, 0 pipelines
     8214  pipeline: Unspecified error  (e.g. … MSNC_VS_Cable_MirrorReflection_5863fb9a_Wrapped Ms)

8,214 identical E_FAIL rows are the first thing anyone sees, they look like a translator defect, and they bury the refusal reasons that are ours. The mesh programs translate and validate; it is the device that cannot run them. The runtime already knows this — victory_gpu::host::mesh_shaders() and the refusal at crates/victory-gpu/src/pipeline/host.rs:430 — but the offline path, which builds its own device in victory_shader::emit::host, never asked.

This pull request adds Host::mesh_shaders() to that offline host (the same two queries the runtime makes: D3D12_OPTIONS7 mesh tier at shader model 6.6) and makes the census ask it once per worker:

// An adapter without mesh shaders refuses every one of these with
// `Unspecified error`; say that instead, once per program, so the
// tally names the host and not the translator.
HwStage::Ms if !checks.mesh => Err("the host has no mesh shaders".to_owned()),

The same run then reads:

             8214 emitted of 8713 mesh programs; 8152 validated, 0 pipelines
     8214  pipeline: the host has no mesh shaders  (e.g. … MST_DS_PNTri_c1b6bb00_Wrapped Ms)

Same count, one bucket, and it says whose limitation it is. Nothing else moves: vertex and pixel stay at 12,231 of 12,231 pipelines and compute at 1,441 of 1,441 on that adapter.

On an adapter that has mesh shaders nothing changes — the condition does not fire and the mesh pipelines are built as before. That is also what VICTORY_D3D12_ADAPTER in #1630 is for: on this machine the default adapter is the integrated GPU, so before that pull request the offline path could not reach the card anyone meant at all.

Verification

  • Two whole-archive censuses on the same machine, adapter 0 (AMD Radeon(TM) Graphics, D3D12_OPTIONS7 mesh tier not supported), before and after: 8,214 pipeline: Unspecified error → 8,214 pipeline: the host has no mesh shaders, with identical counts everywhere else.
  • The software adapter (VICTORY_WARP=1), which reports mesh tier 1 here, to confirm the new condition does not fire where the device claims support: 8,214 of 8,214 mesh pipelines created, the same as before. That run also refuses 428 compute pipelines with E_INVALIDARG (1,013 of 1,441 created), a different set from the 320 the RTX 4090 refuses; that is a separate matter, noted only so the numbers are not read as this change's.
  • cargo test -p victory-shader --locked → 120 passed, 1 ignored; cargo test -p victory --locked → 1 passed.
  • cargo clippy -p victory-shader -p victory --all-targets --all-features --locked -- -D warnings → clean; rustfmt --check clean on both files.

No unit test for the new branch, honestly: the condition is the device's answer, so the evidence is the two censuses rather than a synthetic device. A test that stubbed the answer would assert the if.

No game data is involved: counts, adapter descriptions and program names only.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5479984534 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-24T20:41:34Z. --- **A census on a host without mesh shaders now says so, instead of 8,214 `Unspecified error` rows** `victory translate … --pipelines` over the whole archive on an adapter whose `D3D12_OPTIONS7` mesh tier is not supported (an integrated GPU, a software one) prints: ``` 8214 emitted of 8713 mesh programs; 8152 validated, 0 pipelines 8214 pipeline: Unspecified error (e.g. … MSNC_VS_Cable_MirrorReflection_5863fb9a_Wrapped Ms) ``` 8,214 identical `E_FAIL` rows are the first thing anyone sees, they look like a translator defect, and they bury the refusal reasons that *are* ours. The mesh programs translate and validate; it is the device that cannot run them. The runtime already knows this — `victory_gpu::host::mesh_shaders()` and the refusal at `crates/victory-gpu/src/pipeline/host.rs:430` — but the offline path, which builds its own device in `victory_shader::emit::host`, never asked. This pull request adds `Host::mesh_shaders()` to that offline host (the same two queries the runtime makes: `D3D12_OPTIONS7` mesh tier at shader model 6.6) and makes the census ask it once per worker: ```rust // An adapter without mesh shaders refuses every one of these with // `Unspecified error`; say that instead, once per program, so the // tally names the host and not the translator. HwStage::Ms if !checks.mesh => Err("the host has no mesh shaders".to_owned()), ``` The same run then reads: ``` 8214 emitted of 8713 mesh programs; 8152 validated, 0 pipelines 8214 pipeline: the host has no mesh shaders (e.g. … MST_DS_PNTri_c1b6bb00_Wrapped Ms) ``` Same count, one bucket, and it says whose limitation it is. Nothing else moves: vertex and pixel stay at 12,231 of 12,231 pipelines and compute at 1,441 of 1,441 on that adapter. **On an adapter that has mesh shaders nothing changes** — the condition does not fire and the mesh pipelines are built as before. That is also what `VICTORY_D3D12_ADAPTER` in #1630 is for: on this machine the default adapter is the integrated GPU, so before that pull request the offline path could not reach the card anyone meant at all. ### Verification - Two whole-archive censuses on the same machine, adapter 0 (`AMD Radeon(TM) Graphics`, `D3D12_OPTIONS7` mesh tier **not supported**), before and after: 8,214 `pipeline: Unspecified error` → 8,214 `pipeline: the host has no mesh shaders`, with identical counts everywhere else. - The software adapter (`VICTORY_WARP=1`), which reports mesh tier 1 here, to confirm the new condition does not fire where the device claims support: **8,214 of 8,214 mesh pipelines created**, the same as before. That run also refuses 428 compute pipelines with `E_INVALIDARG` (1,013 of 1,441 created), a different set from the 320 the RTX 4090 refuses; that is a separate matter, noted only so the numbers are not read as this change's. - `cargo test -p victory-shader --locked` → 120 passed, 1 ignored; `cargo test -p victory --locked` → 1 passed. - `cargo clippy -p victory-shader -p victory --all-targets --all-features --locked -- -D warnings` → clean; `rustfmt --check` clean on both files. No unit test for the new branch, honestly: the condition is the device's answer, so the evidence is the two censuses rather than a synthetic device. A test that stubbed the answer would assert the `if`. No game data is involved: counts, adapter descriptions and program names only. Written with an AI assistant.
catminou4 commented 2026-11-24 21:42:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:42:50Z.

Review: APPROVED


Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows.

Pipeline census names a host without mesh shaders: HostShader::mesh_shaders() exposes the capability so the CLI/report can say 'no mesh shaders' instead of failing silently. Shader-side compiles clean on macOS; the CLI/apps part is Windows-only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047882278 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#pullrequestreview-6047882278). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T21:42:50Z. **Review:** APPROVED --- Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows. Pipeline census names a host without mesh shaders: HostShader::mesh_shaders() exposes the capability so the CLI/report can say 'no mesh shaders' instead of failing silently. Shader-side compiles clean on macOS; the CLI/apps part is Windows-only.
BaggyALPHA commented 2026-11-25 04:06:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-25T03:29:24Z.


Independent Windows check of 20aa8cb on upstream 940d32f, using a synthetic mesh shader and a compute control. The probe called translate::check and asserted the pipeline and DXIL validation counters independently.

  • RTX 3080 and WARP both reported mesh support and created the mesh pipeline. Both validated the mesh shader.
  • With the census mesh-capability flag forced false locally on each of those devices, it counted one pipeline: the host has no mesh shaders refusal, still validated the mesh shader, and still created and validated the compute pipeline.
  • Removing the new match guard locally made that probe fail because it counted a mesh pipeline even with the flag disabled. Restoring the guard returned both CLI translation tests to green.

The unsupported case was a controlled branch test on two mesh-capable adapters. No game files were used. AI-assisted (OpenAI Codex).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7151962536 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7151962536). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-25T03:29:24Z. --- Independent Windows check of `20aa8cb` on upstream `940d32f`, using a synthetic mesh shader and a compute control. The probe called `translate::check` and asserted the pipeline and DXIL validation counters independently. - RTX 3080 and WARP both reported mesh support and created the mesh pipeline. Both validated the mesh shader. - With the census mesh-capability flag forced false locally on each of those devices, it counted one `pipeline: the host has no mesh shaders` refusal, still validated the mesh shader, and still created and validated the compute pipeline. - Removing the new match guard locally made that probe fail because it counted a mesh pipeline even with the flag disabled. Restoring the guard returned both CLI translation tests to green. The unsupported case was a controlled branch test on two mesh-capable adapters. No game files were used. AI-assisted (OpenAI Codex).
Marvisak commented 2026-11-25 04:06:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:33:09Z.


Automated triage for the maintainers.

Merge candidate. This adds Host::mesh_shaders() to the offline host (crates/victory-shader/src/emit/host.rs), making the same mesh-tier and SM 6.6 queries as the runtime's mesh_shaders in victory-gpu. With it, translate --pipelines reports "the host has no mesh shaders" on such adapters instead of thousands of E_FAIL rows; on adapters with mesh shaders nothing changes. The change is small and diagnostic only. CI passes. It will conflict textually with #1648's changes to translate.rs, whichever lands second.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152020265 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7152020265). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:33:09Z. --- <!-- victory-triage v1 head=20aa8cb391eb5cbf568fac0b68a92f5355af6bf1 verdict=merge-candidate at=2026-11-25T03:36:00Z --> Automated triage for the maintainers. **Merge candidate.** This adds `Host::mesh_shaders()` to the offline host (`crates/victory-shader/src/emit/host.rs`), making the same mesh-tier and SM 6.6 queries as the runtime's `mesh_shaders` in victory-gpu. With it, `translate --pipelines` reports "the host has no mesh shaders" on such adapters instead of thousands of `E_FAIL` rows; on adapters with mesh shaders nothing changes. The change is small and diagnostic only. CI passes. It will conflict textually with #1648's changes to `translate.rs`, whichever lands second. --- _Generated by [Claude Code](https://claude.ai/code)_
StExpeditus commented 2026-11-25 10:07:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:14:49Z.


Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at 20aa8cb. cargo test --workspace --locked --no-fail-fast -> 695 passed, 6 failed, 10 ignored. Failed: descriptor::host::tests::dynamic_slots_are_held_until_released ... FAILED | draw::tests::root_views_reach_their_copy_and_read_zeros_past_it ... FAILED | memory::tests::lists_share_a_table_and_copies_keep_their_views ... FAILED | emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride ... FAILED | emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros ... FAILED | emit::synthetic_tests::gathers_at_a_level_match_the_hardware ... FAILED

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158071655 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7158071655). Originally posted by [StExpeditus](https://github.com/StExpeditus) on 2026-11-25T09:14:49Z. --- **Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24.** Branch at `20aa8cb`. `cargo test --workspace --locked --no-fail-fast` -> 695 passed, 6 failed, 10 ignored. Failed: descriptor::host::tests::dynamic_slots_are_held_until_released ... FAILED | draw::tests::root_views_reach_their_copy_and_read_zeros_past_it ... FAILED | memory::tests::lists_share_a_table_and_copies_keep_their_views ... FAILED | emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride ... FAILED | emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros ... FAILED | emit::synthetic_tests::gathers_at_a_level_match_the_hardware ... FAILED
StExpeditus commented 2026-11-25 10:07:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:33:33Z.


Follow-up on the 6th failure in my report above (draw::tests::root_views_reach_their_copy_and_read_zeros_past_it):

  • In isolation it passes 2/2 on this branch and 2/2 on main.
  • A second full cargo test --workspace --locked --no-fail-fast run on this branch shows the usual 5 failures only; the test passed this time (... ok).

So that one looks like a transient suite-order contention (the test reads zeros when the NVIDIA 1M view-heap cap is hit by parallel tests), not a regression introduced by this PR. The 5 failures are the pre-existing heap-cap ones.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158492883 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7158492883). Originally posted by [StExpeditus](https://github.com/StExpeditus) on 2026-11-25T09:33:33Z. --- Follow-up on the 6th failure in my report above (`draw::tests::root_views_reach_their_copy_and_read_zeros_past_it`): - In isolation it passes 2/2 on this branch and 2/2 on main. - A second full `cargo test --workspace --locked --no-fail-fast` run on this branch shows the usual 5 failures only; the test passed this time (`... ok`). So that one looks like a transient suite-order contention (the test reads zeros when the NVIDIA 1M view-heap cap is hit by parallel tests), not a regression introduced by this PR. The 5 failures are the pre-existing heap-cap ones.
fuzeofficlal commented 2026-11-26 01:04:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:56:24Z.


Code review and RTX 5090 + WARP verification at head 20aa8cb391eb merged cleanly onto main (63bcca43c6a0):

  • Code review (crates/victory-shader/src/emit/host.rs:204-241, apps/victory/src/translate.rs:216-223, 630):
    • Host::mesh_shaders checks both D3D12_FEATURE_D3D12_OPTIONS7 (MeshShaderTier != NOT_SUPPORTED) and D3D12_FEATURE_SHADER_MODEL >= 6_6, cached per worker thread in Checks::mesh.
    • Hosts without mesh shader support skip mesh_pipeline cleanly and bucket failures under "pipeline: the host has no mesh shaders" while keeping ms_programs/ms_emitted/ms_validated counts intact; mesh-capable hosts (such as RTX 5090) continue compiling normally.
  • Verified (Windows 11, NVIDIA RTX 5090 + WARP, Rust 1.98.1):
    • cargo xtask policy: 191 files ok; cargo clippy --locked -p victory-shader -p victory --tests -- -D warnings: 0 warnings
    • cargo test --locked -p victory: 18/18 passed (14 unit + 4 integration)
    • victory-shader --lib -- emit::host::: 1/1 passed on both RTX 5090 and WARP.

LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179265568 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7179265568). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T00:56:24Z. --- Code review and RTX 5090 + WARP verification at head `20aa8cb391eb` merged cleanly onto `main` (`63bcca43c6a0`): - **Code review (`crates/victory-shader/src/emit/host.rs:204-241`, `apps/victory/src/translate.rs:216-223, 630`)**: - `Host::mesh_shaders` checks both `D3D12_FEATURE_D3D12_OPTIONS7` (`MeshShaderTier != NOT_SUPPORTED`) and `D3D12_FEATURE_SHADER_MODEL >= 6_6`, cached per worker thread in `Checks::mesh`. - Hosts without mesh shader support skip `mesh_pipeline` cleanly and bucket failures under `"pipeline: the host has no mesh shaders"` while keeping `ms_programs`/`ms_emitted`/`ms_validated` counts intact; mesh-capable hosts (such as RTX 5090) continue compiling normally. - **Verified (Windows 11, NVIDIA RTX 5090 + WARP, Rust 1.98.1)**: - `cargo xtask policy`: `191 files ok`; `cargo clippy --locked -p victory-shader -p victory --tests -- -D warnings`: 0 warnings - `cargo test --locked -p victory`: **18/18 passed** (14 unit + 4 integration) - `victory-shader --lib -- emit::host::`: **1/1 passed** on both RTX 5090 and WARP. LGTM.
fiestorra commented 2026-11-26 13:04:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-26T12:32:10Z.


Ready as it stands; the stale pointer in the body is fixed

Head 20aa8cb against main at 63bcca43: a three-way merge applies without conflicts, and on the merged tree cargo check -p victory-shader -p victory --locked and cargo clippy -p victory-shader -p victory --all-targets --locked -- -D warnings are clean. The check job on the head is green.

The body pointed at crates/victory-gpu/src/host.rs:324 for the runtime's refusal, which moved in the meantime: it is crates/victory-gpu/src/pipeline/host.rs:430 now, and the runtime query it copies is crates/victory-gpu/src/host.rs:1038. Fixed in the description, no code change.

Two things for whoever merges, neither a request:

  • #1648 edits both files this touches. It does not add Host::mesh_shaders or change the HwStage::Ms arm, and the two merge cleanly today in either order — but if #1648 lands first, the census wording should be re-read, because mesh emulation can make "the host has no mesh shaders" a narrower story than it reads now.
  • The 25 lines of the two queries are duplicated from the runtime. A follow-up could have the runtime call this Host (there is precedent: fuses_fmad), which is a third file and a separate change.

Not verified here: the whole-pack census counts (they need the game's archive).

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7192127950 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7192127950). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-26T12:32:10Z. --- **Ready as it stands; the stale pointer in the body is fixed** Head `20aa8cb` against `main` at `63bcca43`: a three-way merge applies without conflicts, and on the merged tree `cargo check -p victory-shader -p victory --locked` and `cargo clippy -p victory-shader -p victory --all-targets --locked -- -D warnings` are clean. The `check` job on the head is green. The body pointed at `crates/victory-gpu/src/host.rs:324` for the runtime's refusal, which moved in the meantime: it is `crates/victory-gpu/src/pipeline/host.rs:430` now, and the runtime query it copies is `crates/victory-gpu/src/host.rs:1038`. Fixed in the description, no code change. Two things for whoever merges, neither a request: - #1648 edits both files this touches. It does not add `Host::mesh_shaders` or change the `HwStage::Ms` arm, and the two merge cleanly today in either order — but if #1648 lands first, the census wording should be re-read, because mesh emulation can make "the host has no mesh shaders" a narrower story than it reads now. - The 25 lines of the two queries are duplicated from the runtime. A follow-up could have the runtime call this `Host` (there is precedent: `fuses_fmad`), which is a third file and a separate change. Not verified here: the whole-pack census counts (they need the game's archive). Written with an AI assistant.
fuzeofficlal commented 2026-11-26 13:24:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T13:24:53Z.

Review: APPROVED


Reviewed and verified 20aa8cb391eb and merged onto origin/main (63bcca43; clean git merge-tree):

  • Host::mesh_shaders (crates/victory-shader/src/emit/host.rs:137-162) queries D3D12_FEATURE_D3D12_OPTIONS7 and D3D12_FEATURE_SHADER_MODEL cleanly, and wiring checks.mesh per worker into check() (apps/victory/src/translate.rs) turns opaque E_FAIL failures into "the host has no mesh shaders" while leaving ms_emitted and ms_validated tallies intact.

Non-blocking suggestion for consistency: the explicit VICTORY_PAIRS branch (apps/victory/src/translate.rs:293-310) creates its own Host and calls host.mesh_pipeline(vs, ps) directly (translate.rs:299-301) without checking host.mesh_shaders(). Adding the same guard on the HwStage::Ms pair branch (and optionally preserving unexpected CheckFeatureSupport errors instead of collapsing them into missing capability) would keep explicit pair output consistent with the census on SM 6.6 hosts without mesh shaders.

Local verification: xtask policy (182 files ok), cargo clippy -p victory -p victory-shader --all-targets (default and --all-features), cargo test -p victory (12 passed on PR head, 18 passed merged on origin/main), and victory-shader GPU tests (emit::tests 16 passed, emit::host::tests::parallel_warp_pipelines_and_draws 1 passed) all pass on both RTX 5090 and VICTORY_WARP=1.

LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6074902722 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#pullrequestreview-6074902722). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T13:24:53Z. **Review:** APPROVED --- Reviewed and verified `20aa8cb391eb` and merged onto `origin/main` (`63bcca43`; clean `git merge-tree`): - `Host::mesh_shaders` (`crates/victory-shader/src/emit/host.rs:137-162`) queries `D3D12_FEATURE_D3D12_OPTIONS7` and `D3D12_FEATURE_SHADER_MODEL` cleanly, and wiring `checks.mesh` per worker into `check()` (`apps/victory/src/translate.rs`) turns opaque `E_FAIL` failures into `"the host has no mesh shaders"` while leaving `ms_emitted` and `ms_validated` tallies intact. Non-blocking suggestion for consistency: the explicit `VICTORY_PAIRS` branch (`apps/victory/src/translate.rs:293-310`) creates its own `Host` and calls `host.mesh_pipeline(vs, ps)` directly (`translate.rs:299-301`) without checking `host.mesh_shaders()`. Adding the same guard on the `HwStage::Ms` pair branch (and optionally preserving unexpected `CheckFeatureSupport` errors instead of collapsing them into missing capability) would keep explicit pair output consistent with the census on SM 6.6 hosts without mesh shaders. Local verification: `xtask policy` (`182 files ok`), `cargo clippy -p victory -p victory-shader --all-targets` (`default` and `--all-features`), `cargo test -p victory` (`12 passed` on PR head, `18 passed` merged on `origin/main`), and `victory-shader` GPU tests (`emit::tests` `16 passed`, `emit::host::tests::parallel_warp_pipelines_and_draws` `1 passed`) all pass on both RTX 5090 and `VICTORY_WARP=1`. LGTM.
fiestorra commented 2026-11-26 15:02:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-26T14:50:29Z.


The pair census now says it too

Head 899f2d29. Good catch: the explicit VICTORY_PAIRS branch made its own Host and called mesh_pipeline without asking whether the host has mesh shaders, so the one path this PR exists to explain could still fail with a shader-shaped error. It now checks host.mesh_shaders() and prints the same sentence the rest of the census uses:

pair <vs> + <ps>: the host has no mesh shaders

The two arms return the same type now (Result<(), String>), so the message path is shared rather than duplicated.

Measured: cargo test -p victory → 14 passed + 2 passed; cargo clippy -p victory --all-targets -- -D warnings clean.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7195407866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7195407866). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-26T14:50:29Z. --- **The pair census now says it too** Head `899f2d29`. Good catch: the explicit `VICTORY_PAIRS` branch made its own `Host` and called `mesh_pipeline` without asking whether the host has mesh shaders, so the one path this PR exists to explain could still fail with a shader-shaped error. It now checks `host.mesh_shaders()` and prints the same sentence the rest of the census uses: ``` pair <vs> + <ps>: the host has no mesh shaders ``` The two arms return the same type now (`Result<(), String>`), so the message path is shared rather than duplicated. Measured: `cargo test -p victory` → 14 passed + 2 passed; `cargo clippy -p victory --all-targets -- -D warnings` clean. Written with an AI assistant.
Baconzido commented 2026-11-29 18:55:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Baconzido on 2026-11-29T18:55:31Z.


Checked with the game's shaders on RDNA1: the 8,765 refused mesh pipelines now name the cause

AMD Radeon RX 5700 (RDNA1, no mesh shader tier), driver 32.0.21045.29003, Windows 11 Pro 26300. I merged 899f2d2 onto main at 63bcca4 with no conflicts and ran translate --validate --pipelines on a local dump. The baseline run had #1767 merged as well. That PR changes only the wording of the compute validator message, not any count.

main + #1767 main + #1676
Mesh programs emitted / validated 8765 / 8694 8765 / 8694
Mesh pipelines 0 0
Reason for those 8765 pipeline: Erro não especificado (the driver's E_FAIL, localized) pipeline: the host has no mesh shaders
Vertex and pixel pipelines 14258 14258
Compute pipelines 2733 2733
Every other reason (baseline) same counts
Wall time 2259 s 335 s

Wall time is not a clean comparison: the driver's shader cache was warm on the second run.

On the merged tree:

  • cargo test --locked -p victory-shader --no-fail-fast on the RX 5700 passed (302 passed, 0 failed, 3 ignored).
  • cargo clippy --locked --workspace --all-targets -- -D warnings was clean.

On a non-English Windows, main reports only the driver's localized E_FAIL string, which tells a reader nothing. With this PR, the census says the host has no mesh shaders.

No game data leaves the machine; only counts and reasons are shown here.

I ran these measurements with help from an AI assistant (Claude); I checked the numbers myself before posting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7260867331 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1676#issuecomment-7260867331). Originally posted by [Baconzido](https://github.com/Baconzido) on 2026-11-29T18:55:31Z. --- **Checked with the game's shaders on RDNA1: the 8,765 refused mesh pipelines now name the cause** AMD Radeon RX 5700 (RDNA1, no mesh shader tier), driver 32.0.21045.29003, Windows 11 Pro 26300. I merged `899f2d2` onto `main` at `63bcca4` with no conflicts and ran `translate --validate --pipelines` on a local dump. The baseline run had #1767 merged as well. That PR changes only the wording of the compute validator message, not any count. | | `main` + #1767 | `main` + #1676 | |---|---|---| | Mesh programs emitted / validated | 8765 / 8694 | 8765 / 8694 | | Mesh pipelines | 0 | 0 | | Reason for those 8765 | `pipeline: Erro não especificado` (the driver's E_FAIL, localized) | `pipeline: the host has no mesh shaders` | | Vertex and pixel pipelines | 14258 | 14258 | | Compute pipelines | 2733 | 2733 | | Every other reason | (baseline) | same counts | | Wall time | 2259 s | 335 s | Wall time is not a clean comparison: the driver's shader cache was warm on the second run. On the merged tree: - `cargo test --locked -p victory-shader --no-fail-fast` on the RX 5700 passed (302 passed, 0 failed, 3 ignored). - `cargo clippy --locked --workspace --all-targets -- -D warnings` was clean. On a non-English Windows, `main` reports only the driver's localized E_FAIL string, which tells a reader nothing. With this PR, the census says the host has no mesh shaders. No game data leaves the machine; only counts and reasons are shown here. *I ran these measurements with help from an AI assistant (Claude); I checked the numbers myself before posting.*
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1676:upstream-pr/1676'
git switch 'upstream-pr/1676'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1676'
git switch 'upstream-pr/1676'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1676'
git switch 'upstream-pr/1676'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1676'
git switch 'main'
git merge --squash 'upstream-pr/1676'
git switch 'main'
git merge --ff-only 'upstream-pr/1676'
git switch 'main'
git merge 'upstream-pr/1676'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1675
No description provided.