Shaders: a select or carry-in on an untracked mask tests this lane's bit #2539
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!2539
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2539"
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?
@kais7654 on GitHub · 2026-11-25 15:30 UTC · original
kais7654:shader/untracked-mask-lane-bit→main· +124 −42 · 2 files · 2 commits · openRebases #1084 by @undeadhuman37 onto main (
940d32f), with the authorshippreserved. Its merge had grown conflicts with the stride-heap work and the
lane-aware mask detection main already carries; this picks the commit onto
main and resolves them per the integration discussed on the PR.
What it does:
v_cndmask_b32andv_add_co_ci_u32/v_sub_co_ci_u32/v_subrev_co_ci_u32were refused when their scalar mask was not onestructurefollowed (a plain SGPR number — "a select on an untrackedmask", "a carry-in from an untracked mask"). In compute with console
lanes, the lane now tests its own bit of the mask register (the high pair
in wave64). Inline 0 and -1 masks are constants. The detection main
already has for these opcodes now leads to accepted lowering instead of a
refusal. Kept from #585's mask part (closed in favor of #1084); the
descriptor-dimension hunk stays with the resource work.
Offline corpus (per the original PR, 26148 programs): "a select on an
untracked mask" 288 -> 0, no new refusal text; those programs stop at
later refusals, and compute programs emitted 1441 -> 1443. The synthetic
test runs and passes on hardware (WARP cannot pin a wave size, so the
test skips it): fails before, passes after.
Local check on this rebase: clippy clean with -D warnings, and the
victory-shader suite passes the mask test on an RTX.
@Marvisak on GitHub · 2026-11-25 18:33 UTC · original · edited 2026-11-25 22:23 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main(conflict incrates/victory-shader/src/emit/valu_tests.rs). It will be reviewed again once it is rebased.From the earlier needs-work note, still open: green CI, agree with #1084 which PR carries the change, use the same mask lookup in
console_lanesandmask_cond, refuse a missing high dword in wave64, and test several lanes with differing mask bits.Generated by Claude Code
@fyernald on GitHub · 2026-11-25 17:33 UTC · original · reviewed
Test results from RTX 3080 (617.42), Windows 10 (19045) plus WARP,
main67e8ae1+ #486 + #2596 (the suite crashes on NVIDIA without #2596, #2571).cargo test -p victory-shader --lib --locked -- --test-threads=1: 268 passed, 3 failed (the #1835 ones, also on the base).v_cndmask_on_an_untracked_mask_tests_this_lanes_bitpasses on both adapters.I checked the results on hardware but haven't gone through the new gating in
structurein depth, so this is data, not an approval.@borosf on GitHub · 2026-11-27 17:12 UTC · original
Coordination note: same title as #1084 by @undeadhuman37, opened earlier (+99/−18 vs +124/−42). If this is the same fix, one of them should close; if yours covers more, say what.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.