Sop 2 fixs #394

Open
github-bot wants to merge 4 commits from github-bot/gh-394 into main AGit
Owner

@⁠timmmyyyyyyy on GitHub · 2026-11-26 00:07 UTC · original
timmmyyyyyyy:sop-2-fixs → main · +7 −0 · 2 files · 4 commits · open

Library / area: tombox-xshader — RDNA2 SOP2 scalar instructions.

Exports changed (exports.txt rows): None. No public exports changed.

Source of the behaviour: RDNA2 ISA instruction definitions and GFX7 lowering behavior. This PR adds regression coverage for S_CSELECT_B32 and S_CSELECT_B64, plus an explicit refusal for unsupported GFX7 S_CBRANCH_G_FORK lowering.

Changes

  • Added regression cases for S_CSELECT_B32 and S_CSELECT_B64 in crates/tombox-xshader/tests/opcodes.rs.
  • Verified that the instructions use RDNA2 SOP2 opcodes 0x0A and 0x0B, matching the project’s local GFX1013 ISA table.
  • Updated GFX7 lowering in crates/tombox-xshader/src/gcn.rs so SOP2 opcode 0x2B (S_CBRANCH_G_FORK) returns an explicit unsupported-instruction error instead of passing through to RDNA2.
  • This PR does not implement new RDNA2 instruction support: the local progress data already lists both CSELECT instructions as supported. It improves regression coverage and makes unsupported GFX7 lowering behavior explicit.

Verification

  • cargo test -p tombox-xshader --test opcodes — 29 passed.
  • cargo test -p tombox-xshader --test isa_table — passed.
  • cargo test -p tombox-xshader --lib — passed.
  • All 9 PR checks pass.
  • No game or console files and no binaries included.
  • No public exports changed.
  • No fake success; unsupported behavior remains explicit.

Remaining work

  • Broader project work remains for unrelated components. This PR only changes SOP2 regression coverage and GFX7 lowering of opcode 0x2B.
**@⁠timmmyyyyyyy** on GitHub · 2026-11-26 00:07 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/394) `timmmyyyyyyy:sop-2-fixs` → `main` · +7 −0 · 2 files · 4 commits · open **Library / area:** `tombox-xshader` — RDNA2 SOP2 scalar instructions. **Exports changed (exports.txt rows):** None. No public exports changed. **Source of the behaviour:** RDNA2 ISA instruction definitions and GFX7 lowering behavior. This PR adds regression coverage for `S_CSELECT_B32` and `S_CSELECT_B64`, plus an explicit refusal for unsupported GFX7 `S_CBRANCH_G_FORK` lowering. ## Changes - Added regression cases for `S_CSELECT_B32` and `S_CSELECT_B64` in `crates/tombox-xshader/tests/opcodes.rs`. - Verified that the instructions use RDNA2 SOP2 opcodes `0x0A` and `0x0B`, matching the project’s local GFX1013 ISA table. - Updated GFX7 lowering in `crates/tombox-xshader/src/gcn.rs` so SOP2 opcode `0x2B` (`S_CBRANCH_G_FORK`) returns an explicit unsupported-instruction error instead of passing through to RDNA2. - This PR does not implement new RDNA2 instruction support: the local progress data already lists both CSELECT instructions as supported. It improves regression coverage and makes unsupported GFX7 lowering behavior explicit. ## Verification - [x] `cargo test -p tombox-xshader --test opcodes` — 29 passed. - [x] `cargo test -p tombox-xshader --test isa_table` — passed. - [x] `cargo test -p tombox-xshader --lib` — passed. - [x] All 9 PR checks pass. - [x] No game or console files and no binaries included. - [x] No public exports changed. - [x] No fake success; unsupported behavior remains explicit. ## Remaining work - Broader project work remains for unrelated components. This PR only changes SOP2 regression coverage and GFX7 lowering of opcode `0x2B`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:21:21 +00:00
This pull request can be merged automatically.
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/394/head:github-bot/gh-394'
git switch 'github-bot/gh-394'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-394'
git switch 'github-bot/gh-394'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-394'
git switch 'github-bot/gh-394'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-394'
git switch 'main'
git merge --squash 'github-bot/gh-394'
git switch 'main'
git merge --ff-only 'github-bot/gh-394'
git switch 'main'
git merge 'github-bot/gh-394'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.