Native pipeline methods 0x1c8/0x218: title-screen dump quantifies the gap (RDNA3) — 72% of graphics requests are NGG primitive shaders #74

Open
opened 2026-12-01 15:37:08 +00:00 by github-bot · 1 comment
Owner

@⁠thedee8086 on GitHub · 2026-12-01 15:34 UTC · original

RDNA3 desktop card (24 GB, ReBAR on), unified-memory runtime, title at default console modes. In play, floating bare quads appear over water-side geometry (boats) about a minute into loaded play; everything else renders.

Using the layer's own dump switch (VICTORY_NATIVE_PSO_DUMP=<dir>, the cfg(windows) path is live under Wine) during a title-screen-only boot, the title asked methods 0x1c8/0x218 for 11,032 + 2,680 pipeline descriptions. Analyzed with the repo's harnesses:

p4_gfx (0x1c8, graphics): 2,205 descriptions rebuild; VS translate 1,368, PS 1,086, whole-pipeline 539. Failure histogram, dominant first:

  • 7,966 — a 0x1c8 primitive shader (NGG: a merged stage) is not supported (72% of all graphics requests are NGG merged-stage programs)
  • 562 — pixel shader with 16-bit interpolation
  • ~700 — VS: an address from a root parameter that is no address
  • ~500 — PS: fixed-point pixel position without SV_Position in the signature
  • 205 — VS of unknown wave size with a cross-lane instruction; smaller tails (compacted exports, hardware SGPR input, DPP/SDWA forms)

p4_fspx (0x218, compute): 1,927 of 2,680 translate. Remaining blockers dominated by a descriptor's address or format read as data (411), lane-mask-read-as-data variants (223), then sampler/CBuffer-descriptor-as-data (~100).

Reading: the title's renderer leans on native mesh/NGG pipeline creation for roughly three quarters of its graphics pipelines; with 0x1c8 unimplemented that content falls back — the floating quads over water are the visible tip. (Title-screen requests include speculative permutation compiles, so not every dumped description is visibly used; the NGG share is the signal.)

Offer: the full dump (769 MB, 13.7k description directories) and the repro recipe (one env var + a title boot) are kept and can be shared. Questions: is NGG merged-stage rebuild on the roadmap, and is the probe route (VICTORY_NATIVE_GRAPHICS=probe) meant to grow toward the listed keys?

Happy to re-run any capture or measurement that would move this forward.

**@⁠thedee8086** on GitHub · 2026-12-01 15:34 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/74) RDNA3 desktop card (24 GB, ReBAR on), unified-memory runtime, title at default console modes. In play, floating bare quads appear over water-side geometry (boats) about a minute into loaded play; everything else renders. Using the layer's own dump switch (`VICTORY_NATIVE_PSO_DUMP=<dir>`, the `cfg(windows)` path is live under Wine) during a **title-screen-only** boot, the title asked methods `0x1c8`/`0x218` for 11,032 + 2,680 pipeline descriptions. Analyzed with the repo's harnesses: **`p4_gfx` (0x1c8, graphics):** 2,205 descriptions rebuild; VS translate 1,368, PS 1,086, whole-pipeline 539. Failure histogram, dominant first: - **7,966 — `a 0x1c8 primitive shader (NGG: a merged stage) is not supported`** (72% of all graphics requests are NGG merged-stage programs) - 562 — pixel shader with 16-bit interpolation - ~700 — VS: an address from a root parameter that is no address - ~500 — PS: fixed-point pixel position without `SV_Position` in the signature - 205 — VS of unknown wave size with a cross-lane instruction; smaller tails (compacted exports, hardware SGPR input, DPP/SDWA forms) **`p4_fspx` (0x218, compute):** 1,927 of 2,680 translate. Remaining blockers dominated by `a descriptor's address or format read as data` (411), lane-mask-read-as-data variants (223), then sampler/CBuffer-descriptor-as-data (~100). Reading: the title's renderer leans on native mesh/NGG pipeline creation for roughly three quarters of its graphics pipelines; with `0x1c8` unimplemented that content falls back — the floating quads over water are the visible tip. (Title-screen requests include speculative permutation compiles, so not every dumped description is visibly used; the NGG share is the signal.) Offer: the full dump (769 MB, 13.7k description directories) and the repro recipe (one env var + a title boot) are kept and can be shared. Questions: is NGG merged-stage rebuild on the roadmap, and is the probe route (`VICTORY_NATIVE_GRAPHICS=probe`) meant to grow toward the listed keys? Happy to re-run any capture or measurement that would move this forward.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 15:37:08 +00:00
Author
Owner

@⁠GreemSC on GitHub · 2026-12-02 11:22 UTC · original

Measurements of the native path on RDNA 3, in case they help decide whether NGG support is worth it: RX 7900 XT 20 GB, i7-12700K, CachyOS kernel 7.3.6, Proton-CachyOS Wine, patched Mesa 26.3.1, vkd3d-proton 71cae09. Build: HioShan/VIctory-xmem-bazzite 06580b6 (= this repo 37bb30f + 42 commits) + #67, Series X, 2560x1440, ray tracing on, same save and scripted drive, warm caches, 300 s runs.

median frame fps (world) p99
translation only (default) 34.4 ms 27.8 94 ms
VICTORY_NATIVE_COMPUTE=1, run 1 / run 2 40.0 / 40.2 ms 24.5 / 24.5 113 / 113 ms
VICTORY_NATIVE_GRAPHICS=1 world only reached at ~285 s (about 4 min of black / loading), not measurable
  • Native compute is ~6 ms slower per frame here, and the second run (warm cache) is identical to the first, so it is not compilation. Faces were visibly damaged during those runs.
  • Where the frame goes (timestamps per segment, translation path, 49 ms frame): title compute 21.2 ms (45 %), mesh 14.4 ms (31 %), compute by address 4.5, graphics 3.6, RT 1.3; the passes this layer adds ≈ 1.8 ms (< 4 %). So on this card the fixed cost is the efficiency of the translated compute and mesh shaders, and the native path (as it stands) is not the lever.

Caveat: an older base than current main; I have not repeated it on d044248.

AI assistance: Claude Code (Claude Opus 5.5) ran the builds and measurements, read the logs and wrote this report on the hardware above.

**@⁠GreemSC** on GitHub · 2026-12-02 11:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/74#issuecomment-7343819258) Measurements of the native path on RDNA 3, in case they help decide whether NGG support is worth it: RX 7900 XT 20 GB, i7-12700K, CachyOS kernel 7.3.6, Proton-CachyOS Wine, patched Mesa 26.3.1, vkd3d-proton `71cae09`. Build: HioShan/VIctory-xmem-bazzite `06580b6` (= this repo `37bb30f` + 42 commits) + #67, Series X, 2560x1440, ray tracing on, same save and scripted drive, warm caches, 300 s runs. | | median frame | fps (world) | p99 | |---|---|---|---| | translation only (default) | 34.4 ms | 27.8 | 94 ms | | `VICTORY_NATIVE_COMPUTE=1`, run 1 / run 2 | 40.0 / 40.2 ms | 24.5 / 24.5 | 113 / 113 ms | | `VICTORY_NATIVE_GRAPHICS=1` | world only reached at ~285 s (about 4 min of black / loading), not measurable | | | - Native compute is ~6 ms slower per frame here, and the second run (warm cache) is identical to the first, so it is not compilation. Faces were visibly damaged during those runs. - Where the frame goes (timestamps per segment, translation path, 49 ms frame): title compute 21.2 ms (45 %), mesh 14.4 ms (31 %), compute by address 4.5, graphics 3.6, RT 1.3; the passes this layer adds ≈ 1.8 ms (< 4 %). So on this card the fixed cost is the efficiency of the translated compute and mesh shaders, and the native path (as it stands) is not the lever. Caveat: an older base than current main; I have not repeated it on `d044248`. AI assistance: Claude Code (Claude Opus 5.5) ran the builds and measurements, read the logs and wrote this report on the hardware above.
This discussion has been locked. Commenting is limited to contributors.
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/lobomfz--VIctory-xmem#74
No description provided.