shader: lower compute quad DPP OR (rebased fix) #1651
No reviewers
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!1651
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1651/head"
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?
@KelboLive on GitHub · 2026-11-24 16:06 UTC · original
KelboLive:pr/1613→main· +207 −9 · 8 files · 2 commits · closed without mergingSummary
Rebased version of upstream PR #1613 by
JustinDCosta.Changes
Commit 1:
shader: lower compute quad DPP OR— Adds narrow gfx1013 compute translation forv_or_b32_dppwithquad_permand full row/bank masks.Commit 2:
shader: index compute DPP quads by group thread— Fixes review concern: replaces hardware-dependentWaveGetLaneIndex()/WaveReadLaneAt()with logical 1D quad indexing via group-shared memory (groupshared uint dpp_stage[{dims[0]}]), requiring explicit 1D groups (dims[1] == 1 && dims[2] == 1).Review status from #1613
CHANGES_REQUESTED— requested proven 1D quad layout with SM 6.6 semantics or explicit logical thread ID indexing. Fixed in commit 2.COMMENTED— approved. Tests pass on Linux (LLVM-19) and Windows Server 2025 / WARP.Validation
The second commit was reviewed and verified against the original concern. Tests pass on WARP and NVIDIA hardware (per the author's report on the original PR). No remaining inline review comments.
AGENTS.md compliance
Refs #1543
@R0Y00 on GitHub · 2026-11-24 16:20 UTC · original
Thanks for helping with the queue. This branch and #1613 share the same commits and current conflict. We are keeping #1613 as the merge path with the original author and review history. The logical-quad revision already passed the independent RTX and WARP retest. The remaining work is to reconcile it with main and retest.
@tedin7 on GitHub · 2026-11-24 16:10 UTC · original · reviewed
Reviewed at
5c599b999a400a243753f1ce8f3d0d914734f67e.The rebased lowering in
tools/compute_store_aot.pyrestrictsv_or_b32_dpptogfx1013withquad_perm:[0-3,0-3,0-3,0-3], fullrow_mask:0xf bank_mask:0xf, SGPR/VGPR <= 255, no active guard span, and 1D groups (dims[1] == 1 && dims[2] == 1 && dims[0] % 4 == 0). Staging throughgroupshared uint dpp_stage[dims[0]]withGroupMemoryBarrierWithGroupSync()before and after the quad read avoids hardware wave-lane assumptions, andtests/compute_check.cpp/tests/compute_store_check.pyverify both the quad permutation andlocal.xidentity.Checks executed locally:
tests/docs_links_check.py,tests/bidi_controls_check.py): passed.python3 -B tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /lib/x86_64-linux-gnu/libLLVM.so.19.1, includingdpp_controlsanddpp_binary): passed.cmake --build --preset dev --target offscreen_check,ctest --preset dev -R '^(compute_store_aot_dpp_warp|compute_store_aot_warp|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|offscreen_warp)$' --no-tests=error --output-on-failure): 5/5 passed./O2(cmake --build --preset release --target offscreen_check,ctest --preset release -R '^(compute_store_aot_dpp_warp|compute_store_aot_warp|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|offscreen_warp)$' --no-tests=error --output-on-failure): 5/5 passed.source_threadintools/compute_store_aot.pyfrom(local.x & ~3u) | ({selectors})tolocal.xcauseddpp_controls()to fail withAssertionErroras expected.AI-assisted; commands listed were executed locally.
Pull request closed