Shaders: hardware probes for the remaining s_cmp_* integer compares #2564

Open
github-bot wants to merge 1 commit from github-bot/gh-2564 into main AGit
Owner

@⁠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 · open

Adds 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.

**@⁠LouisRiverstone** on GitHub · 2026-11-25 15:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/2564) `LouisRiverstone:shaders/s-cmp-signed-and-unsigned-probes` → `main` · +6 −0 · 1 files · 1 commits · open Adds 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:09:20 +00:00
Author
Owner

@⁠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 from 192 passed; 3 failed on main).

  • descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait now passes, along with the new test in this PR.
  • Only the 2 known 1,000,000 view heap cap tests (dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views from #1744) remain.
**@⁠Vedoxdev123** on GitHub · 2026-11-25 16:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/2564#issuecomment-7167535985) 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 from `192 passed; 3 failed` on `main`). - `descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait` now **passes**, along with the new test in this PR. - Only the 2 known 1,000,000 view heap cap tests (`dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` from #1744) remain.
Author
Owner

@⁠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: check passing.

The PR adds the six missing 32-bit SOPC compares to the SCC/s_cselect probe loop in scalar_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) and le_u32 (0x0B). The opcodes match the SOPC table in gfx10/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. The s_cmp_ branch in emit/lower.rs already handles all six, so the probes cover existing code. No other open PR covers these opcodes (#1046 covers s_cmpk_*).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 19:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2564#issuecomment-7172182731) <!-- victory-triage v1 head=ac56ab538a89dfd738493ab92cd93e2610dfe3fc verdict=merge-candidate at=2026-11-25T19:33:00Z --> Automated triage for the maintainers. **Merge candidate.** This is a recommendation to look, not an approval. It merges cleanly into `main`. CI: `check` passing. The PR adds the six missing 32-bit SOPC compares to the SCC/`s_cselect` probe loop in `scalar_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) and `le_u32` (0x0B). The opcodes match the SOPC table in `gfx10/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. The `s_cmp_` branch in `emit/lower.rs` already handles all six, so the probes cover existing code. No other open PR covers these opcodes (#1046 covers `s_cmpk_*`). --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2564/head:github-bot/gh-2564'
git switch 'github-bot/gh-2564'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2564'
git switch 'github-bot/gh-2564'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2564'
git switch 'github-bot/gh-2564'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2564'
git switch 'main'
git merge --squash 'github-bot/gh-2564'
git switch 'main'
git merge --ff-only 'github-bot/gh-2564'
git switch 'main'
git merge 'github-bot/gh-2564'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2564
No description provided.