reprend #2362: rdna2spirv: forward DPP src0 neg/abs to op readers instead of eager 32-bit modify (SHADER-DPP-F16-AND-SIGN-MODS) #2730
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2730"
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?
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:38:41Z.
Carries #2362 by @ShotTechOp, because it conflicts with
mainafter #2566 and the reminder to mergemain(https://github.com/ProjectLeonida/mandy/pull/2362#issuecomment-7232690736) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.Item:
SHADER-DPP-F16-AND-SIGN-MODS-CARRY(claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original itemSHADER-DPP-F16-AND-SIGN-MODS).What this branch is
cf622ce9c, unchanged (no rebase, author commits kept).main(from the carry preparation of 29/11) that resolves the conflict, then a merge of currentmainf9f3ec4c6, which had a new conflict (below). Both merge commits carryCo-authored-bythe author.What conflicted and how it was resolved
tools/rdna2spirv.py(2 hunks):Gen.dpp_insnkeepsmain's pass-through ofv_cvt_f32_f16; every other op getsneg/absonargs[first](main's index) instead of the eager 32-bitmodify, as the PR does.docs/design.md, DPP row: the PR's sentence onmain's text.f9f3ec4c6:docs/design.md, DPP row:mainrewrote its absent-lane part (present-lane ballot for FI=1);main's text kept, the PR's sentence onGen.dpp_insninserted at the same place (after the HW-DPP-NEG-INVALID-LANE sentence).Tests
mainf9f3ec4c6merged), Windows 11, Python 3.12, no GPU used:tests/semantic/test_dpp_f16_mods.py: 4 OK;test_dpp_eager_subgroup.py: 8 OK andtest_absent_lane_ub.py: 18 OK (main's new DPP tests);tests/test_design_contract_rows.pyandtests/test_docs_design_rows.py: OK.main'srdna2spirv.py): 3 failures; full semantic suite 530 files / 6529 tests, same 2 failures asmain.python -I scripts/check_no_game_data.pyon every file this PR changes: clean.ctest, the full translator suite).Depends on: none.
Needs an independent verifier before merge (red/green on another machine), as for any carry.
AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:46:11Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest, no GPU),
mainf9f3ec4c6.main+ only this PR's tests):tests/semantic/test_dpp_f16_mods.py: 1 failed.main+merge --no-ffofde2acaf95): 4 passed.ctestand the rest of the suite (CI).Not independent: this PR and this check share the same owner (OreoFR). Treat it as a second-machine run, not an independent review.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T14:16:40Z.
Independent check on Windows/NVIDIA (not the author), at
de2acaf95.tests/semantic/test_dpp_f16_mods.py: 4 passed.test_dpp_bound_ctrl_modifiers.py2 passed,test_dpp_eager_subgroup.py8 passed,test_dpp_compare.py13 passed.run_gpu_tests.py --filter dppon the builtruntime/build: 10/11 passed, 1 skipped (cs_dpp_w64, no 64-wide subgroup), includingcs_dpp_ops,cs_dpp_cmpandcs_dpp_cmpx.Machine: NVIDIA RTX 4070 Ti SUPER, driver 621.01 (Windows 32.0.16.2101), Windows 11 Pro 10.0.26200.9711, Python 3.12.10, llvm-mc 21.1.8. The new f16/sign-modifier rule is still CPU-only for the forms the PR adds (no GPU fixture covers them); the existing DPP fixtures are green. No regressions seen.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T14:40:18Z.
Independent Vulkan GPU A/B for the new DPP modifier cases
I tested
de2acaf95merged ontomainb17b22d33(tree8ade2fcd9) on CachyOS. I translated the same synthetic cases fromtests/semantic/test_dpp_f16_mods.pywith each revision, dispatched them throughvk_compute_testwith the push-constant tail in a UBO, and compared the raw output words lane by lane.MEASURED, mismatching words on
main→ with this PROn both GPUs, negation on
mainproduced the quiet NaN0xffc00001and the signaling-NaN class test returned false. With the PR the result was0xff800001and the class test returned true in all 32 lanes. The signed-zero case passed on both revisions.The four stock CPU tests gave 1/4 on
mainand 4/4 with the PR. The four related DPP and absent-lane suites gave 41/41 on both. All 12 generated modules passedspirv-val --target-env vulkan1.2(SPIRV-Tools 2026.4). The Vulkan validation layer was unavailable. A second Codex agent independently recomputed the GPU counts from the raw buffers.Synthetic inputs only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:22:17Z.
Verified by MoonEyes (another owner than OreoFR) on head
de2acaf95: Windows 11, Python 3.14, no LLVM, no GPU run.mainb17b22d33:tests/semantic/test_dpp_f16_mods.py4 OK; without the change 3 failures.tools/rdna2spirv.py --wave64-emulate, shards 0, 12, 24 and 36 of 48 (2,209 shaders),main20fe0c754againstmain+ this pull request: 2,209 translated and 2,209 passspirv-valin both; the SPIR-V is byte-identical (this slice holds no shader that shows the change).AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:24:38Z.
Merging. Head
de2acaf95merges cleanly withmain1c78b8219and does not force a rebase of #2566. Counts equal and SPIR-V byte-identical on the slice; red/green on Windows 11 by another owner. Merged by MoonEyes.AI-assisted (Claude Code).