mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1468] OLD-9919: wave64_halves: clear ('vote', 'exec', ...) on EXEC writes and propagate SCC uses taint (SHADER-820) #1498
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#1498
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/1468
Author: @Tortoche
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:old-9919📝 Commits (2)
eb1638awave64_halves: clear ('vote', 'exec') on SCC-preserving EXEC writes and add ps_w64_c_vote_{rewrite,exec} (OLD-9919, SHADER-820)284cbfawave64_halves: clear 3-tuple ('vote', 'exec', ...) tags and propagate SCC uses taint in exec_write (OLD-9919)📊 Changes
7 files changed (+169 additions, -3 deletions)
View changed files
📝
docs/design.md(+1 -1)➕
runtime/test/shaders/ps_w64_c_vote_exec.asm(+31 -0)➕
runtime/test/shaders/ps_w64_c_vote_rewrite.asm(+33 -0)📝
runtime/test/shaders/w64_graphics.py(+2 -0)📝
tests/semantic/test_wave64_halves_soundness.py(+85 -0)📝
tests/test_wave64_halves_fixtures.py(+2 -0)📝
tools/wave64_halves.py(+15 -2)📄 Description
Item ID:
OLD-9919(SHADER-820)Carries forward Draft
#187(old-pr/9919byLuiz Neves/LouisRiverstone, with original commit authorship preserved ated9ea453e), rebased ontomain(364ab4eab), plus follow-up soundness fix (2ab9758e0) for 3-tuple("vote", "exec", "empty")clearing andusesSCC taint propagation inexec_write.Claimed in
#14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147742087AI-assisted: yes
Summary
tools/wave64_halves.py(Analysis.exec_write):("vote", "exec")and 3-tuple("vote", "exec", "empty")tags onst["g"]["scc"]wheneverEXECis rewritten by anSCC-preserving instruction (v_cmpx,s_mov_b64,s_cselect_b64,s_cmov_b64, or any op withoutsccindefs) or on fallbackEXECwrites.uses(e.g.,sccons_cselect_b64 exec, .../s_cmov_b64 exec, ...) intomton the non-v_cmpxexec_writepath.runtime/test/shaders/ps_w64_c_vote_rewrite.asm,runtime/test/shaders/ps_w64_c_vote_exec.asm,runtime/test/shaders/w64_graphics.py,tests/test_wave64_halves_fixtures.py: add and register the twoSHADER-820GPU fixtures (TierC,tainted-branch).tests/semantic/test_wave64_halves_soundness.py: add VS soundness/divergence tests and pure-Python PS classification tests covering vote-on-EXECreset, 3-tuples_cmp_eq_u64 exec, 0clearing (vs_exec_vote_cmp_eq_mov,vs_exec_vote_cmp_eq_cselect),s_cselect_b64 execSCC taint/staleness (test_s_cselect_exec_reads_scc_taint), clean scalar-compares_cselect_b64 execinvariant (vs_clean_cselect_exec), rewritten mask, andv_cmpx.docs/design.md: document theEXECvote reset rule in theSHADER-10contract row.Tests Executed (Linux x86_64 CPU, no GPU/retail corpus run)
python3 -I tests/semantic/test_wave64_halves_soundness.py -v: 37/37 passedpython3 -I tests/semantic/test_wave64_halves.py: 126/126 passedpython3 -I tests/semantic/test_wave64_halves_wqm_uvote.py: 18/18 passedpython3 -I tests/semantic/test_wave64_halves_partial_dst.py: 13/13 passedpython3 -I tests/semantic/test_wave64_halves_readlane_uniform.py: 2/2 passedpython3 -m pytest tests/test_wave64_halves_fixtures.py -v: 9 passed / 1 skipped (test_fixtures_are_classified_as_their_headers_sayskipped due tollvm-mcabsent onPATH)python3 -I tests/test_design_contract_rows.py: 5/5 passedpython3 -I tests/test_docs_links.py: 16/16 passedpython3 -I tests/test_text_write_line_endings.py: 3/3 passedpython3 -m compileall -q make_game.py tools tests: OK (exit 0)python3 -I scripts/check_no_game_data.pyon all 7 modified/added files: OK (exit 0, zero game data)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.