Shaders, CLI: name a host without mesh shaders in the pipeline census #1676
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!1676
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1676"
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?
@fiestorra on GitHub · 2026-11-24 20:41 UTC · original
fiestorra:fix/translate-mesh-report→main· +58 −9 · 2 files · 2 commits · openA census on a host without mesh shaders now says so, instead of 8,214
Unspecified errorrowsvictory translate … --pipelinesover the whole archive on an adapter whoseD3D12_OPTIONS7mesh tier is not supported (an integrated GPU, a software one) prints:8,214 identical
E_FAILrows 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 atcrates/victory-gpu/src/pipeline/host.rs:430— but the offline path, which builds its own device invictory_shader::emit::host, never asked.This pull request adds
Host::mesh_shaders()to that offline host (the same two queries the runtime makes:D3D12_OPTIONS7mesh tier at shader model 6.6) and makes the census ask it once per worker:The same run then reads:
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_ADAPTERin #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
AMD Radeon(TM) Graphics,D3D12_OPTIONS7mesh tier not supported), before and after: 8,214pipeline: Unspecified error→ 8,214pipeline: the host has no mesh shaders, with identical counts everywhere else.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 withE_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 --checkclean 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.
@BaggyALPHA on GitHub · 2026-11-25 03:29 UTC · original
Independent Windows check of
20aa8cbon upstream940d32f, using a synthetic mesh shader and a compute control. The probe calledtranslate::checkand asserted the pipeline and DXIL validation counters independently.pipeline: the host has no mesh shadersrefusal, still validated the mesh shader, and still created and validated the compute pipeline.The unsupported case was a controlled branch test on two mesh-capable adapters. No game files were used. AI-assisted (OpenAI Codex).
@Marvisak on GitHub · 2026-11-25 03:33 UTC · original
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'smesh_shadersin victory-gpu. With it,translate --pipelinesreports "the host has no mesh shaders" on such adapters instead of thousands ofE_FAILrows; on adapters with mesh shaders nothing changes. The change is small and diagnostic only. CI passes. It will conflict textually with #1648's changes totranslate.rs, whichever lands second.Generated by Claude Code
@StExpeditus on GitHub · 2026-11-25 09:14 UTC · original
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 on GitHub · 2026-11-25 09:33 UTC · original
Follow-up on the 6th failure in my report above (
draw::tests::root_views_reach_their_copy_and_read_zeros_past_it):cargo test --workspace --locked --no-fail-fastrun 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 on GitHub · 2026-11-26 00:56 UTC · original
Code review and RTX 5090 + WARP verification at head
20aa8cb391ebmerged cleanly ontomain(63bcca43c6a0):crates/victory-shader/src/emit/host.rs:204-241,apps/victory/src/translate.rs:216-223, 630):Host::mesh_shaderschecks bothD3D12_FEATURE_D3D12_OPTIONS7(MeshShaderTier != NOT_SUPPORTED) andD3D12_FEATURE_SHADER_MODEL >= 6_6, cached per worker thread inChecks::mesh.mesh_pipelinecleanly and bucket failures under"pipeline: the host has no mesh shaders"while keepingms_programs/ms_emitted/ms_validatedcounts intact; mesh-capable hosts (such as RTX 5090) continue compiling normally.cargo xtask policy:191 files ok;cargo clippy --locked -p victory-shader -p victory --tests -- -D warnings: 0 warningscargo 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.
@catminou4 on GitHub · 2026-11-24 21:42 UTC · original · approved these changes
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.
@fiestorra on GitHub · 2026-11-26 12:32 UTC · original
Ready as it stands; the stale pointer in the body is fixed
Head
20aa8cbagainstmainat63bcca43: a three-way merge applies without conflicts, and on the merged treecargo check -p victory-shader -p victory --lockedandcargo clippy -p victory-shader -p victory --all-targets --locked -- -D warningsare clean. Thecheckjob on the head is green.The body pointed at
crates/victory-gpu/src/host.rs:324for the runtime's refusal, which moved in the meantime: it iscrates/victory-gpu/src/pipeline/host.rs:430now, and the runtime query it copies iscrates/victory-gpu/src/host.rs:1038. Fixed in the description, no code change.Two things for whoever merges, neither a request:
Host::mesh_shadersor change theHwStage::Msarm, 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.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 on GitHub · 2026-11-26 13:24 UTC · original · approved these changes
Reviewed and verified
20aa8cb391eband merged ontoorigin/main(63bcca43; cleangit merge-tree):Host::mesh_shaders(crates/victory-shader/src/emit/host.rs:137-162) queriesD3D12_FEATURE_D3D12_OPTIONS7andD3D12_FEATURE_SHADER_MODELcleanly, and wiringchecks.meshper worker intocheck()(apps/victory/src/translate.rs) turns opaqueE_FAILfailures into"the host has no mesh shaders"while leavingms_emittedandms_validatedtallies intact.Non-blocking suggestion for consistency: the explicit
VICTORY_PAIRSbranch (apps/victory/src/translate.rs:293-310) creates its ownHostand callshost.mesh_pipeline(vs, ps)directly (translate.rs:299-301) without checkinghost.mesh_shaders(). Adding the same guard on theHwStage::Mspair branch (and optionally preserving unexpectedCheckFeatureSupporterrors 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(defaultand--all-features),cargo test -p victory(12 passedon PR head,18 passedmerged onorigin/main), andvictory-shaderGPU tests (emit::tests16 passed,emit::host::tests::parallel_warp_pipelines_and_draws1 passed) all pass on both RTX 5090 andVICTORY_WARP=1.LGTM.
20aa8cb391to899f2d299f@fiestorra on GitHub · 2026-11-26 14:50 UTC · original
The pair census now says it too
Head
899f2d29. Good catch: the explicitVICTORY_PAIRSbranch made its ownHostand calledmesh_pipelinewithout 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 checkshost.mesh_shaders()and prints the same sentence the rest of the census uses: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 warningsclean.Written with an AI assistant.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.