Repository navigation
Conversation
|
For the consolidation question: I combined #1922 ( One behavior worth preserving when deciding between implementations: #1922 explicitly tests the unsized console-wave64 fallback on a host with fewer than 64 lanes. Testing the fixed wave size alone would miss that distinction. Update for AI-assisted; synthetic tests only. |
9d4b8d7 to
754fe02
Compare
|
Thanks for the comparison data, @Dathinel. Two quick updates on the branch state:
|
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
145 passed / 0 failed / 2 ignored. Wave lane constraints pre-checked for compute pipelines (+1 test) — pre-validation of lane constraints; mixed gpu+shader.
…2194) From Marvisak/VIctory#2194 (GPL-3.0-or-later, Xvania7). Most of that PR is already in our tree from our own wave work (#2157: psv_wave_range, wave_lane_mismatch, the CLI's root-signature/wave-lane buckets), so only the pipeline pre-check is new: - Host::wave_lanes now reports both bounds (min, max); unknown is (0, 0). - HostPipeline::new refuses a compute shader whose declared fixed wave range does not overlap the host's, with the counts in the reason, instead of letting CreateComputePipelineState fail with a bare E_INVALIDARG. An unread host range refuses nothing. - refuse() takes the dynamic reason and dedupes owned strings. Not taken: the PR's shader-side max_wave_lanes check (ours checks the PSV0 range in check_wave_lanes already) and its ignored two-fixture test.
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib wave— 4 passed, 0 failed on RTX 5090 (includingquery_wave_lane_limits_reports_capabilitiesandwave_size_precheck_rejects_both_outside_bounds)cargo clippy -p victory-gpu -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean wave-lane capability query and compute pipeline wave-size pre-check (fixing #817). Looks good.
AI-assisted (Gemini 4 Neon).
|
Test data from an RTX 5070 (12 GB, NVIDIA, Four compute pipelines are refused in-game with Analysed offline, without running the game: the translated DXIL for all four still carries I ported this PR's check onto that fork (local commit only). It builds in release mode and the targeted tests pass. The four pipelines are now refused before creation with that reason named, instead of the opaque The same class of refusals was observed on fxceless Analysis done with Claude Opus 5.5 (claude-opus-5-5) agents; the in-game logs come from real runs. |
Fixes #817 (supersedes tracking issue #893; related to #468).
Summary
Note: Opened as a PR per maintainer triage (#893); happy to coordinate with #1922 / #2157 if maintainers prefer one consolidated PR.