cpp-migration: lower DPP16 quad_perm in the direct C++ compute path #2936
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2936
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Leyukaka on GitHub · 2026-11-26 22:06 UTC · original
Target branch
cpp-migration. Part of #2935 (instruction coverage). I am taking this; please say if you already have it locally and I will drop it.Gap:
gfx1013_compute_native.cppaccepts DPP16 pattern values 0-255 (quad_perm) only for graphics, so the direct compute path keeps only the row mirrors and refuses every computequad_permwith "unsupported DPP lane selection".Measured on
7f951fd3withcompile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsover a local capture of 2,689 compute requests (counts and instruction shape only). The request reader was patched locally to main's28csrevision; the reader revision is tracked in #2933.quad_permform:v_or_b32_dppquad_perm:[1,0,3,2]v_add_nc_u32_dppquad_perm:[1,0,3,2]v_min_f32_dppquad_perm:[1,0,3,2]v_subrev_f32_dppquad_perm:[0,0,0,0]v_add_f32_dppquad_perm:[1,0,3,2]v_max_u32_dppquad_perm:[1,0,3,2]Plan:
gfx1013_direct_compute.inlthe waymirror()lowers the row mirrors:waveReadLaneAtfrom lane(lane & ~3) | ((pattern >> 2 * (lane & 3)) & 3);mirror()'s handling of a disabled source lane (bound_ctrlzero, or the old destination, or fetch-inactive), its operand-modifier rules and its 2-source ALU limit;row_share/row_xmaskstay refused.Tests, in the style of
native_dpp_mirror_check.py, run on hardware against a CPU reference, with a capability skip where 32-lane waves are unavailable:quad_perm:[1,0,3,2],[0,0,0,0], the identity[0,1,2,3]and one non-involutive permutation;bound_ctrland fetch-inactive;AI-assisted.
@MasterDomino on GitHub · 2026-11-26 22:40 UTC · original
Closed by #2937, merged into
cpp-migrationas1cd48bd0.native_dpp_quad_hardwarepasses on an RTX 5080 (author) and on an RX 9070 XT, and a reversed-lane-order mutation fails it. AI-assisted.