mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1400] [MERGED] rdna2spirv: guard native DPP FI=0 shuffle source (SHADER-DPP-ABSENT-SOURCE) #1432
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1432
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1400
Author: @Okachamie
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/dpp-absent-source📝 Commits (1)
26fabdbrdna2spirv: guard native DPP FI=0 shuffle source📊 Changes
3 files changed (+21 additions, -2 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/semantic/test_dpp_eager_subgroup.py(+14 -0)📝
tools/rdna2spirv.py(+6 -1)📄 Description
Claimed in the coordination issue as: SHADER-DPP-ABSENT-SOURCE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147210154)
What and why
Native DPP FI=0 used the source-lane ballot only to mask the shuffled value, while
OpGroupNonUniformShufflestill received the raw source index. In a partial subgroup, an active lane can select an absent lane; that shuffle is undefined even when its result is masked afterwards.The FI=0 path now redirects an absent or EXEC-off source to the current subgroup lane before the shuffle. FI=1 and
--wave64-emulateare unchanged.Tested
%t31 not found in set()and passes afterward.python -I tests/semantic/test_dpp_eager_subgroup.py -v: 8 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic -j 12 --timeout 300: 475 files, 6221 tests, 0 files failed in 43 s.python -I tests/test_docs_design_rows.py: 5 tests, OK.python -I tests/test_design_contract_rows.py: 5 tests, OK.python -m compileall -q make_game.py tools tests: exit 0.git diff --check: clean.python -I scripts/check_no_game_data.pyon all changed files: clean.No game files or GPU were used. Shader-corpus translated/
spirv-valcounts were not run because no game corpus is available.GPUs tested: n/a
AI-assisted: yes
Checklist
mainat3a0af1f15and rebased cleanly.docs/design.mdDPP contract row with its CPU-only confirmation and GPU limit.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.