RX 9060 XT: Series S launch, PC FSR at the title's sizes, ambient bound under RT, moving faces, fps log line #541

Open
github-bot wants to merge 3 commits from github-bot/gh-541 into a-publier AGit
Owner

@⁠PikPakPik on GitHub · 2026-11-27 10:37 UTC · original
PikPakPik:share/rx9060xt-local → a-publier · +152 −12 · 10 files · 3 commits · open

These are the changes I use on an RX 9060 XT (see #313). Each one stays off unless you turn it on, except the faces fix.

Changes

  • play.ps1 -SeriesS: passes --console series-s, so you get 1080p output with the Series S menus. This fixes the UI being twice too big at 1080p with the Series X profile (#313).
  • play.ps1 -FsrPC / VICTORY_FSR_PC=1: the PC FSR 4.1.2 (victory_hle::modules::fidelityfx::use_host_dir) handles the game's own FidelityFX calls at the render and output sizes the game picks, instead of its translated console DLL. The game itself is not patched. It needs fidelityfx_dir / VICTORY_FIDELITYFX_DIR.
  • VICTORY_AMBIENT_RT=<multiple> (≥ 1): while the structure builder runs, the ambient stand-in stays on and caps the rays' light at that multiple of its estimate. Where the rays leave less light, the estimate fills in. This hides the white RT blotches on the RX 9060 XT. When unset, nothing changes.
  • Faces stood still: _d16 accesses now ask the view kind of typed views in descriptor tables too, not only views picked from the heap. The host writes the strides word for the dynamic slots of a newly made table (HostHeap::dynamic_word). The face network's CS_GatherOperation used to read integer halves as f16, which gave zero blendshape translations. Full write-up in docs/findings.md.
  • Meter: one frame rate: … fps, … ms/frame, … draws/frame info line per meter window, so runs can be averaged from the log.

Testing

  • cargo check -p victory passes.
  • I did not run Clippy or the test suite locally. There is no test for the table case of the faces fix.
  • Played on an RX 9060 XT with -SeriesS -FsrPC. Faces were confirmed moving on an RTX 4080 SUPER, but not yet on an RX 7900 XTX.

🤖 Generated with Claude Code

**@⁠PikPakPik** on GitHub · 2026-11-27 10:37 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541) `PikPakPik:share/rx9060xt-local` → `a-publier` · +152 −12 · 10 files · 3 commits · open These are the changes I use on an RX 9060 XT (see #313). Each one stays off unless you turn it on, except the faces fix. ## Changes - **`play.ps1 -SeriesS`**: passes `--console series-s`, so you get 1080p output with the Series S menus. This fixes the UI being twice too big at 1080p with the Series X profile (#313). - **`play.ps1 -FsrPC` / `VICTORY_FSR_PC=1`**: the PC FSR 4.1.2 (`victory_hle::modules::fidelityfx::use_host_dir`) handles the game's own FidelityFX calls at the render and output sizes the game picks, instead of its translated console DLL. The game itself is not patched. It needs `fidelityfx_dir` / `VICTORY_FIDELITYFX_DIR`. - **`VICTORY_AMBIENT_RT=<multiple>`** (≥ 1): while the structure builder runs, the ambient stand-in stays on and caps the rays' light at that multiple of its estimate. Where the rays leave less light, the estimate fills in. This hides the white RT blotches on the RX 9060 XT. When unset, nothing changes. - **Faces stood still**: `_d16` accesses now ask the view kind of typed views in descriptor **tables** too, not only views picked from the heap. The host writes the strides word for the dynamic slots of a newly made table (`HostHeap::dynamic_word`). The face network's `CS_GatherOperation` used to read integer halves as f16, which gave zero blendshape translations. Full write-up in `docs/findings.md`. - **Meter**: one `frame rate: … fps, … ms/frame, … draws/frame` info line per meter window, so runs can be averaged from the log. ## Testing - `cargo check -p victory` passes. - I did not run Clippy or the test suite locally. There is no test for the table case of the faces fix. - Played on an RX 9060 XT with `-SeriesS -FsrPC`. Faces were confirmed moving on an RTX 4080 SUPER, but not yet on an RX 7900 XTX. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- VICTORY_FSR_PC=1 (play.ps1 -FsrPC): the PC FSR 4.1.2 serves the title's own
  FidelityFX calls at its own render/output sizes (needs fidelityfx_dir)
- VICTORY_AMBIENT_RT=<multiple>: with ray tracing on, the light stand-in stays
  on as a bound on what the rays leave (the white blotches on an RX 9060 XT)
- Faces: d16 accesses ask the kind of a typed view in a table too, and the host
  writes the strides word for a fresh table's dynamic slots (docs/findings.md)
- play.ps1 -SeriesS: --console series-s
- A "frame rate:" log line per meter window, for averages over a run

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:41:24 +00:00
Author
Owner

@⁠Robotniq on GitHub · 2026-11-27 10:57 UTC · original

The faces fix, tested in the title on an 8 GB NVIDIA card: RTX 3070 Ti (32-lane, driver 32.0.16.2140), i7-13700F, 32 GB RAM, Windows 11 26200, game 1.0.2.1, --console series-s. Diagnostics build of a-publier 4eb6cfd with this PR applied whole (on top of #451 and #443's loose/xmem hunks), the scripts\play.ps1 settings (not -Safe), VICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1, VICTORY_UPSCALER=6, VICTORY_CARD_BUFFERS_MIN_MB=1, structure builder off. Shader cache emptied and made again with victory shaders before the first run, since the PR changes translations without a new translator version.

  • Before the PR: no mouth moved in the prologue's yard dialogue (two runs, same save), while bodies and hair did.
  • With the PR: mouths move in the same dialogue, in two runs. The person playing saw the first seconds of the first run come up wrong and then right (pipelines of the changed shaders being made, I take it; the second run did not show it).
  • With Dathinel's 43 skipped programs as well (VICTORY_SKIP_PIPELINES, the bvh_skinning programs and the two CS_Primary_GatherCopy, fxceless/victory-fork#1278): mouths still move. So the bvh_skinning:CSComputeSkinningPedBlendShapes* programs of that list are not the ones the faces on screen need.
  • Frame rate unchanged (median of the frame lines by draws a frame, before and with the PR, both with the 43 skipped): 22.0 and 21.9 fps at 2,000-3,500 draws, 17.8 and 17.7 at 3,500-5,000, 15.5 and 15.8 at 5,000-7,000.
  • No device loss, nothing in crashes.log.

Only the faces part was exercised: -SeriesS, -FsrPC, VICTORY_AMBIENT_RT and the meter line were left as they come (off), and I ran the title through a launcher of my own, not the changed play.ps1.

AI-assisted (Claude Code): the runs, the reading of the logs and this text.

**@⁠Robotniq** on GitHub · 2026-11-27 10:57 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#issuecomment-7216506935) The faces fix, tested in the title on an 8 GB NVIDIA card: RTX 3070 Ti (32-lane, driver 32.0.16.2140), i7-13700F, 32 GB RAM, Windows 11 26200, game 1.0.2.1, `--console series-s`. Diagnostics build of `a-publier` `4eb6cfd` with this PR applied whole (on top of #451 and #443's `loose`/`xmem` hunks), the `scripts\play.ps1` settings (not `-Safe`), `VICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1`, `VICTORY_UPSCALER=6`, `VICTORY_CARD_BUFFERS_MIN_MB=1`, structure builder off. Shader cache emptied and made again with `victory shaders` before the first run, since the PR changes translations without a new translator version. - **Before the PR:** no mouth moved in the prologue's yard dialogue (two runs, same save), while bodies and hair did. - **With the PR:** mouths move in the same dialogue, in two runs. The person playing saw the first seconds of the first run come up wrong and then right (pipelines of the changed shaders being made, I take it; the second run did not show it). - **With Dathinel's 43 skipped programs as well** (`VICTORY_SKIP_PIPELINES`, the `bvh_skinning` programs and the two `CS_Primary_GatherCopy`, fxceless/victory-fork#1278): mouths still move. So the `bvh_skinning:CSComputeSkinningPedBlendShapes*` programs of that list are not the ones the faces on screen need. - **Frame rate unchanged** (median of the frame lines by draws a frame, before and with the PR, both with the 43 skipped): 22.0 and 21.9 fps at 2,000-3,500 draws, 17.8 and 17.7 at 3,500-5,000, 15.5 and 15.8 at 5,000-7,000. - No device loss, nothing in `crashes.log`. Only the faces part was exercised: `-SeriesS`, `-FsrPC`, `VICTORY_AMBIENT_RT` and the meter line were left as they come (off), and I ran the title through a launcher of my own, not the changed `play.ps1`. AI-assisted (Claude Code): the runs, the reading of the logs and this text.
Without the bump, translations cached outside the main archive stayed stale
unless VICTORY_SHADER_FRESH=1 (reported in #541).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠BlueCatsz on GitHub · 2026-11-27 11:56 UTC · original

First AMD RDNA4 / RADV test of the moving-faces hunk (crates/victory-shader/src/emit/lower.rs, cherry-picked onto a-publier 4eb6cfd alongside #124 and #247, diag build):

  • Setup: CachyOS (Arch Linux), Ryzen 7 5800X3D, RX 9070 XT 16 GB (RDNA4), Mesa RADV 26.3.1, proton-cachyos-slr (wine 11.0) + CachyOS/wine-cachyos#50 wineserver, vkd3d-proton 71cae09, Series X profile (VICTORY_LAND_ECHO=0), retail 1.0.2.1.
  • Checks: clippy (victory-gpu, victory-shader) and victory-shader tests passed in fork CI (run 45985519235).

Two findings:

  1. Missing victory_shader::TRANSLATOR_VERSION bump: re-running victory shaders logged:
    25790 of 25790 translations an earlier build of the translator had cached translated again, 65 came out different (a change of the translator's output: victory_shader::TRANSLATOR_VERSION should have been bumped)
    Without a TRANSLATOR_VERSION bump, cached translations outside the main shader archive stay stale unless VICTORY_SHADER_FRESH=1 is passed.
  2. RDNA4 / RADV visual result in the opening scene: both main characters' mouths now animate (no longer frozen static, and background/police NPC faces look normal), but both leads show consistent mouth pinching/twisting distortion on RX 9070 XT + RADV. Confirmed this still reproduces after ruling out:
    • Stale shader cache (re-tested with VICTORY_SHADER_FRESH=1 after refreshing all 25,790 cached shaders)
    • VKD3D_CONFIG=descriptor_heap (re-tested with VKD3D_CONFIG="")
    • Raw buffer views (VICTORY_RAW_VIEWS=0)
    • VICTORY_PORT_CBV=1 (re-tested with VICTORY_PORT_CBV=0)

AI assistance disclosure: test notes and bisection summary were compiled with AI assistance; all builds and hardware runs were executed and verified locally.

**@⁠BlueCatsz** on GitHub · 2026-11-27 11:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#issuecomment-7217646175) First AMD RDNA4 / RADV test of the moving-faces hunk (`crates/victory-shader/src/emit/lower.rs`, cherry-picked onto `a-publier` `4eb6cfd` alongside `#124` and `#247`, `diag` build): - **Setup:** CachyOS (Arch Linux), Ryzen 7 5800X3D, **RX 9070 XT 16 GB (RDNA4)**, **Mesa RADV `26.3.1`**, `proton-cachyos-slr` (`wine 11.0`) + `CachyOS/wine-cachyos#50` `wineserver`, `vkd3d-proton` `71cae09`, Series X profile (`VICTORY_LAND_ECHO=0`), retail 1.0.2.1. - **Checks:** `clippy` (`victory-gpu`, `victory-shader`) and `victory-shader` tests passed in fork CI ([run `45985519235`](https://github.com/BlueCatsz/VIctory-Belobug-AMD/actions/runs/45985519235)). Two findings: 1. **Missing `victory_shader::TRANSLATOR_VERSION` bump:** re-running `victory shaders` logged: `25790 of 25790 translations an earlier build of the translator had cached translated again, 65 came out different (a change of the translator's output: victory_shader::TRANSLATOR_VERSION should have been bumped)` Without a `TRANSLATOR_VERSION` bump, cached translations outside the main shader archive stay stale unless `VICTORY_SHADER_FRESH=1` is passed. 2. **RDNA4 / RADV visual result in the opening scene:** both main characters' mouths now animate (no longer frozen static, and background/police NPC faces look normal), **but both leads show consistent mouth pinching/twisting distortion** on RX 9070 XT + RADV. Confirmed this still reproduces after ruling out: - Stale shader cache (re-tested with `VICTORY_SHADER_FRESH=1` after refreshing all 25,790 cached shaders) - `VKD3D_CONFIG=descriptor_heap` (re-tested with `VKD3D_CONFIG=""`) - Raw buffer views (`VICTORY_RAW_VIEWS=0`) - `VICTORY_PORT_CBV=1` (re-tested with `VICTORY_PORT_CBV=0`) --- *AI assistance disclosure: test notes and bisection summary were compiled with AI assistance; all builds and hardware runs were executed and verified locally.*
Author
Owner

@⁠PikPakPik on GitHub · 2026-11-27 12:01 UTC · original

Thanks for testing this on both cards.

Translator version: you were right. TRANSLATOR_VERSION is now 3 (95f61948), so cached translations are made again without VICTORY_SHADER_FRESH=1.

RTX 3070 Ti, Windows, Series S: good to see mouths moving with no change in frame rate. It is also useful to know that the skipped bvh_skinning:CSComputeSkinningPedBlendShapes* programs are not the ones the visible faces depend on.

RX 9070 XT, RADV: mouths now move, but the two leads' mouths pinch and twist. That points to the faces' path rather than the cache or the switches you already ruled out. I haven't found the cause yet. Two things would help narrow it down:

  • Does it also happen on RDNA4 under Windows/D3D12? That would tell us whether it comes from RDNA4 itself or from RADV/vkd3d.
  • If you can, a victory replay <capture> --flow --bytes of that scene, to compare the network's result buffer (the R16_UINT views CS_BlendshapeTranslationsHSSGraphOutputExtract reads) with what an NVIDIA run produces.
**@⁠PikPakPik** on GitHub · 2026-11-27 12:01 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#issuecomment-7217741056) Thanks for testing this on both cards. **Translator version**: you were right. `TRANSLATOR_VERSION` is now 3 (95f61948), so cached translations are made again without `VICTORY_SHADER_FRESH=1`. **RTX 3070 Ti, Windows, Series S**: good to see mouths moving with no change in frame rate. It is also useful to know that the skipped `bvh_skinning:CSComputeSkinningPedBlendShapes*` programs are not the ones the visible faces depend on. **RX 9070 XT, RADV**: mouths now move, but the two leads' mouths pinch and twist. That points to the faces' path rather than the cache or the switches you already ruled out. I haven't found the cause yet. Two things would help narrow it down: - Does it also happen on RDNA4 under Windows/D3D12? That would tell us whether it comes from RDNA4 itself or from RADV/vkd3d. - If you can, a `victory replay <capture> --flow --bytes` of that scene, to compare the network's result buffer (the `R16_UINT` views `CS_BlendshapeTranslationsHSSGraphOutputExtract` reads) with what an NVIDIA run produces.
Author
Owner

@⁠PikPakPik on GitHub · 2026-11-27 12:08 UTC · original

RDNA4 on Windows/D3D12: the mouths do not pinch here.

Setup: RX 9060 XT 16 GB (RDNA4), Windows 11, native D3D12, retail 1.0.2.1, --console series-s, diag build of this branch at 95f61948 (TRANSLATOR_VERSION 3). I re-translated every shader with victory shaders before the run. The other settings were VICTORY_FSR_PC=1, VICTORY_SHADER_OPT=59 and VICTORY_PORT_JOURNAL/GUARD=1. The structure builder was off.

I watched the opening cutscenes, including close-ups of one of the two leads (the other lead is not covered by this run):

  • Mouths open and close with the dialogue. Lips part naturally. Eyelids close and brows move.
  • None of the pinching or twisting reported on the RX 9070 XT + RADV.
  • Secondary characters (the officer on the radio, the crying baby, the case worker) animate normally too.
  • No device loss. It runs at 20–30 fps in these scenes.

So the same hunk looks right on RDNA4 under Windows. The distortion therefore seems specific to the RADV / vkd3d-proton path, not to RDNA4 or to the fix itself. A --flow --bytes capture from the Linux setup would still help confirm where the result buffer goes wrong.

**@⁠PikPakPik** on GitHub · 2026-11-27 12:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#issuecomment-7217892455) **RDNA4 on Windows/D3D12: the mouths do not pinch here.** Setup: RX 9060 XT 16 GB (RDNA4), Windows 11, native D3D12, retail 1.0.2.1, `--console series-s`, diag build of this branch at 95f61948 (`TRANSLATOR_VERSION` 3). I re-translated every shader with `victory shaders` before the run. The other settings were `VICTORY_FSR_PC=1`, `VICTORY_SHADER_OPT=59` and `VICTORY_PORT_JOURNAL/GUARD=1`. The structure builder was off. I watched the opening cutscenes, including close-ups of one of the two leads (the other lead is not covered by this run): - Mouths open and close with the dialogue. Lips part naturally. Eyelids close and brows move. - None of the pinching or twisting reported on the RX 9070 XT + RADV. - Secondary characters (the officer on the radio, the crying baby, the case worker) animate normally too. - No device loss. It runs at 20–30 fps in these scenes. So the same hunk looks right on RDNA4 under Windows. The distortion therefore seems specific to the RADV / vkd3d-proton path, not to RDNA4 or to the fix itself. A `--flow --bytes` capture from the Linux setup would still help confirm where the result buffer goes wrong.
Author
Owner

@⁠gut0to on GitHub · 2026-11-27 13:30 UTC · original · reviewed

AI-assisted review: I focused on the table-view path that fixes the reported stationary-face case.

**@⁠gut0to** on GitHub · 2026-11-27 13:30 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#pullrequestreview-6088913771) · **reviewed** AI-assisted review: I focused on the table-view path that fixes the reported stationary-face case.
@ -8206,2 +8208,4 @@
/// a table too, not only of one picked from the heap.
fn slot_word(&mut self, src: &Source, tables: bool) -> Result<Option<V>, Why> {
let Source::Loaded { load, first } = src else {
return Ok(None);
Author
Owner

@⁠gut0to on GitHub · 2026-11-27 13:30 UTC · original

Could you add a focused lowering regression for a typed integer view loaded through RootType::Table? The change expands slot_word from heap-selected views to table entries, but the PR notes that no table-case test exists. A synthetic table descriptor with an integer format should assert that lowering emits the VIEW_INTEGER check; this would guard the shader half of the fix independently of GPU hardware.

**@⁠gut0to** on GitHub · 2026-11-27 13:30 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#discussion_r4719993817) Could you add a focused lowering regression for a typed integer view loaded through `RootType::Table`? The change expands `slot_word` from heap-selected views to table entries, but the PR notes that no table-case test exists. A synthetic table descriptor with an integer format should assert that lowering emits the `VIEW_INTEGER` check; this would guard the shader half of the fix independently of GPU hardware.
A buffer_load_format_d16_xy through a view of root type Table now binds the
strides root view (the VIEW_INTEGER/VIEW_SIGNED word); a 32-bit format load
and a tbuffer d16 load (whose format is its own) of the same view do not.
The test fails with slot_word's table arm taken out. No GPU needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ -8206,2 +8208,4 @@
/// a table too, not only of one picked from the heap.
fn slot_word(&mut self, src: &Source, tables: bool) -> Result<Option<V>, Why> {
let Source::Loaded { load, first } = src else {
return Ok(None);
Author
Owner

@⁠PikPakPik on GitHub · 2026-11-27 13:48 UTC · original

Added a_tables_typed_d16_view_asks_whether_it_is_an_integer_one (valu_tests.rs, a6ae37df). It lowers a buffer_load_format_d16_xy through a RootType::Table view and asserts the strides root view, which holds the VIEW_INTEGER/VIEW_SIGNED word, is bound. A 32-bit format load and a tbuffer d16 load (whose format is in the instruction) don't bind it. It fails with the table arm of slot_word removed and needs no GPU.

**@⁠PikPakPik** on GitHub · 2026-11-27 13:48 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#discussion_r4720156761) Added `a_tables_typed_d16_view_asks_whether_it_is_an_integer_one` (valu_tests.rs, a6ae37df). It lowers a `buffer_load_format_d16_xy` through a `RootType::Table` view and asserts the strides root view, which holds the VIEW_INTEGER/VIEW_SIGNED word, is bound. A 32-bit format load and a tbuffer d16 load (whose format is in the instruction) don't bind it. It fails with the table arm of `slot_word` removed and needs no GPU.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 15:56 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At a6ae37d: victory-gpu 396 passed, victory-shader 304 passed, victory bins 25 passed; 0 failed in each.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 15:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/541#issuecomment-7222672428) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `a6ae37d`: `victory-gpu` 396 passed, `victory-shader` 304 passed, `victory` bins 25 passed; 0 failed in each. AI-assisted (Claude Code); no game data.
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/541/head:github-bot/gh-541'
git switch 'github-bot/gh-541'

Merge

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