Repository navigation
Shaders: a test of lane-mask loops at a triangle edge (ignored: defect) - #3571
Open
kilolimaVI wants to merge 1 commit into
Open
kilolimaVI wants to merge 1 commit into
kilolimaVI wants to merge 1 commit into
Conversation
On the console, whole-quad mode puts a pixel program's helper lanes in EXEC, so a loop that serves one value per pass (s_ff1 of EXEC, v_readlane, v_cmpx) serves them too, and a quad read of a helper's result gives its value. The host's ballots leave helper lanes out (before shader model 6.7's WaveOpsIncludeHelperLanes), so a helper is never served. helper_lane_tests draws such a loop over a triangle whose edge crosses quads (16x16, 136 pixels) and reads each pixel's x neighbour with DPP quad_perm. On main a neighbour reads 0 for 8 pixels on a Radeon 780M (RDNA3) and 18 on WARP; with Marvisak#2373's wave operations over helper lanes (validation made non-fatal) 0 on both. Ignored as a defect, as semantics_tests does for an open one, until a fix lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent verification of the PR author's shader-package parser tests at
Main baseline pin: Windows x86_64 MSVC native runs. Local and remote source snapshots matched before and after each check. The adaptation applies the PR diff without additional source edits. AI-assisted verification. |
This was referenced Nov 28, 2026
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.
On the console, whole-quad mode puts a pixel program's helper lanes in EXEC, so a loop that serves one value per pass (
s_ff1of EXEC,v_readlane,v_cmpx) serves them too, and a DPP quad read of a helper's result gives its value. The host's ballots leave helper lanes out (before shader model 6.7'sWaveOpsIncludeHelperLanes), so a helper is never served and its quad neighbour reads 0.lower.rsdescribes this; nothing measured it.Test (
emit/helper_lane_tests.rs)lane_mask_loops_serve_helper_lanes_at_a_triangle_edge: a hand-assembled wave64 pixel program runs that loop over a per-pixel key, then reads the x neighbour's result withquad_perm:[1,0,3,2], drawn as a triangle whose edge crosses quads (16x16, 136 pixels), on the hardware adapter and WARP. Neighbour results wrong:It is
#[ignore = "defect: ..."], assemantics_testsmarks an open defect, so CI is unaffected; run it with--ignored. Whichever fix lands (#2373 or another) can drop theignore.Only this new file and its
modline; no change in behaviour.cargo clippy -p victory-shader --all-targets [--all-features] -- -D warningsclean.AI-assisted (Claude).