Fix source-less VOP1 lengths and VOP3 CMPX destinations #6

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

@⁠Yoshi-233 on GitHub · 2026-11-26 07:50 UTC · original
Yoshi-233:fix/gfx10-operand-decode → main · +32 −2 · 2 files · 1 commits · open

Two GFX10 decoder cases from davutsimsekk's fix also reproduce on this fork at f4b48ad.

  • v_nop, v_pipeflush, and v_clrexcp have no source operand. Each treated five ignored SRC0 encodings as an extension and swallowed the next instruction. The regression puts s_endpgm after all three, and also checks that a real v_mov_b32 literal still consumes its second word.
  • VOP3 v_cmpx* exposes EXEC as its destination. Using the encoded VDST here made decoded operands disagree with the IR. The regression checks the one- and two-dword EXEC operands for wave32 and wave64.

I ran identical synthetic CPU probes on the base and this branch with Rust 1.98.1. All 1,536 source-less encodings now preserve the trailing instruction (15 failures on base). All 760 tested VOP3 CMPX operand combinations now report the expected destination (760 failures on base). MOV, ordinary CMP, and VOPC controls retained their expected results. The shader library ran 205 tests successfully, 2 ignored. I didn't run the game or measure frame rate.

**@⁠Yoshi-233** on GitHub · 2026-11-26 07:50 UTC · [original](https://github.com/codec-d/cool_fox/pull/6) `Yoshi-233:fix/gfx10-operand-decode` → `main` · +32 −2 · 2 files · 1 commits · open Two GFX10 decoder cases from [davutsimsekk's fix](https://github.com/Belobug/VIctory-Belobug-AMD/pull/180) also reproduce on this fork at `f4b48ad`. * `v_nop`, `v_pipeflush`, and `v_clrexcp` have no source operand. Each treated five ignored SRC0 encodings as an extension and swallowed the next instruction. The regression puts `s_endpgm` after all three, and also checks that a real `v_mov_b32` literal still consumes its second word. * VOP3 `v_cmpx*` exposes EXEC as its destination. Using the encoded VDST here made decoded operands disagree with the IR. The regression checks the one- and two-dword EXEC operands for wave32 and wave64. I ran identical synthetic CPU probes on the base and this branch with Rust 1.98.1. All 1,536 source-less encodings now preserve the trailing instruction (15 failures on base). All 760 tested VOP3 CMPX operand combinations now report the expected destination (760 failures on base). MOV, ordinary CMP, and VOPC controls retained their expected results. The shader library ran 205 tests successfully, 2 ignored. I didn't run the game or measure frame rate.
Adapted from davutsimsekk, Belobug/VIctory-Belobug-AMD@4d291d4. Cover all operandless VOP1 opcodes and both wave sizes for the VOP3 destination.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:53: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/6/head:github-bot/gh-6'
git switch 'github-bot/gh-6'

Merge

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