compute: accept VCC as destination in 64-bit scalar bitset #3416
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!3416
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3414"
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?
@Ammmae0x on GitHub · 2026-11-28 23:41 UTC · original
Ammmae0x:compute/salu-bitset64-vcc→main· +272 −1 · 3 files · 1 commits · merged 2026-11-29 08:43 UTCAccept
VCC(106) as the destination ofs_bitset0_b64/s_bitset1_b64in the direct C++ compute path.Refs #3226, #2935
src/gfx1013_direct_compute.inl: the bitset guard now allowsdst == 106when the form is a 64-bit pair in compute mode (operand32(i, 106/107)already reads/writesvcc_lo/vcc_hi).EXEC(126),M0(124), odd SGPRs, a non-pairVCCdestination inb32, andVCCin the graphics-input path are still refused with the existing"bitset requires a general scalar destination or aligned pair"message.preserves_sop1already lists both 64-bit bitset forms, so SCC tracking is unchanged (bitset leaves SCC alone).VCCon the 64-bit forms:tests/compute_salu_bitset_check.pyrefusesVCConly fors_bitset1_b32(unchanged), and its 64-bit refusals belong to the separate Python AOT translator. No docs change was applicable.tests/native_salu_bitset64_vcc_check.py+tests/cmake/native_salu_bitset64_vcc.cmake(_controls/_hardware,SKIP_RETURN_CODE 77,TIMEOUT 60): 16 cases (12 wave64, 4 wave32) runnings_bitset0_b64thens_bitset1_b64onVCCfrom the same initial pair, covering low-word bits 0..31, high-word bits 32..63, wrapped indices 64/65/96/127, SGPR, inline and literal bit indices, the preserved other half, and preservedSCC(both 0 and 1). 8 negative controls (EXEC, M0, odd SGPR,b32with VCC, for both ops) and 5 reference mutants.Linux checks (this host, no DXC/Windows):
tests/form_coverage_check.py: passedtests/docs_links_check.py: passed (160 files, 682 links)tests/bidi_controls_check.py: passed (2582 files)py_compileon the new test: passed/tmpcopies failed as expected;/tmpcleanedtests/compute_salu_bitset_check.py controls: passedWindows verification (compile_dxil, native CTest) still pending.
Windows Verification (
9efc1be6)@Leyukaka on GitHub · 2026-11-29 04:15 UTC · original · approved these changes
Approve
9efc1be6. Reviewed by reading the diff and the cited sources; nothing built or run here. Line numbers are onmain(212d4b5f) unless marked.src/gfx1013_direct_compute.inl: the guard (:3815onmain,:3818at this head; refusal:3816->:3819) now also accepts ab64destination of 106 in compute, and nothing else. 107 (odd),m0, EXEC, ab32VCC destination and graphics input stay refused. The body is unchanged: the index and both words (operand32(i, dst),operand32(i, dst + 1)) are read before either write, and the index is masked toS0[5:0](shiftmasks 5 bits,:1376-1378;a & 32selects the word). This matchesD.u64[S0.u[5:0]] = 0/1, SCC unchanged (tests/startup_gfx2hlsl_s_bitset64_check.py:10-11), with a 32-bitS0(tools/disasm_rdna2.py:2402). In compute, 106/107 are ordinary numeric words foroperand32(:180-183). The analysis resets both words for SOP1_b64(src/gfx1013_compute_native.cpp:807-819), andpreserves_sop1lists both forms (:2759-2767).mainasserts this refusal.tests/compute_salu_bitset_check.py:132,138-139go through the Python AOT path._controls. Droppingpair &&fails the twob32VCC controls; widening== 106to>= 106fails the EXEC andm0controls. Dropping!graphics_inputhas no control, butoperand32already refuses 106 in graphics (:176-177). The_controlsDXIL checks only look foror/and/xor i32and for the absence of four i64 patterns, and the 5 "reference mutants" mutate the Python reference, not the C++. A wrong value would be caught only by_hardware. Not covered: VCC as both destination and index.prpreset filter (CMakePresets.json:51) has nonative_salu_*. The non-PR job runsdevwith-E '_hardware$'(.github/workflows/windows.yml:498), so the_hardwareevidence is the author's run in the PR body.git merge-treeof this head ontomainis clean. #3406 (@@ -3639), #3408 (@@ -3680), #3409 (@@ -3700) and #3414 (@@ -3563) change other hunks of the same file than this one (@@ -3812) and share no test or doc file with it; the combined merge was not checked.docs/experiments/entry for the new test (CONTRIBUTING.md:30,88).github-bot referenced this pull request2026-12-02 07:05:31 +00:00