Repository navigation
lane_masks: track v_and_or_b32, v_xnor_b32, and v_bfi_b32 in VECTOR_BITWISE - #4367
kotekompotek wants to merge 0 commit into
Conversation
|
Tested
No game data. AI-assisted (Gemini, Antigravity). |
|
Tested 3637cd8 on Arch Linux (in a VM), CPython 3.14: pass.
|
|
Tested
No GPU, no game data. AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 3637cd86 on Windows 11: tests/test_lane_masks.py -> ok; tests/semantic/test_lane_masks_vector_bitwise.py -> 4 tests, OK; git diff --check clean.
lane_masks now tracks v_and_or_b32, v_xnor_b32 and v_bfi_b32 as vector bitwise mask producers, and the new cases plus the existing mask tests pass. No blocking issue.
3637cd8 to
b90ef06
Compare
|
Tested b90ef06 on Windows 11 (26200), Python 3.12: pass. |
|
Tested b90ef06 merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md
b90ef06 to
dde82f2
Compare
Claimed in the coordination issue as: #4257 (comment)
What and why
AI-assisted contribution (CPU-verified locally on Windows 10 Pro / Python 3.12.6; synthetic shaders only, no game data).
Adds
"v_and_or_b32","v_xnor_b32", and"v_bfi_b32"toVECTOR_BITWISEintools/lane_masks.py. All three instructions compute per-lane 32-bit bitwise combinations (andrdna2spirv.pyalready models all three without operand modifiers changing mask bit meaning). Because they were absent fromVECTOR_BITWISE, building a per-lane wave mask with them leftwrite_all_lanes = False(leaving inactive lanes holding stale values) and broke downstreamv_readfirstlane_b32whole-wave mask reconstruction.Checked open PRs and
#2885(now merged onmain) plus#3225: this change only adds these three opcodes toVECTOR_BITWISEplus dedicated unit/semantic tests anddocs/design.md, and is rebased cleanly onmain.Tested
CPU-only (Windows 10 Pro x64, Python 3.12.6; no
llvm-mc,spirv-as/spirv-val, Windows SDK10.0.26100, or GPU runtime build available locally):tests/test_lane_masks.pyfailed (AssertionErroronv_and_or_b32), andtests/semantic/test_lane_masks_vector_bitwise.pyfailed on 3 of 4 tests (Wave32:32 != 18,Wave64Native:64 != 34,Wave64Emulated:0 != 6; non-mask EXEC control passed).3637cd86on03b09a08):python -I tests/test_lane_masks.py->okpython -I tests/semantic/test_lane_masks_vector_bitwise.py -v->Ran 4 tests in 1.437s OK(Wave32 & Wave64 native execution viaspirv_mini_interp.py,--wave64-emulateSPIR-V structural check, non-mask EXEC control)python -m pytest tests/test_wave64_halves_fixtures.py tests/test_salu_diff.py tests/test_crosslane_fuzz.py -q->85 passed, 3 skipped in 26.41s(llvm-mc/spirv-valskips)tests/test_docs_design_rows.py(2 OK),test_docs_repo_paths.py(2 OK),test_docs_links.py(6 OK),test_docs_list_items.py(2 OK),test_text_write_line_endings.py(3 OK),test_resource_hygiene.py(2 OK),compileall,git diff --check-> all passed.Checklist
docs/design.md, with how it was confirmed.