Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
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.
7e8fa4d to
00b4b1b
Compare
…n the pipeline census
6a99441 to
0b97470
Compare
translate --pipelines reported every one of the title's 8,214 mesh programs as 'pipeline: Unspecified error' on an adapter whose D3D12_OPTIONS7 mesh tier is not supported (an integrated GPU, WARP): 8,214 identical rows that read as a translator defect and bury the real refusal reasons. The runtime already knows this (host::mesh_shaders and the refusal at host.rs:324); the offline path did not ask. Host::mesh_shaders() answers the same question for the offline device, and the census asks it once per worker: a mesh program then fails with 'pipeline: the host has no mesh shaders', one bucket that names the host, and the same count otherwise. On an adapter with mesh shaders nothing changes: the same 8,214 pipelines are created on the RTX 4090 as before.
0b97470 to
20aa8cb
Compare
|
Independent Windows check of
The unsupported case was a controlled branch test on two mesh-capable adapters. No game files were used. AI-assisted (OpenAI Codex). |
|
Automated triage for the maintainers. Merge candidate. This adds Generated by Claude Code |
|
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at |
|
Follow-up on the 6th failure in my report above (
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. |
…n the pipeline census
|
Code review and RTX 5090 + WARP verification at head
LGTM. |
…n the pipeline census
|
Ready as it stands; the stale pointer in the body is fixed Head The body pointed at Two things for whoever merges, neither a request:
Not verified here: the whole-pack census counts (they need the game's archive). Written with an AI assistant. |
fuzeofficlal
left a comment
There was a problem hiding this comment.
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) 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_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.
A 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.