Shaders: hardware probes for the remaining s_cmp_* integer compares #2564
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!2564
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2564"
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?
@LouisRiverstone on GitHub · 2026-11-25 15:53 UTC · original
LouisRiverstone:shaders/s-cmp-signed-and-unsigned-probes→main· +6 −0 · 1 files · 1 commits · openAdds probes for s_cmp_eq_i32, s_cmp_lg_i32, s_cmp_ge_i32, s_cmp_le_i32, s_cmp_ge_u32 and s_cmp_le_u32 (SOPC 0x00, 0x01, 0x03, 0x05, 0x09, 0x0B) to the compare loop in scalar_probes. Test-only.
@Vedoxdev123 on GitHub · 2026-11-25 16:02 UTC · original
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (AI-assisted):
cargo test -p victory-gpu --lib-> 193 passed; 2 failed; 1 ignored (improved from192 passed; 3 failedonmain).descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_waitnow passes, along with the new test in this PR.dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_viewsfrom #1744) remain.@Marvisak on GitHub · 2026-11-25 19:21 UTC · original
Automated triage for the maintainers.
Merge candidate. This is a recommendation to look, not an approval. It merges cleanly into
main. CI:checkpassing.The PR adds the six missing 32-bit SOPC compares to the SCC/
s_cselectprobe loop inscalar_probes(crates/victory-shader/src/emit/semantics_tests.rs):s_cmp_eq_i32(0x00),lg_i32(0x01),ge_i32(0x03),le_i32(0x05),ge_u32(0x09) andle_u32(0x0B). The opcodes match the SOPC table ingfx10/opcodes.rs, and the reference closures use signed or unsigned compares accordingly. The inputs include 0x7FFF_FFFF and 0x8000_0000, so the signed/unsigned boundary is exercised. Thes_cmp_branch inemit/lower.rsalready handles all six, so the probes cover existing code. No other open PR covers these opcodes (#1046 coverss_cmpk_*).Generated by Claude Code
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.