Shaders: a scalar joining a lane mask and a number lowers in pixel and vertex programs #1073
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1073
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1073/head"
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?
@undeadhuman37 on GitHub · 2026-11-24 15:28 UTC · original
undeadhuman37:fix/mask-phi-ballot→main· +84 −2 · 2 files · 1 commits · closed without mergingA register can hold a compare result's high dword on one path and a loaded number on another. The join's mask side was refused as "a lane mask read as data". A pixel or vertex program now takes the mask's ballot as that incoming value (counts and zero tests mean the same on any wave size).
Known limit: the ballot is the host wave's, so a join read some other way would differ from the console.
Measured offline over the shader corpus (26148 programs):
Tests: a synthetic wave64 pixel program fails to lower before the change and lowers after.
cargo clippy -p victory-shader --all-targets -- -D warningsis clean. Not run on a GPU, hence draft.No game data. AI-assisted: written with Claude Code (Claude Sonnet 5.5).
🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 00:31 UTC · original
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Draft. A register joining a mask and a number in pixel/vertex programs: main resolves these joins by proving the mask edge dead or the join data (dead_on_edge, live_edges, joins_loaded;
0b35b7fe,a7fc47af), 250 to 4 programs, without taking a host-wave ballot as the console's number.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed