Repository navigation
Shaders: run single-wave Wave64 mesh groups on Wave32 hosts - #1
Draft
mohammadallami75-ops wants to merge 1 commit into
Draft
mohammadallami75-ops wants to merge 1 commit into
mohammadallami75-ops wants to merge 1 commit into
Conversation
Reuse console control flow, key exchanges by the flat group ID, and lower a single dominating mesh allocation to DXIL output counts. Validate against synthetic HLSL geometry and GPU readback. AI assistance: OpenAI Codex authored the implementation and synthetic tests and ran the reported checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Emulates one 64-thread console mesh wave on Wave32 hardware. This is a dependent draft on Marvisak/VIctory#439 (via upstream Marvisak#320, Marvisak#233 and Marvisak#223), with current upstream main
ffe310ein its ancestry. The mesh-only commit iscd5c427. Related upstream reports are #778, #71 and #564. Upstream #578 is a separate refusal path. Upstream currently limits PR creation to collaborators, so this draft is in the fork and shows only the mesh commit.Mesh shader model 6.6 has no WaveSize declaration. The mesh path uses the flat group ID for console lane numbering, shared-memory gathers and ballots, and uses uniform console branches with EXEC guarding per-lane effects. It orders LDS accesses across both hardware waves and lowers a single allocation that dominates exports to runtime D3D12 mesh output counts, with bounds checks and explicit primitive culling.
Other workgroup sizes, unsupported allocation control flow, DPP/swizzle, scatter permutes, recognized whole-wave reduction sections and descriptor waterfalls are refused on this path. Fixture coverage is synthetic. Title dispatch coverage, world rendering and performance are unverified.
Verification
cargo test --workspace --locked: 380 passed, 6 ignored on retry. The first parallel run hit the existing frame-timing test while Clippy was running. A serial workspace run also passed with 380 passed and 6 ignored.-D warningsandcargo xtask policypassed.VICTORY_PC_DXCto the PCdxc.exeandVICTORY_DXILto its accompanyingdxil.dll, then runcargo test -p victory-shader --locked mesh_wave_tests -- --nocapture. The test selects a Wave32-only hardware adapter.AI assistance: OpenAI Codex authored the implementation and synthetic fixtures and ran the checks on the reporter's machine. No game files were used.