compute: accept EXEC as a 64-bit scalar operand in direct compute #3247
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!3247
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3245"
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-28 01:39 UTC · original
Leyukaka:wave64-exec-salu→main· +147 −6 · 6 files · 2 commits · merged 2026-11-28 03:03 UTCPart of #2935, claimed in #3226 (item 1 of my third comment there). Target branch
main.Change (
src/gfx1013_direct_compute.inl): direct compute accepts EXEC (126) as a 64-bit scalar operand.s_bcnt0/s_bcnt1,s_ff0/s_ff1,s_flbit_i32_b64ands_flbit_i32_i64, which were refused as "invalid s_bcnt1_i32_b64 source" and the like.s_bfm_b64destination, which was refused as "invalid s_bfm_b64 destination".s_bfm_b64destination. Nothing guarantees both of its words in wave64, for example after a write tovcc_loalone.tests/native_salu_bitscan64_check.py: its EXEC-source refusal control now usesexec_hi(127), which stays refused, because EXEC (126) is accepted.Tests. The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, Release, on
main7364e6a9plus this commit.native_wave64_exec_salu_hardwarecovers wave64 requests with 64 and 128 threads, two groups each:s_bcnt1_i32_b64on a sparse EXEC that spans both halves, giving 15 in the first guest wave and 16 in the second;s_bfm_b64 exec, 16, 0, after which only guest lanes 0-15 store;s_bfm_b64 exec, 32, 32, after which only lanes 32-63 store;s_bcnt1_i32_b64on EXEC with an explicitexec_hi.s_bcnt1_i32_b64on VCC,s_bfm_b64into VCC, and an odd source pair.main'scompile_dxil, the new test stops at "invalid s_bcnt1_i32_b64 source".-R "native_wave64|native_salu|native_slot67|native_direct_container".Measured with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests,main7364e6a9against this commit.s_bfm_b64destination,s_bcnt1_i32_b64source ors_ff1_i32_b64source refusals above.AI-assisted.
@R0Y00 on GitHub · 2026-11-28 02:48 UTC · original · requested changes
Reviewed
01dc357b5bon main4d7265c0(trial6d0c144a78). The EXEC low and high words are read as a pair for the bit operations, and the mask instruction writes both words. The 64- and 128-thread fixtures tested masks spanning both host halves, write suppression outside EXEC, and the wave32 high-word control. VCC and odd pairs still refuse in the affected operations. Both Debug and Release /O2 passed 7/7, no skips.RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 26200.9974, standalone replay without the debug layer. Required Windows CI passed.
Please update docs/experiments/native-direct-salu-bitscan64.md and docs/experiments/native-salu64-ops.md before merge. The former still lists EXEC as a source refusal (the control is now EXEC_HI), and the latter says EXEC destinations are refused without listing the new s_bfm_b64 case. Please include the new fixture command and keep the unrelated CSELECT/NOT limits for #3264.
@Leyukaka on GitHub · 2026-11-28 02:54 UTC · original
Thanks for testing it. Pushed
08b6cff5, docs only:docs/experiments/native-direct-salu-bitscan64.mdnow lists EXEC (both words, in wave32 and wave64) as a validS0. It says the fixture reads it back withs_bcnt1_i32_b64only. It explains that the source refusal control usesexec_hibecause of that, and gives thenative_wave64_exec_salu_hardwarecommand.docs/experiments/native-salu64-ops.mdnow listss_bfm_b64into EXEC. Thes_cselect_b64/s_not_b64EXEC destination refusal is kept, and that limit is left to #3264. The note also covers what the new fixture checks:exec, 16, 0andexec, 32, 32in wave64 64- and 128-thread groups, through a per-lane store. It gives the command as well.No code change.
AI-assisted.
@R0Y00 on GitHub · 2026-11-28 03:03 UTC · original · approved these changes
Reviewed
08b6cff511. Its change from01dc357bis limited to the two experiment notes. Both describe accepted EXEC pairs, the EXEC_HI negative and the coverage actually run. The CSELECT and NOT limits remain documented for #3264.I reran the seven focused cases on main
c827d8baplus this head (tree6fc3db43c8). Debug and Release /O2 each passed 7/7, zero skips. The docs link check passed. Maina0b45d43adds only the staging guard and its documentation/preset fixture, giving clean tree2d76d3f3e7with the same compiler and EXEC fixture files.RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 26200.9974, standalone replay without the debug layer. Required Windows CI passed on
08b6cff5.