Linux (Arch/CachyOS, RADV): menus run and respond, 333 draws/frame, 2782 indirect draws dropped #879

Open
opened 2026-11-26 04:14:06 +00:00 by github-bot · 6 comments
Owner

@⁠mkslzk on GitHub · 2026-11-24 13:16 UTC · original

Linux (Arch/CachyOS, RADV): the menus run and respond, 333 draws/frame, 2782 indirect draws dropped

Reporting a working Linux path and the frame statistics that come with it. No Windows machine was
involved anywhere: the workspace cross-compiles from Linux for x86_64-pc-windows-msvc.

Setup

OS / kernel CachyOS, 7.3.5-2-cachyos
GPU Radeon RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Vulkan 1.4.363
Wine 11.22, win64 prefix
D3D12 vkd3d-proton 3.2.0 (from Proton Experimental)
DXGI DXVK's dxgi.dll (4.9 MB), plus DXVK d3d11.dll, d3d10core.dll
Overrides WINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b"
Build cargo xwin build --release -p victory --target x86_64-pc-windows-msvc, ffe310e

What works

The title boots, the menus render, and they respond to mouse input: we clicked through the UI on
the machine. The frame loop runs stably for minutes and the log ends cleanly (rc=0 after the
window was closed), no crash.

The project's own GPU tests agree with that on this stack:

running 51 tests
test result: FAILED. 48 passed; 2 failed; 1 ignored

Green are device creation, descriptor heaps and rings, null UAV/SRV replacement, placed heaps over
title memory, view lifetimes, texture layouts and pipeline creation.

Frame statistics from the menu (the interesting part)

0.2 fps, 4566.7 ms/frame
  (4185.5 preparing: copies 3501.0 ms 68.4 MB, textures 600.3 ms 121.9 MB;
   27.9 on the GPU; 348.9 copying back 7.2 MB)
  333 draws/frame,
  dropped 1312 without a host pipeline (0 being made) and 2780 indirect

Two things stand out:

  1. 2780 indirect draws dropped per frame. With VICTORY_INDIRECT off, that is by design, but it
    means the world cannot draw even if every shader translated. Turning it on is the next step, and
    it needs D3DCompile with cs_5_1, which Wine's d3dcompiler_47 refuses: the test
    indirect::tests::argument_clamp_builds fails for exactly that reason. Microsoft's
    redistributable d3dcompiler_47.dll is the known workaround.
  2. The GPU is idle: 27.9 ms on the GPU against 4566.7 ms per frame. Almost all of the frame time
    is preparation on the host: 3501 ms of copies (68.4 MB) and 600 ms of texture work. On this stack
    the bottleneck is the copy path, not the graphics pipeline, which matches the wineserver
    observation in #340.

Only 333 draws reached a host pipeline, and 1312 more had none and none were being built, so the
remaining translated pipeline work is bounded and measurable.

Four things a Linux run needs, none of them documented

  1. vkd3d-proton 3.2, not the 3.1 that ships with proton-cachyos. 3.1 dies during world load with
    an exception inside vkCreateGraphicsPipelines (also reported in #752).
  2. DXVK's dxgi.dll, not Wine's builtin. With dxgi resolved to the Wine builtin (252 KB) the
    title aborts after about 5 s with uncaught exception 0xc0000005 at wined3d.dll+0x165f50,
    called from dxgi.dll+0x7415; the D3D12 device ends up being created through wined3d. With
    DXVK's dxgi.dll (4.9 MB) the same build runs for minutes.
  3. Override d3d12core as well as d3d12. With only d3d12, Wine loads its own core DLL and
    stops with unimplemented function d3d12core.dll.D3D12GetInterface. Seeing libvkd3d-1.dll in
    the log means the same mistake (as diagnosed under #829).
  4. The graphics session. Started over SSH, Wine aborts with
    nodrv_CreateWindow ... no driver could be loaded and no window appears. Under KDE on Wayland it
    needs XDG_RUNTIME_DIR=/run/user/<uid>, DISPLAY=:0 (XWayland) and
    XAUTHORITY=$XDG_RUNTIME_DIR/xauth_*.

Suggestion

The four points above cost a day to rediscover and are platform facts, not bugs. A short Linux
section in the getting-started docs (prefix DLLs, overrides, session variables) would let every
Linux tester start from a working prefix instead of a black window. Happy to write that section as
a patch to docs/; I cannot open a pull request from this account, so it would come as an issue
comment or a branch on my fork.

Also: victory translate over the retail shader pack reports DXIL for 2398 of 3411 vertex/pixel
programs (70 %) and 1513 of 1579 mesh programs (96 %), with the largest failure classes being
"scalar memory read as data" (314), "64-bit image atomic" (246) and "packed input half" (172). That
is where the remaining draws lose their shaders, on Windows and Linux alike.

**@⁠mkslzk** on GitHub · 2026-11-24 13:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/879) # Linux (Arch/CachyOS, RADV): the menus run and respond, 333 draws/frame, 2782 indirect draws dropped Reporting a working Linux path and the frame statistics that come with it. No Windows machine was involved anywhere: the workspace cross-compiles from Linux for `x86_64-pc-windows-msvc`. ## Setup | | | |---|---| | OS / kernel | CachyOS, `7.3.5-2-cachyos` | | GPU | Radeon RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Vulkan 1.4.363 | | Wine | 11.22, win64 prefix | | D3D12 | vkd3d-proton **3.2.0** (from Proton Experimental) | | DXGI | DXVK's `dxgi.dll` (4.9 MB), plus DXVK `d3d11.dll`, `d3d10core.dll` | | Overrides | `WINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b"` | | Build | `cargo xwin build --release -p victory --target x86_64-pc-windows-msvc`, `ffe310e` | ## What works The title boots, the menus render, and they respond to mouse input: we clicked through the UI on the machine. The frame loop runs stably for minutes and the log ends cleanly (`rc=0` after the window was closed), no crash. The project's own GPU tests agree with that on this stack: ``` running 51 tests test result: FAILED. 48 passed; 2 failed; 1 ignored ``` Green are device creation, descriptor heaps and rings, null UAV/SRV replacement, placed heaps over title memory, view lifetimes, texture layouts and pipeline creation. ## Frame statistics from the menu (the interesting part) ``` 0.2 fps, 4566.7 ms/frame (4185.5 preparing: copies 3501.0 ms 68.4 MB, textures 600.3 ms 121.9 MB; 27.9 on the GPU; 348.9 copying back 7.2 MB) 333 draws/frame, dropped 1312 without a host pipeline (0 being made) and 2780 indirect ``` Two things stand out: 1. **2780 indirect draws dropped per frame.** With `VICTORY_INDIRECT` off, that is by design, but it means the world cannot draw even if every shader translated. Turning it on is the next step, and it needs `D3DCompile` with `cs_5_1`, which Wine's `d3dcompiler_47` refuses: the test `indirect::tests::argument_clamp_builds` fails for exactly that reason. Microsoft's redistributable `d3dcompiler_47.dll` is the known workaround. 2. **The GPU is idle: 27.9 ms on the GPU against 4566.7 ms per frame.** Almost all of the frame time is preparation on the host: 3501 ms of copies (68.4 MB) and 600 ms of texture work. On this stack the bottleneck is the copy path, not the graphics pipeline, which matches the `wineserver` observation in #340. Only 333 draws reached a host pipeline, and 1312 more had none and none were being built, so the remaining translated pipeline work is bounded and measurable. ## Four things a Linux run needs, none of them documented 1. **vkd3d-proton 3.2, not the 3.1 that ships with proton-cachyos.** 3.1 dies during world load with an exception inside `vkCreateGraphicsPipelines` (also reported in #752). 2. **DXVK's `dxgi.dll`, not Wine's builtin.** With `dxgi` resolved to the Wine builtin (252 KB) the title aborts after about 5 s with `uncaught exception 0xc0000005` at `wined3d.dll+0x165f50`, called from `dxgi.dll+0x7415`; the D3D12 device ends up being created through wined3d. With DXVK's `dxgi.dll` (4.9 MB) the same build runs for minutes. 3. **Override `d3d12core` as well as `d3d12`.** With only `d3d12`, Wine loads its own core DLL and stops with `unimplemented function d3d12core.dll.D3D12GetInterface`. Seeing `libvkd3d-1.dll` in the log means the same mistake (as diagnosed under #829). 4. **The graphics session.** Started over SSH, Wine aborts with `nodrv_CreateWindow ... no driver could be loaded` and no window appears. Under KDE on Wayland it needs `XDG_RUNTIME_DIR=/run/user/<uid>`, `DISPLAY=:0` (XWayland) and `XAUTHORITY=$XDG_RUNTIME_DIR/xauth_*`. ## Suggestion The four points above cost a day to rediscover and are platform facts, not bugs. A short Linux section in the getting-started docs (prefix DLLs, overrides, session variables) would let every Linux tester start from a working prefix instead of a black window. Happy to write that section as a patch to `docs/`; I cannot open a pull request from this account, so it would come as an issue comment or a branch on my fork. Also: `victory translate` over the retail shader pack reports DXIL for 2398 of 3411 vertex/pixel programs (70 %) and 1513 of 1579 mesh programs (96 %), with the largest failure classes being "scalar memory read as data" (314), "64-bit image atomic" (246) and "packed input half" (172). That is where the remaining draws lose their shaders, on Windows and Linux alike.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:06 +00:00
Author
Owner

@⁠mkslzk on GitHub · 2026-11-24 13:20 UTC · original

Follow-up with the shader failures from the same run. These are the classes that actually bound in
the menus (86 shaders without a translation), not the static ranking from victory translate over
the whole pack:

Count Class
35 an address in an SGPR that is no root parameter is not supported
8 a structured buffer of unknown stride is not supported
8 a 64-bit image atomic is not supported
7 a scalar memory read as data is not supported
6 an address from a phi is not supported
3 an address not from a root parameter is not supported
3 a lane-mask join of an untracked mask is not supported
3 a lane mask read as data is not supported
3 a descriptor read only as data is not supported
2 barycentrics read directly is not supported
2 a descriptor neither loaded nor built is not supported
1 each an LDS write of bytes or halves, an LDS operation, a whole-wave section step the simulation does not follow, a descriptor chosen by control flow, LDS the program does not allocate

The dominant class in the live menu is not the dominant class in the static pack. "An address in
an SGPR that is no root parameter" is 41 % of the 86 live failures, while the static translate
ranking is led by "scalar memory read as data" (314 of 1013). Fixing the static top class would not
move the menu; this one would.

Three observations that might be more useful than the counts:

  1. The address classes are one family. "An address in an SGPR that is no root parameter" (35),
    "an address not from a root parameter" (3) and "an address from a phi" (6) are 44 of 86 together:
    the shader computes a descriptor address in a way the converter cannot trace back to a root
    parameter. One source-level answer would clear half the live failures.
  2. structured buffer of unknown stride (8) looks like a missing piece of type information
    rather than an unsupported instruction; the descriptor is there but its element size is not.
  3. Texture work is not the frame-time problem here. In the same log, texture preparation is
    115 to 600 ms while buffer copies are 2476 to 5122 ms for 68 to 132 MB per frame. Whatever the
    copy path is doing, it costs an order of magnitude more than the texture path on this stack
    (RADV, vkCmdCopyBuffer, 0.2 fps at 4566 ms/frame with the GPU idle at 27.9 ms).

If it helps, I can run the same measurement with VICTORY_LOG=debug on a Windows host for
comparison, so the copy numbers can be attributed to the platform rather than to the title.

**@⁠mkslzk** on GitHub · 2026-11-24 13:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7132682774) Follow-up with the shader failures from the same run. These are the classes that actually bound in the menus (86 shaders without a translation), not the static ranking from `victory translate` over the whole pack: | Count | Class | |---|---| | 35 | an address in an SGPR that is no root parameter is not supported | | 8 | a structured buffer of unknown stride is not supported | | 8 | a 64-bit image atomic is not supported | | 7 | a scalar memory read as data is not supported | | 6 | an address from a phi is not supported | | 3 | an address not from a root parameter is not supported | | 3 | a lane-mask join of an untracked mask is not supported | | 3 | a lane mask read as data is not supported | | 3 | a descriptor read only as data is not supported | | 2 | barycentrics read directly is not supported | | 2 | a descriptor neither loaded nor built is not supported | | 1 each | an LDS write of bytes or halves, an LDS operation, a whole-wave section step the simulation does not follow, a descriptor chosen by control flow, LDS the program does not allocate | **The dominant class in the live menu is not the dominant class in the static pack.** "An address in an SGPR that is no root parameter" is 41 % of the 86 live failures, while the static `translate` ranking is led by "scalar memory read as data" (314 of 1013). Fixing the static top class would not move the menu; this one would. Three observations that might be more useful than the counts: 1. **The address classes are one family.** "An address in an SGPR that is no root parameter" (35), "an address not from a root parameter" (3) and "an address from a phi" (6) are 44 of 86 together: the shader computes a descriptor address in a way the converter cannot trace back to a root parameter. One source-level answer would clear half the live failures. 2. **`structured buffer of unknown stride` (8)** looks like a missing piece of type information rather than an unsupported instruction; the descriptor is there but its element size is not. 3. **Texture work is not the frame-time problem here.** In the same log, texture preparation is 115 to 600 ms while buffer copies are 2476 to 5122 ms for 68 to 132 MB per frame. Whatever the copy path is doing, it costs an order of magnitude more than the texture path on this stack (RADV, `vkCmdCopyBuffer`, 0.2 fps at 4566 ms/frame with the GPU idle at 27.9 ms). If it helps, I can run the same measurement with `VICTORY_LOG=debug` on a Windows host for comparison, so the copy numbers can be attributed to the platform rather than to the title.
Author
Owner

@⁠BastienRodz on GitHub · 2026-11-24 13:20 UTC · original

On the 2780 indirect draws: two open PRs together make indirect execution work with Wine's builtin d3dcompiler_47, without Microsoft's redistributable:

  • #190 builds the argument clamp with the shader crate's own DXIL writer, so no D3DCompile is involved;
  • #346 expands the rectangle-list indirect draws (about 250 per world frame in #255) with run-time HLSL written for vkd3d-shader (word-indexed buffers, root signatures made in code).

Exorion1er checked the pair on GE-Proton11-12 with the builtin compiler: no E5005, and the 256 rectangle expander shader unavailable drops per frame went to 0 (#346). With VICTORY_INDIRECT on and both stacked, your count should show what's left once the clamp is no longer the blocker.

AI-assisted (Claude Code).

**@⁠BastienRodz** on GitHub · 2026-11-24 13:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7132689607) On the 2780 indirect draws: two open PRs together make indirect execution work with Wine's builtin `d3dcompiler_47`, without Microsoft's redistributable: - **#190** builds the argument clamp with the shader crate's own DXIL writer, so no `D3DCompile` is involved; - **#346** expands the rectangle-list indirect draws (about 250 per world frame in #255) with run-time HLSL written for vkd3d-shader (word-indexed buffers, root signatures made in code). Exorion1er checked the pair on GE-Proton11-12 with the builtin compiler: no `E5005`, and the 256 `rectangle expander shader unavailable` drops per frame went to 0 (https://git.gtahub.st/github/Marvisak--VIctory/pulls/346). With `VICTORY_INDIRECT` on and both stacked, your count should show what's left once the clamp is no longer the blocker. AI-assisted (Claude Code).
Author
Owner

@⁠mkslzk on GitHub · 2026-11-24 14:35 UTC · original

Measurements from our Linux run, recorded here so nothing gets lost. Everything below is a single run
per configuration on the same machine.

Stack: CachyOS kernel 7.3.5, RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Vulkan 1.4.363,
Wine 11.22, vkd3d-proton 3.2.0 (Proton Experimental), DXVK dxgi.dll/d3d11.dll/d3d10core.dll,
Microsoft d3dcompiler_47 for the indirect argument clamp, overrides
d3d12=n,b;d3d12core=n,b;dxgi=n,b, VICTORY_NO_WATCHDOG=1, VICTORY_LOG=debug.

1. Before #844: device loss in the world after 178 s

GPUVM fault detected at address 0x800440172000
GCVM_L2_PROTECTION_FAULT_STATUS: 0x401030   CLIENT_ID: (TCP) 0x8   PERMISSION_FAULTS: 3   RW: 0
ring gfx_0.0.0 timeout, signaled seq=9918526, emitted seq=9918529
Starting gfx_0.0.0 ring reset -> Ring gfx_0.0.0 reset succeeded -> [drm] device wedged
host GPU device removed after a submission of 1 lists; device removed: 0x887A0005

It came one submission after slow host submission ms=2053 lists=32 with 50 mesh pipelines. The TCP
client is the texture cache, which is the shape of the root-SRV fix in #844.

2. With #844 (proton-fixes, 9 commits on ffe310e): no device loss, but the scene stays dark

Continuous world run, more than 10 minutes, zero GPUVM fault lines, 674 to 4164 draws per frame.
The credits overlay renders; the scene behind it does not.

0.1 to 0.2 fps, 6700 to 13332 ms/frame
copies 4163 to 7847 ms for 29 to 411 MB per frame
textures 95 to 1349 ms for 96 to 185 MB per frame
26.9 to 150 ms on the GPU
674 to 4164 draws/frame,
dropped 522 to 4425 without a host pipeline (0 being made) and 564 to 1745 indirect

Note 0 being made: the drops are not a build-queue backlog, they are pipelines whose shaders do not
translate, so the draws have nothing to run with.

3. The classes that fail in the world (not in the menus)

Counted over one world run, one line per shader that failed to translate:

Count Class
86 a select on an untracked mask
74 a lane mask holding lanes elsewhere read as data
67 a descriptor read only as data
47 a structured buffer of unknown stride
35 an address in an SGPR that is no root parameter
32 a scalar memory read as data
18 an address not from a root parameter
13 a lane mask read as data

The world's ranking is wave/lane-mask semantics first (86 + 74 + 13 = 173 of 372 failures here),
where the menus were dominated by descriptor addressing. Whoever wants a picture in the world should
start with the mask classes, not with the static translate ranking over the whole pack.

4. #834's coalescing patch did not move the copy cost here

Cherry-picked 47b1f3b (xmem coalescing) onto proton-fixes, rebuilt, same scene:

copies 1833 to 7852 ms for 45 to 340 MB per frame

Still seconds, and not proportional to the byte count: 45 MB took 1833 ms while 411 MB took 4516 ms
in another frame. So the cost is dominated by something other than the number of mapping calls, at
least on this path. On our side the next measurement is VICTORY_GPU_TIMING=1 with the diagnostics
build, to attribute the copy time to single commands rather than to the whole preparing phase.

5. Where we agree with #844

Their summary matches ours exactly: boot, screens, intro video, start screen, saves, loading, and the
opening of the first mission with credits over a dark scene. That is parity with Windows as far as we
can tell from the tracker, and it is good enough to stop treating the Linux path as experimental.

**@⁠mkslzk** on GitHub · 2026-11-24 14:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7134614149) Measurements from our Linux run, recorded here so nothing gets lost. Everything below is a single run per configuration on the same machine. **Stack:** CachyOS kernel 7.3.5, RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Vulkan 1.4.363, Wine 11.22, vkd3d-proton 3.2.0 (Proton Experimental), DXVK `dxgi.dll`/`d3d11.dll`/`d3d10core.dll`, Microsoft `d3dcompiler_47` for the indirect argument clamp, overrides `d3d12=n,b;d3d12core=n,b;dxgi=n,b`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_LOG=debug`. ### 1. Before #844: device loss in the world after 178 s ``` GPUVM fault detected at address 0x800440172000 GCVM_L2_PROTECTION_FAULT_STATUS: 0x401030 CLIENT_ID: (TCP) 0x8 PERMISSION_FAULTS: 3 RW: 0 ring gfx_0.0.0 timeout, signaled seq=9918526, emitted seq=9918529 Starting gfx_0.0.0 ring reset -> Ring gfx_0.0.0 reset succeeded -> [drm] device wedged host GPU device removed after a submission of 1 lists; device removed: 0x887A0005 ``` It came one submission after `slow host submission ms=2053 lists=32` with 50 mesh pipelines. The TCP client is the texture cache, which is the shape of the root-SRV fix in #844. ### 2. With #844 (`proton-fixes`, 9 commits on `ffe310e`): no device loss, but the scene stays dark Continuous world run, more than 10 minutes, zero `GPUVM fault` lines, 674 to 4164 draws per frame. The credits overlay renders; the scene behind it does not. ``` 0.1 to 0.2 fps, 6700 to 13332 ms/frame copies 4163 to 7847 ms for 29 to 411 MB per frame textures 95 to 1349 ms for 96 to 185 MB per frame 26.9 to 150 ms on the GPU 674 to 4164 draws/frame, dropped 522 to 4425 without a host pipeline (0 being made) and 564 to 1745 indirect ``` Note `0 being made`: the drops are not a build-queue backlog, they are pipelines whose shaders do not translate, so the draws have nothing to run with. ### 3. The classes that fail in the world (not in the menus) Counted over one world run, one line per shader that failed to translate: | Count | Class | |---|---| | 86 | a select on an untracked mask | | 74 | a lane mask holding lanes elsewhere read as data | | 67 | a descriptor read only as data | | 47 | a structured buffer of unknown stride | | 35 | an address in an SGPR that is no root parameter | | 32 | a scalar memory read as data | | 18 | an address not from a root parameter | | 13 | a lane mask read as data | The world's ranking is **wave/lane-mask semantics first** (86 + 74 + 13 = 173 of 372 failures here), where the menus were dominated by descriptor addressing. Whoever wants a picture in the world should start with the mask classes, not with the static `translate` ranking over the whole pack. ### 4. #834's coalescing patch did not move the copy cost here Cherry-picked `47b1f3b` (xmem coalescing) onto `proton-fixes`, rebuilt, same scene: ``` copies 1833 to 7852 ms for 45 to 340 MB per frame ``` Still seconds, and not proportional to the byte count: 45 MB took 1833 ms while 411 MB took 4516 ms in another frame. So the cost is dominated by something other than the number of mapping calls, at least on this path. On our side the next measurement is `VICTORY_GPU_TIMING=1` with the diagnostics build, to attribute the copy time to single commands rather than to the whole preparing phase. ### 5. Where we agree with #844 Their summary matches ours exactly: boot, screens, intro video, start screen, saves, loading, and the opening of the first mission with credits over a dark scene. That is parity with Windows as far as we can tell from the tracker, and it is good enough to stop treating the Linux path as experimental.
Author
Owner

@⁠mkslzk on GitHub · 2026-11-24 14:49 UTC · original

Frame capture on RADV: the pipeline produces complete, correct images. Recorded because it moves the
question from "does the host path work at all" to "which passes are missing".

Build: proton-fixes (#844) plus the xmem coalescing cherry-pick, --features diagnostics
(frame capture is a diagnostics switch), VICTORY_CAPTURE + VICTORY_DUMP_TARGETS=1.

Captured frames of one run, and what is in them:

Frame Size Content
1, 2, 4, 8, 16, 32, 64 6 121 B each, identical black
128, 256, 512, 1024, 2048 13 944 B each, identical the account picker: dark blue background, "ACCOUNT PICKER (Y)" and "PLAYER (A)"
4096 1 788 612 B the key art, fully rendered: beach promenade at sunset, a woman with a pistol, storefronts reading "JAVIER'S Salon & Barber Shop", "GET CASH NOW", "CHECKS CASHED", correct violet/magenta/orange palette

So the whole chain works on this stack: clear, UI drawing, texture sampling, tone mapping and colour.
Nothing is wrong with the presentation or the swapchain, and the earlier artefacts were a transient
state, not a systematic error.

What that means for the dark world: the scene is not failing to composite, it is failing to draw. The
same run reports 674 to 4164 draws per frame with 522 to 4425 of them dropped because their shaders
do not translate, and the dominant failing classes in the world are the wave/lane-mask ones
("a select on an untracked mask", 86; "a lane mask holding lanes elsewhere read as data", 74).

Two things that would help us confirm this properly, if anyone has them:

  1. A frame capture of the same moments on Windows, where the world is also dark. If the key art
    and the account picker match ours pixel for pixel, the host path is at parity, and the dark scene
    is a title-level or converter-level problem rather than a host one. We would happily diff them.
  2. Whether the dropped draws in the world are expected to cover the scene, or whether some pass is
    dropped that should not be. With VICTORY_SKIP_PIPELINES we could try skipping the mask-class
    pipelines one by one and watch the frame, but without knowing which pipeline draws what, that is
    a blind search.
**@⁠mkslzk** on GitHub · 2026-11-24 14:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7134996822) Frame capture on RADV: the pipeline produces complete, correct images. Recorded because it moves the question from "does the host path work at all" to "which passes are missing". Build: `proton-fixes` (#844) plus the xmem coalescing cherry-pick, `--features diagnostics` (frame capture is a diagnostics switch), `VICTORY_CAPTURE` + `VICTORY_DUMP_TARGETS=1`. Captured frames of one run, and what is in them: | Frame | Size | Content | |---|---|---| | 1, 2, 4, 8, 16, 32, 64 | 6 121 B each, identical | black | | 128, 256, 512, 1024, 2048 | 13 944 B each, identical | the account picker: dark blue background, "ACCOUNT PICKER (Y)" and "PLAYER (A)" | | **4096** | **1 788 612 B** | **the key art, fully rendered**: beach promenade at sunset, a woman with a pistol, storefronts reading "JAVIER'S Salon & Barber Shop", "GET CASH NOW", "CHECKS CASHED", correct violet/magenta/orange palette | So the whole chain works on this stack: clear, UI drawing, texture sampling, tone mapping and colour. Nothing is wrong with the presentation or the swapchain, and the earlier artefacts were a transient state, not a systematic error. What that means for the dark world: the scene is not failing to composite, it is failing to draw. The same run reports 674 to 4164 draws per frame with 522 to 4425 of them dropped because their shaders do not translate, and the dominant failing classes in the world are the wave/lane-mask ones ("a select on an untracked mask", 86; "a lane mask holding lanes elsewhere read as data", 74). Two things that would help us confirm this properly, if anyone has them: 1. A frame capture of the same moments **on Windows**, where the world is also dark. If the key art and the account picker match ours pixel for pixel, the host path is at parity, and the dark scene is a title-level or converter-level problem rather than a host one. We would happily diff them. 2. Whether the dropped draws in the world are expected to cover the scene, or whether some pass is dropped that should not be. With `VICTORY_SKIP_PIPELINES` we could try skipping the mask-class pipelines one by one and watch the frame, but without knowing which pipeline draws what, that is a blind search.
Author
Owner

@⁠mkslzk on GitHub · 2026-11-24 18:42 UTC · original

Shader translation: 12840 → 13421 of 14027 (95.7 %)

Work from today on top of ffe310e, measured with victory translate over the retail shader pack. Branches are on mkslzk/VIctory (proton-fixes, stride-fix, addr-fix, integrate), since PRs from this account are still limited.

What moved

class before after
a descriptor read only as data 880 0
a structured buffer of unknown stride 206 0
a descriptor's dword 0/1/3 read as data 812 0
an address from a phi 8 0
vertex + pixel programs emitted 12840 13421

How, in three pieces

1. A window onto descriptor heap memory. A descriptor loaded from a heap has no root parameter pointing at its dwords; handle() only built handles from root descriptors. The host root signature now always appends one SRV root parameter (TITLE_SPACE, register 0), bound per draw to a buffer holding the heap's bytes. handle() uses it for RootType::Table | ResourceHeap, and the dword reads become rawBufferLoad at the slot's byte offset. A missing UsedResource entry is no obstacle: a program that only reads numbers never names the descriptor as a resource.

2. The window has to be honest. record() in victory-gpu writes [VIEW_TAG, index, generation] over the first three dwords of every descriptor slot it records, so the heap bytes alone would hand a shader the runtime's tag where it expects an address or a format. The copy feeding the window therefore reconstructs those dwords from the View the runtime already holds: base address, stride (StructureByteStride, else the format's element, else 4), record count, width/height as split fields, type and last level, depth or layer count.

3. Sizes the console computes versus sizes we can rebuild. descriptor_data rebuilds the dwords a console compiler reads for an image's dimensions from the host view's getDimensions. The dwords it cannot rebuild (address low word, format/stride word, last level) now come from the window instead of stopping the program. A descriptor from a root parameter has no window and keeps its refusal.

Stride. Three cases, no guessed number: a heap descriptor with metadata uses it; a descriptor built in the code carries its stride in dword 1 bits 29:16 (mask 0x3FFF); with no stride at all the view stays raw and the index is used as a byte address, which is the console's own form for a raw buffer.

Address joins. A phi or s_cselect_b32 over entries of one table range, where every alternative is the table's heap address plus a term without another parameter, is now traced as that table entry.

What is left, and what blocks it

Top classes over the pack: 237 a descriptor whose root is not a descriptor, 207 an interpolation with computed barycentrics, 195 an address in an SGPR that is no root parameter, 158 a cross-lane operation outside compute, 108 a biased image sample with 16-bit coordinates, 73 an address not from a root parameter.

The 195 are not statically solvable, and the reason is concrete: user data reaches the pipeline per root parameter only (pipeline/host.rs, draw.rs::user_value), so a register outside the layout has no value the translator can read. Title memory is reachable from DXIL only through a root SRV the title set, or through the window above.

Live run, for context

A capture run of the first cutscene (RADV, RX 7900 XT, vkd3d-proton 3.2) dropped 441-539 draws per frame with 338 shaders refusing to translate: 317 compute, 15 mesh, 6 pixel. 928 compute pipelines did build, so it is not the compute path as a whole. The picture stays black while the audio and subtitles run, which fits a frame whose composition chain is partly dropped.

**@⁠mkslzk** on GitHub · 2026-11-24 18:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7141048653) ## Shader translation: 12840 → 13421 of 14027 (95.7 %) Work from today on top of `ffe310e`, measured with `victory translate` over the retail shader pack. Branches are on `mkslzk/VIctory` (`proton-fixes`, `stride-fix`, `addr-fix`, `integrate`), since PRs from this account are still limited. ### What moved | class | before | after | |---|---|---| | `a descriptor read only as data` | 880 | 0 | | `a structured buffer of unknown stride` | 206 | 0 | | `a descriptor's dword 0/1/3 read as data` | 812 | 0 | | `an address from a phi` | 8 | 0 | | vertex + pixel programs emitted | 12840 | **13421** | ### How, in three pieces **1. A window onto descriptor heap memory.** A descriptor loaded from a heap has no root parameter pointing at its dwords; `handle()` only built handles from root descriptors. The host root signature now always appends one SRV root parameter (`TITLE_SPACE`, register 0), bound per draw to a buffer holding the heap's bytes. `handle()` uses it for `RootType::Table | ResourceHeap`, and the dword reads become `rawBufferLoad` at the slot's byte offset. A missing `UsedResource` entry is no obstacle: a program that only reads numbers never names the descriptor as a resource. **2. The window has to be honest.** `record()` in `victory-gpu` writes `[VIEW_TAG, index, generation]` over the first three dwords of every descriptor slot it records, so the heap bytes alone would hand a shader the runtime's tag where it expects an address or a format. The copy feeding the window therefore reconstructs those dwords from the `View` the runtime already holds: base address, stride (`StructureByteStride`, else the format's element, else 4), record count, width/height as split fields, type and last level, depth or layer count. **3. Sizes the console computes versus sizes we can rebuild.** `descriptor_data` rebuilds the dwords a console compiler reads for an image's dimensions from the host view's `getDimensions`. The dwords it cannot rebuild (address low word, format/stride word, last level) now come from the window instead of stopping the program. A descriptor from a root parameter has no window and keeps its refusal. **Stride.** Three cases, no guessed number: a heap descriptor with metadata uses it; a descriptor built in the code carries its stride in dword 1 bits 29:16 (mask 0x3FFF); with no stride at all the view stays raw and the index is used as a byte address, which is the console's own form for a raw buffer. **Address joins.** A phi or `s_cselect_b32` over entries of one table range, where every alternative is the table's heap address plus a term without another parameter, is now traced as that table entry. ### What is left, and what blocks it Top classes over the pack: 237 `a descriptor whose root is not a descriptor`, 207 `an interpolation with computed barycentrics`, 195 `an address in an SGPR that is no root parameter`, 158 `a cross-lane operation outside compute`, 108 `a biased image sample with 16-bit coordinates`, 73 `an address not from a root parameter`. The 195 are not statically solvable, and the reason is concrete: user data reaches the pipeline per root parameter only (`pipeline/host.rs`, `draw.rs::user_value`), so a register outside the layout has no value the translator can read. Title memory is reachable from DXIL only through a root SRV the title set, or through the window above. ### Live run, for context A capture run of the first cutscene (RADV, RX 7900 XT, vkd3d-proton 3.2) dropped 441-539 draws per frame with 338 shaders refusing to translate: 317 compute, 15 mesh, 6 pixel. 928 compute pipelines did build, so it is not the compute path as a whole. The picture stays black while the audio and subtitles run, which fits a frame whose composition chain is partly dropped.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:50 UTC · original

Automated triage for the maintainers.

Thanks for the detailed Linux run (RX 7900 XT, RADV, vkd3d-proton 3.2, ffe310e). The pieces are tracked elsewhere:

  • 2,780 dropped indirect draws: on main, crates/victory-gpu/src/indirect.rs make() still compiles the argument clamp with D3DCompile, which Wine's compiler refuses; tracked in #170 (open PR #1279). #190 and #346 named above were closed without merging.
  • Linux setup notes (vkd3d-proton 3.2, DXVK's dxgi.dll, the d3d12core override, the session variables): #340 is the request for Linux/Wine documentation; a docs pull request would be welcome there, and pull requests are open to everyone now.
  • Host copy time dominating the frame: discussed in #400.
    The shader-translation work on your mkslzk/VIctory branches would need to come as pull requests against current main to be reviewed.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/879#issuecomment-7155211504) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T18:42:59Z at=2026-11-25T06:50:20Z --> Automated triage for the maintainers. Thanks for the detailed Linux run (RX 7900 XT, RADV, vkd3d-proton 3.2, `ffe310e`). The pieces are tracked elsewhere: - 2,780 dropped indirect draws: on `main`, `crates/victory-gpu/src/indirect.rs` `make()` still compiles the argument clamp with `D3DCompile`, which Wine's compiler refuses; tracked in #170 (open PR #1279). #190 and #346 named above were closed without merging. - Linux setup notes (vkd3d-proton 3.2, DXVK's `dxgi.dll`, the `d3d12core` override, the session variables): #340 is the request for Linux/Wine documentation; a docs pull request would be welcome there, and pull requests are open to everyone now. - Host copy time dominating the frame: discussed in #400. The shader-translation work on your `mkslzk/VIctory` branches would need to come as pull requests against current `main` to be reviewed. --- _Generated by [Claude Code](https://claude.ai/code)_
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/Marvisak--VIctory#879
No description provided.