Repository navigation
Translate RDNA backward permutes within each half-wave - #2
Closed
Raxstreams wants to merge 1 commit into
Closed
Raxstreams wants to merge 1 commit into
Raxstreams wants to merge 1 commit into
Conversation
Owner
|
Taken into Review
Tested on an RTX 5070 (32..32) and a Radeon iGPU (32..64), Windows 11, each module through
Still open from #1, if you want either: the note in Synthetic programs only; no title data. AI-assisted (Claude Code). |
r4tedx
added a commit
that referenced
this pull request
Nov 24, 2026
Marvisak#439's branch, shader/console-flow-lds, went from e49302a to f653ea4. The stack came into this tree through integration/wave64-with-180, whose commit has one parent, so the four commits are picked onto this tree in order rather than merged: - a32c177: test, LDS written and read in different masked blocks. - 8876ed3: the startup warning on hosts without 64-lane waves says what the stack does now (one string in crates/victory-gpu/src/host.rs). - 416714c, from Raxstreams's pull request #2 (git author Peter Bonanni): ds_bpermute_b32 lowered as a read within the lane's own 32-lane half. - f653ea4: tests for it, and the plan document. Conflict resolution, crates/victory-shader/src/emit/lower.rs, Lower::new, `in_half`: Marvisak#180's `implicit_derivatives` and 416714c's `ds_bpermute_b32` are both kept. The three `permute` conditions took 416714c's text unchanged; Marvisak#98's v_permlane16 handling is in emit/wave.rs and its name does not contain "permute", so they do not meet. The added and removed lines of this merge are the same as those of `git diff e49302a f653ea4`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
This adds ds_bpermute_b32 to the half-wave operations in the wave64-on-wave32 translator. Each destination reads a byte-indexed lane in its own 32-lane half. The source ballot supplies zero for an inactive source and the EXEC guard preserves inactive destinations. See section 10.4 of the AMD RDNA 2 ISA reference.
All 16 split-wave tests passed on an RTX 3080 Ti. Two new synthetic dispatches check all 64 outputs, including wraparound, the byte offset, and disabled sources and destinations. I also tested this instruction implementation in a larger integration with a checkerboard shadow-mask compute shader. Its PSO passed offline and D3D12 pipeline statistics recorded 460,800 compute invocations during the first scene. The scene color is still black in that integration.
The base is the head of Marvisak#439. The change is independent of the inclusive-prefix follow-up. Only source and synthetic tests are included.