Shaders/ir: keep skips when body can resurrect EXEC or has scalar sid… #517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/517"
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 fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:57:31Z.
…e effects
In
ir::without_skips, removings_cbranch_execzcauses waves withEXEC == 0to fall through and execute the skipped regioninside. Previouslyskipped()exemptedReg::S(126 | 127)(EXEC_LO/EXEC_HI) from join-phi checks without verifying thatinsidekeepsEXEC == 0, and did not checkinsidefor EXEC-independent scalar side effects.s_store_*,s_buffer_store_*,s_scratch_store_*,s_atomic_*,s_buffer_atomic_*,s_sendmsg,s_sendmsghalt,s_barrier,s_round_mode,s_denorm_mode).insidethat may be nonzero whenEXECenters as0(seeded with external values other than the skip branch's ownEXECdwords), propagating zero through narrowingv_cmpx_*,s_and*/s_andn2*,s_mov_b32/s_mov_b64, and pure whole-wave sections (s_or_saveexec/s_nand_saveexecpaired with an exact full-width restore). Reject if anyEXECwrite or phi insideinside(outside a pure whole-wave section) or incomingEXECphi attargetcan become nonzero, or if a live VGPR phi attargettakes a value written inside a whole-wave section.s_or_b64/s_andn2_b64EXEC widening, inner narrowing (still allowed),s_sendmsg,s_barrier, ands_buffer_store_dword.Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:22Z.
Duplicate of #443: @AscilCH opened this patch 65 minutes earlier, and
gh pr diffreturns the same bytes for both (+429/-7 on 1 file(s), same title).Please continue in #443 so the review history and any test data stay in one place.
Thanks.
Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T07:51:47Z.
Independent verification: PR #517 merges cleanly onto main, touches only crates/victory-shader/src/ir.rs. Build: success. Tests: 252 passed, 1 failed, 6 ignored. Single failure (modules::net::tests::only_loopback_is_reachable) is pre-existing Wine environment issue (ws2_32.dll lacks WSAConnectByList) unrelated to the PRs shader IR changes. PR builds and passes all relevant tests. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.