Shaders: v_nop/v_pipeflush/v_clrexcp take no literal; format 191 is 2 bytes (rainbow arms, from ScarlettPort) #431

Open
github-bot wants to merge 3 commits from github-bot/gh-431 into main AGit
Owner

@⁠LeonardoS11 on GitHub · 2026-11-27 04:37 UTC · original
LeonardoS11:pr/av-vop1-formats → main · +22 −7 · 4 files · 3 commits · open

Fixes rainbow-coloured arms and faces on characters (intermittent, in most runs of the opening cell and corridor here). Three commits, all from ZigZagBoi1/ScarlettPort (bc71157, its PR #19, and be7717f), ported to this branch:

  1. v_nop, v_pipeflush and v_clrexcp (VOP1 0x000, 0x01B, 0x041) take no literal. The console compiler leaves a hash in their src0; when that byte happens to be 0xFF/0xF9/0xFA/0xE9/0xEA, the decoder read the next instruction as a literal and the shader ran without it. Includes a test.
  2. Formats: A4B4G4R4_UNORM (191) is 2 bytes a texel (the host side said 4 in resource.rs element()); 189 and 190 get layouts in victory-formats.
  3. TRANSLATOR_VERSION 1 -> 2. Without it the shader cache keeps serving the old translations and the fix does not show. Expect a first run with new translations and pipeline builds.

Measured on an RTX 3080 Ti, Series S profile, the same walk to the guard in the opening corridor: the rainbow arms/faces seen in almost every run before were gone in both runs with this. The stretched polygons ("spikes") are still there; they have another cause.

Credit: ZigZagBoi1 (ScarlettPort).

AI-assisted (Claude in Claude Code). Built from source; no game data.

🤖 Generated with Claude Code

**@⁠LeonardoS11** on GitHub · 2026-11-27 04:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/431) `LeonardoS11:pr/av-vop1-formats` → `main` · +22 −7 · 4 files · 3 commits · open Fixes rainbow-coloured arms and faces on characters (intermittent, in most runs of the opening cell and corridor here). Three commits, all from ZigZagBoi1/ScarlettPort (bc71157, its PR #19, and be7717f), ported to this branch: 1. `v_nop`, `v_pipeflush` and `v_clrexcp` (VOP1 0x000, 0x01B, 0x041) take no literal. The console compiler leaves a hash in their src0; when that byte happens to be 0xFF/0xF9/0xFA/0xE9/0xEA, the decoder read the next instruction as a literal and the shader ran without it. Includes a test. 2. Formats: A4B4G4R4_UNORM (191) is 2 bytes a texel (the host side said 4 in `resource.rs` `element()`); 189 and 190 get layouts in `victory-formats`. 3. `TRANSLATOR_VERSION` 1 -> 2. Without it the shader cache keeps serving the old translations and the fix does not show. Expect a first run with new translations and pipeline builds. Measured on an RTX 3080 Ti, Series S profile, the same walk to the guard in the opening corridor: the rainbow arms/faces seen in almost every run before were gone in both runs with this. The stretched polygons ("spikes") are still there; they have another cause. Credit: ZigZagBoi1 (ScarlettPort). *AI-assisted (Claude in Claude Code). Built from source; no game data.* 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The console's compiler stores a shader hash in their src0. Where it fell on a
literal/SDWA/DPP code (0xFF, 0xF9, 0xFA, 0xE9, 0xEA) the next instruction was
read as that literal and the shader ran without it. Changes the translation:
the shader cache is made again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 73ade791cb01a74d87d7488b0b5bb061f832ddbb)
The host gave 191 four bytes a texel (resource.rs element) and the formats
crate none at all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 78e62259281f2c65d62b3f672c067044585e4a0c)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5a93f852c9365e101a3777c56b8bc8292a62bab8)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:38:10 +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/431/head:github-bot/gh-431'
git switch 'github-bot/gh-431'

Merge

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