Linux/Wine on RTX 4070: the world renders with the victory-gta6 fork + a DXC fallback + an NVIDIA crash skip list; faces still missing (3 pixel shaders) #1528

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

@⁠ItsYusei99 on GitHub · 2026-11-24 18:48 UTC · original

Summary

On Linux with Wine and an RTX 4070, the intro cutscene renders the 3D world (the city at dusk) with no Xid and no device removal. I used the fxceless/victory-gta6 fork (578d459, on top of ffe310e) plus four small Linux patches, and skipped the shaders that crash the NVIDIA driver. Characters are still incomplete: Lucia's face is missing (only the eyes and teeth draw) and there is a square block on her hair. The three shaders behind that are listed below.

Related: #144 (NVIDIA pipeline-creation crash), #909 and #170 (Wine's HLSL compiler), #728 (SMEM descriptor size reads).

Environment

  • CachyOS, kernel 7.3.4, RTX 4070 12 GB, NVIDIA 620.70.06
  • Wine 11.22, vkd3d-proton 3.2.0, DXVK dxgi
  • Series X dump v1.0.2.1, cargo xwin, target x86_64-pc-windows-msvc, built with --features diagnostics
  • Environment variables:
    • VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains
    • VICTORY_DXC=<dir with dxcompiler.dll + dxil.dll>
    • VICTORY_SKIP_PIPELINES=<list below>

Our own main-based tree, with many open PRs applied, never got past a black screen and Xid 109 after about 60–100 s. AnyXboxX (Series S) failed to create the R9G9B9E5 render target, as in #741.

Local patches on top of the fork

  1. DXC fallback for every runtime D3DCompile site. On Wine, d3dcompiler_47 fails some of the HLSL with E5005. This is the same failure as #909/#170, but it is not limited to the indirect clamp. The new crates/victory-gpu/src/dxc.rs loads dxcompiler.dll from VICTORY_DXC, maps *_5_1 to *_6_0 and compiles with -O3. It is used when D3DCompile fails at five places:

    • indirect.rs: the clamp in make_for and the worker in compile_cs
    • inplace.rs: the shade pass
    • host.rs: compile() and the card compare in make_card_work
  2. Stack size.

    • apps/victory/build.rs passes /STACK:16777216 for msvc.
    • Pipeline worker threads get .stack_size(16 MiB).

    Without these, some translations overflow the default stack under Wine.

  3. Pipeline worker count. VICTORY_PIPELINE_WORKERS sets how many workers make pipelines.

  4. Diagnostics. A making [stages + hashes] line is logged before each pipeline is created, so the last line before a driver crash names the culprit.

NVIDIA driver crash list (#144)

vkCreateGraphicsPipelines / vkCreateComputePipelines throw 0xc0000005 inside the driver for specific shaders, every time. I found them offline with a loop:

  • run victory translate --pipelines --jobs 1 in a throwaway prefix;
  • after each crash, add the last hash it tried to VICTORY_SKIP_PIPELINES;
  • run it again.

So far (the loop is still running, and each run gets past about 13,100 pipelines):

5ad3a82b1c3cc63a,4273011b11446435,15c34c906ac8b908,84d690628d0f4d29,7646d6cdc67d663d,60796355923980cb,c69cc7e93b396173,4144eaa5e864f64c,e3594def92bc4514,85ed05c1914e0874,3d0ee4f3aa00758c,e40174e01d7d84bf,75c0dbd88cca7374,aad44729dfb5ab59,9f0912ef5d6e1ecd,5745ea12effca47f,b514f9ff216c9974

In the intro cutscene only the first three are actually bound.

What is still missing in the cutscene

Per-frame drops once the characters appear:

What Count Notes
ray-tracing structure builder (off in the fork) 1053/frame anything in shadow is black
compute b22a16a178976e1b 14/frame
compute 7f05ddab771799a9, a53a7977fe762268 2/frame each
compute 32ed072b9f845048 1/frame
refused compute 02384a60fda6f2d0, 2cc4c197ee29e291, 369cbe906ea72764 1/frame each
pixel 5ad3a82b1c3cc63a (skipped, driver crash) 1–5/frame, 4 pipelines first bound at frame 1268, when the cutscene starts
pixel 15c34c906ac8b908, 4273011b11446435 (skipped, driver crash) 1/frame each
pixel 2fd01fca16993001, 6b6db9f1a526daeb with mesh 4f23fd8d99482703 — not translated: GFX10 code at 0x51c4 / 0x49dc: a descriptor read only as data is not supported (emit/lower.rs, the Err after view_address); first bound at frame 1281, when Lucia appears

The face and hair artifacts start exactly when these three pixel shaders are first bound: 5ad3a82b… (driver crash) and the two that use a descriptor as data. My guess is that they are the skin, hair or eye passes, but I haven't confirmed it with a capture. The descriptor-as-data case looks like the same family as the SMEM descriptor-size reads in #728.

Performance

About 0.4–0.7 fps, and the CPU is the limit: the GPU is about 11 % busy. Most of the frame is the texture refresh waiting for title memory to "hold still" (about 566 ms per frame) plus copies. In the fork's texture.rs this path still goes through committed()/VirtualQuery, which is slow under Wine.

The intro stutter on the first run is cold pipeline creation: about 770 pipelines on an empty cache.

I can share the patch if it helps.

**@⁠ItsYusei99** on GitHub · 2026-11-24 18:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528) ## Summary On Linux with Wine and an RTX 4070, the intro cutscene renders the 3D world (the city at dusk) with no Xid and no device removal. I used the `fxceless/victory-gta6` fork (`578d459`, on top of `ffe310e`) plus four small Linux patches, and skipped the shaders that crash the NVIDIA driver. Characters are still incomplete: Lucia's face is missing (only the eyes and teeth draw) and there is a square block on her hair. The three shaders behind that are listed below. Related: #144 (NVIDIA pipeline-creation crash), #909 and #170 (Wine's HLSL compiler), #728 (SMEM descriptor size reads). ## Environment - CachyOS, kernel 7.3.4, RTX 4070 12 GB, NVIDIA 620.70.06 - Wine 11.22, vkd3d-proton 3.2.0, DXVK `dxgi` - Series X dump v1.0.2.1, `cargo xwin`, target `x86_64-pc-windows-msvc`, built with `--features diagnostics` - Environment variables: - `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` - `VICTORY_DXC=<dir with dxcompiler.dll + dxil.dll>` - `VICTORY_SKIP_PIPELINES=<list below>` Our own `main`-based tree, with many open PRs applied, never got past a black screen and Xid 109 after about 60–100 s. AnyXboxX (Series S) failed to create the R9G9B9E5 render target, as in #741. ## Local patches on top of the fork 1. **DXC fallback for every runtime `D3DCompile` site.** On Wine, `d3dcompiler_47` fails some of the HLSL with E5005. This is the same failure as #909/#170, but it is not limited to the indirect clamp. The new `crates/victory-gpu/src/dxc.rs` loads `dxcompiler.dll` from `VICTORY_DXC`, maps `*_5_1` to `*_6_0` and compiles with `-O3`. It is used when D3DCompile fails at five places: - `indirect.rs`: the clamp in `make_for` and the worker in `compile_cs` - `inplace.rs`: the shade pass - `host.rs`: `compile()` and the card compare in `make_card_work` 2. **Stack size.** - `apps/victory/build.rs` passes `/STACK:16777216` for msvc. - Pipeline worker threads get `.stack_size(16 MiB)`. Without these, some translations overflow the default stack under Wine. 3. **Pipeline worker count.** `VICTORY_PIPELINE_WORKERS` sets how many workers make pipelines. 4. **Diagnostics.** A `making [stages + hashes]` line is logged before each pipeline is created, so the last line before a driver crash names the culprit. ## NVIDIA driver crash list (#144) `vkCreateGraphicsPipelines` / `vkCreateComputePipelines` throw 0xc0000005 inside the driver for specific shaders, every time. I found them offline with a loop: - run `victory translate --pipelines --jobs 1` in a throwaway prefix; - after each crash, add the last hash it tried to `VICTORY_SKIP_PIPELINES`; - run it again. So far (the loop is still running, and each run gets past about 13,100 pipelines): ``` 5ad3a82b1c3cc63a,4273011b11446435,15c34c906ac8b908,84d690628d0f4d29,7646d6cdc67d663d,60796355923980cb,c69cc7e93b396173,4144eaa5e864f64c,e3594def92bc4514,85ed05c1914e0874,3d0ee4f3aa00758c,e40174e01d7d84bf,75c0dbd88cca7374,aad44729dfb5ab59,9f0912ef5d6e1ecd,5745ea12effca47f,b514f9ff216c9974 ``` In the intro cutscene only the first three are actually bound. ## What is still missing in the cutscene Per-frame drops once the characters appear: | What | Count | Notes | |---|---|---| | ray-tracing structure builder (off in the fork) | 1053/frame | anything in shadow is black | | compute `b22a16a178976e1b` | 14/frame | | | compute `7f05ddab771799a9`, `a53a7977fe762268` | 2/frame each | | | compute `32ed072b9f845048` | 1/frame | | | refused compute `02384a60fda6f2d0`, `2cc4c197ee29e291`, `369cbe906ea72764` | 1/frame each | | | **pixel `5ad3a82b1c3cc63a`** (skipped, driver crash) | 1–5/frame, 4 pipelines | first bound at frame 1268, when the cutscene starts | | pixel `15c34c906ac8b908`, `4273011b11446435` (skipped, driver crash) | 1/frame each | | | **pixel `2fd01fca16993001`, `6b6db9f1a526daeb`** with mesh `4f23fd8d99482703` | — | not translated: `GFX10 code at 0x51c4 / 0x49dc: a descriptor read only as data is not supported` (`emit/lower.rs`, the `Err` after `view_address`); first bound at frame 1281, when Lucia appears | The face and hair artifacts start exactly when these three pixel shaders are first bound: `5ad3a82b…` (driver crash) and the two that use a descriptor as data. My guess is that they are the skin, hair or eye passes, but I haven't confirmed it with a capture. The descriptor-as-data case looks like the same family as the SMEM descriptor-size reads in #728. ## Performance About 0.4–0.7 fps, and the CPU is the limit: the GPU is about 11 % busy. Most of the frame is the texture refresh waiting for title memory to "hold still" (about 566 ms per frame) plus copies. In the fork's `texture.rs` this path still goes through `committed()`/`VirtualQuery`, which is slow under Wine. The intro stutter on the first run is cold pipeline creation: about 770 pipelines on an empty cache. I can share the patch if it helps.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:35:17 +00:00
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 18:54 UTC · original

We built the public fork at 578d459 on an RTX 4090 Wine setup. Could you share the four local source patches you offered, or a branch based on that commit? In particular, the native D3DCompiler override in our setup takes a different path from your DXC fallback. Having your exact source would make the visible intro a much better comparison. Our build has only been startup-tested so far.

I also checked that this fork has independent switches for guest queue waits and texture-to-buffer readback. If you already have a same-intro capture with either switch changed on its own, the frame and whether the city lighting stayed visible would help distinguish those paths. The source patches alone would already help.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 18:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7141320802) We built the public fork at `578d459` on an RTX 4090 Wine setup. Could you share the four local source patches you offered, or a branch based on that commit? In particular, the native D3DCompiler override in our setup takes a different path from your DXC fallback. Having your exact source would make the visible intro a much better comparison. Our build has only been startup-tested so far. I also checked that this fork has independent switches for guest queue waits and texture-to-buffer readback. If you already have a same-intro capture with either switch changed on its own, the frame and whether the city lighting stayed visible would help distinguish those paths. The source patches alone would already help.
Author
Owner

@⁠luisaugustz on GitHub · 2026-11-24 19:18 UTC · original

fxceless/victory-gta6 renders the lit opening cutscene on AMD (RX 9070 XT), with three AMD-specific skips

Thanks to the fork's work, the intro now renders fully lit on an AMD card too: Lucia at the window, the yard and watchtower, sun shafts through the haze, hair rim light, subtitles. As far as I know, this is the first AMD report for it.

Machine: RX 9070 XT (RDNA 4, native 64-lane waves), Adrenalin 32.0.32029.2010, Ryzen 7 5800X, 32 GB, Windows 11 build 26300. Title 1.0.2.1, Series X profile, diag build.

Tree: fxceless/victory-gta6 at 578d459 (the README's last clean commit), unmodified. VICTORY_SHADER_LOOP_LIMIT=256.

What AMD needs (VICTORY_SKIP_PIPELINES). Without these, the run dies:

  1. 41 CS_RaytracingResolve variants crash AMD's shader compiler (amdxc64.dll+0x861b9f, read 0x8). Found offline one program at a time (details: #71). The other 867 compile fine. All 41 are ped materials (_b1139868 / _f21e9178):
    072f5fe96efd27e1,0f1395e5942ca3b2,1a1089a18f7ff5f8,1b20028fc5fae124,1c02f8131c508c75,26fbf87d883e1381,27ce027e7188bed3,36bcbae3c6ee20b3,37d324dbc6c86d16,38047b50e3443232,38e7dedf37c90130,3fa1fda35402c93f,501f0865fdf45dfd,50949ebfee9eb51d,5c10a56026ce13dd,5ddd2ca380fd74d8,695febfd5efced05,70b1e13de6df8585,72ee7db2a361ed65,7b956e1f6d56609f,7fb216a0c6dee3a9,810e4e3cf4237f07,82d469a7fec64cb4,842de0c32bc8dcc5,8a13d3da7f64b8d1,96744a8cd6c0588f,a2d880ad5dea1f45,a4df980a1c65fdbe,a62731e90739f195,b740639a48e688c6,c2fed64ee9b4bf23,c5fc2bc7f3d416f4,d2c52fcd936985b4,d5784d991f3164ab,dc6ef2687950428a,dd66eddf464f4bb1,e2b858e568731a51,e932a28baa58153e,f33e805895d6dd30,fc0dcb1f5312423f,fcd45c3d0020311b
    
  2. eeed82b877b44b5f (CS_ComputeHitDetectionSkinnedResults): the known page fault (#981).
  3. fc5e66f8f873d3bb (meshlet_culling:CS_BatchCullMeshlets_Prev): on this card, its indirect dispatch page-faults at an address with no title memory copy near it (device removed, DRED points at that dispatch). This happened as the first cold-cache run finished its pipelines, right before the cutscene would have shown.

Runs:

  • Cold shader cache: about 615 pipelines queued. The world was already drawn behind the loading card (G-buffer targets showed the window shot), and the loading card stayed up until the queue drained. Then the device was removed by #3 above.
  • Warm cache, with skip #3 added: the cutscene shows after a short white fade-in, fully lit. About 1.0 fps, 968 ms/frame, 4,251 draws/frame, about 1,380 dropped, no device removal so far.

Shadowed areas behave as the README describes (no ray-traced bounce light yet). I haven't tried the newer commits or the VICTORY_BVH_* switches on this card yet; I'll report when I do.

AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.

**@⁠luisaugustz** on GitHub · 2026-11-24 19:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7141898633) **`fxceless/victory-gta6` renders the lit opening cutscene on AMD (RX 9070 XT), with three AMD-specific skips** Thanks to the fork's work, the intro now renders fully lit on an AMD card too: Lucia at the window, the yard and watchtower, sun shafts through the haze, hair rim light, subtitles. As far as I know, this is the first AMD report for it. **Machine:** RX 9070 XT (RDNA 4, native 64-lane waves), Adrenalin 32.0.32029.2010, Ryzen 7 5800X, 32 GB, Windows 11 build 26300. Title 1.0.2.1, Series X profile, diag build. **Tree:** `fxceless/victory-gta6` at `578d459` (the README's last clean commit), unmodified. `VICTORY_SHADER_LOOP_LIMIT=256`. **What AMD needs** (`VICTORY_SKIP_PIPELINES`). Without these, the run dies: 1. **41 `CS_RaytracingResolve` variants** crash AMD's shader compiler (`amdxc64.dll+0x861b9f`, read 0x8). Found offline one program at a time (details: [#71](https://git.gtahub.st/github/Marvisak--VIctory/issues/71)). The other 867 compile fine. All 41 are ped materials (`_b1139868` / `_f21e9178`): ``` 072f5fe96efd27e1,0f1395e5942ca3b2,1a1089a18f7ff5f8,1b20028fc5fae124,1c02f8131c508c75,26fbf87d883e1381,27ce027e7188bed3,36bcbae3c6ee20b3,37d324dbc6c86d16,38047b50e3443232,38e7dedf37c90130,3fa1fda35402c93f,501f0865fdf45dfd,50949ebfee9eb51d,5c10a56026ce13dd,5ddd2ca380fd74d8,695febfd5efced05,70b1e13de6df8585,72ee7db2a361ed65,7b956e1f6d56609f,7fb216a0c6dee3a9,810e4e3cf4237f07,82d469a7fec64cb4,842de0c32bc8dcc5,8a13d3da7f64b8d1,96744a8cd6c0588f,a2d880ad5dea1f45,a4df980a1c65fdbe,a62731e90739f195,b740639a48e688c6,c2fed64ee9b4bf23,c5fc2bc7f3d416f4,d2c52fcd936985b4,d5784d991f3164ab,dc6ef2687950428a,dd66eddf464f4bb1,e2b858e568731a51,e932a28baa58153e,f33e805895d6dd30,fc0dcb1f5312423f,fcd45c3d0020311b ``` 2. **`eeed82b877b44b5f`** (`CS_ComputeHitDetectionSkinnedResults`): the known page fault (#981). 3. **`fc5e66f8f873d3bb`** (`meshlet_culling:CS_BatchCullMeshlets_Prev`): on this card, its indirect dispatch page-faults at an address with no title memory copy near it (device removed, DRED points at that dispatch). This happened as the first cold-cache run finished its pipelines, right before the cutscene would have shown. **Runs:** - **Cold shader cache:** about 615 pipelines queued. The world was already drawn behind the loading card (G-buffer targets showed the window shot), and the loading card stayed up until the queue drained. Then the device was removed by #3 above. - **Warm cache, with skip #3 added:** the cutscene shows after a short white fade-in, fully lit. About 1.0 fps, 968 ms/frame, 4,251 draws/frame, about 1,380 dropped, no device removal so far. Shadowed areas behave as the README describes (no ray-traced bounce light yet). I haven't tried the newer commits or the `VICTORY_BVH_*` switches on this card yet; I'll report when I do. _AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data._
Author
Owner

@⁠Lancito01 on GitHub · 2026-11-24 20:06 UTC · original

Another Windows + NVIDIA confirmation for the fork, on Ampere: an RTX 3080 (driver 621.14), Windows 11 26300, retail 1.0.2.1.

Build: the fork at 7b0f736, unmodified, cargo build --release, empty shader cache. Env VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256, stock TdrDelay, no VICTORY_SKIP_PIPELINES.

Result:

  • The opening cutscene is lit. The intro sequence looked smeared/jittery, as if blended with a frame from well before.
  • Prison prologue gameplay is rendered: Lucia fully drawn (hair included), the sunset sky, the yard and other inmates through the window. Areas out of direct light are dark, as described in the README.
  • Controller input works: walking, camera, and interacting and talking with NPCs. Audio is fine throughout, dialogue included.
  • About 0.7–0.9 s/frame in gameplay (roughly 270 ms preparing, 280 ms on the GPU, 150 ms copying back), about 5,900 draws/frame. Input lags by about 5 frames.
  • 0 device removals, 5 slow host submission warnings, longest frame 2.3 s.
  • 9 shaders don't translate (7 compute, 2 pixel). After background compiling finished, about 318 draws/frame were still dropped for lack of a host pipeline.

For comparison, on the same card upstream main plus a stack of open PRs reached the same gameplay point with the 3D scene fully black, at about 3 s/frame (see #392 / #71). So the fork fixes the black screen on Ampere too.

One run. I'll try the fork's speed switches next.

AI-assisted (Claude Code); posted at my request. No game data attached.

**@⁠Lancito01** on GitHub · 2026-11-24 20:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7143062143) Another Windows + NVIDIA confirmation for the fork, on **Ampere**: an **RTX 3080** (driver 621.14), Windows 11 26300, retail 1.0.2.1. **Build:** the fork at `7b0f736`, unmodified, `cargo build --release`, empty shader cache. Env `VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256`, stock `TdrDelay`, no `VICTORY_SKIP_PIPELINES`. **Result:** - The opening cutscene is lit. The intro sequence looked smeared/jittery, as if blended with a frame from well before. - **Prison prologue gameplay is rendered:** Lucia fully drawn (hair included), the sunset sky, the yard and other inmates through the window. Areas out of direct light are dark, as described in the README. - Controller input works: walking, camera, and **interacting and talking with NPCs**. **Audio is fine** throughout, dialogue included. - About 0.7–0.9 s/frame in gameplay (roughly 270 ms preparing, 280 ms on the GPU, 150 ms copying back), about 5,900 draws/frame. Input lags by about 5 frames. - **0 device removals**, 5 `slow host submission` warnings, longest frame 2.3 s. - 9 shaders don't translate (7 compute, 2 pixel). After background compiling finished, about 318 draws/frame were still dropped for lack of a host pipeline. For comparison, on the same card upstream main plus a stack of open PRs reached the same gameplay point with the 3D scene fully black, at about 3 s/frame (see #392 / #71). So the fork fixes the black screen on Ampere too. One run. I'll try the fork's speed switches next. AI-assisted (Claude Code); posted at my request. No game data attached.
Author
Owner

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

RTX 3070 Ti Laptop (Windows, Ampere): the fork at 578d459 renders the prison prologue up to the first gameplay prompt. It loses the device after 5–8 minutes, in a different shader each run.

My own main-based tree, with about ten open PRs applied (#439 #587 #650 #1074 #1020 …), stays stable for 9 minutes but renders black (see my notes on #778). The fork at 578d459, unmodified, renders the world on the same machine.

Machine: RTX 3070 Ti Laptop GPU (8 GB, 32-lane waves), NVIDIA 621.40, i7-12700H, Windows 11 26300, title 1.0.2.1. Diag build (--profile diag --features diagnostics), VICTORY_D3D12_DRED=1.

Run Settings Furthest point End
1 VICTORY_SKIP_PIPELINES=eeed82b877b44b5f lit prologue cutscene (Lucia at the window, yard, watchtower) device removed at ~8 min, in smh_draw_128:CS_VisHair (b6df66af105d8b2d, dispatch 1x1x1)
2 + skip b6df66af105d8b2d cutscene device removed at ~5 min, compute 5bb23d336331db1d (dispatch 16x16x8; I could not name it)
3 + VICTORY_SHADER_LOOP_LIMIT=64 first gameplay prompt ("Move" / "Move the camera"), frame 3000 device removed at ~8 min, InstanceCulling:CS_Prop_BatchNoCull (fdd56d97a806bcca, dispatch 105x1x1)
4 3 + VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 entering the world device removed at ~5 min (frame 1693), with submissions sent ahead
  • Speed: about 1.0–1.3 fps in the world, roughly 4,200–5,000 draws per frame, 16–25% dropped. My main-based tree managed 0.2–0.4 fps with about 2,200 draws.
    • Per frame without the switches: ~340 ms preparing, ~280 ms on the GPU, ~200 ms copying back.
    • With the run-4 switches: 100–160 ms on the GPU and ~50 ms copying back, but it fails sooner.
  • The "white screen" some people may see is auto-exposure, not a fault. The lit frame comes up fully overexposed and converges over many frames. At about 1 fps that takes minutes. A capture of the window itself shows the scene appearing through the white.

For upstream: what seems to make the difference on NVIDIA. The fork's comments say a raw read through a structured view returns zeros on NVIDIA. The title's meshlet culling (meshlet_culling:CS_BatchCullMeshlets) reads its scene buffers that way. This matches the README's "meshlet culling read its scene buffers as the wrong kind of view, so the world drew almost nothing". The fix appears to be:

  • the structured-as-raw window in crates/victory-gpu/src/descriptor/host.rs (raw_window);
  • the matching lowering in crates/victory-shader/src/emit/lower.rs (the BatchCullMeshlets comments).

On my main-based tree, CS_BatchCullMeshlets (3b471c122be79b3e) was also among the programs dropped every frame. @fxceless, would you be open to proposing this one, and the "empty copies of packed light" fix, as separate PRs upstream? They look like the core of the black-world problem on NVIDIA, and everyone would get them.

AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.

**@⁠Ilokaxt** on GitHub · 2026-11-24 20:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7143223764) **RTX 3070 Ti Laptop (Windows, Ampere): the fork at `578d459` renders the prison prologue up to the first gameplay prompt. It loses the device after 5–8 minutes, in a different shader each run.** My own `main`-based tree, with about ten open PRs applied (#439 #587 #650 #1074 #1020 …), stays stable for 9 minutes but renders black (see my notes on #778). The fork at `578d459`, unmodified, renders the world on the same machine. **Machine:** RTX 3070 Ti Laptop GPU (8 GB, 32-lane waves), NVIDIA 621.40, i7-12700H, Windows 11 26300, title 1.0.2.1. Diag build (`--profile diag --features diagnostics`), `VICTORY_D3D12_DRED=1`. | Run | Settings | Furthest point | End | |---|---|---|---| | 1 | `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f` | lit prologue cutscene (Lucia at the window, yard, watchtower) | device removed at ~8 min, in `smh_draw_128:CS_VisHair` (`b6df66af105d8b2d`, dispatch 1x1x1) | | 2 | + skip `b6df66af105d8b2d` | cutscene | device removed at ~5 min, compute `5bb23d336331db1d` (dispatch 16x16x8; I could not name it) | | 3 | + `VICTORY_SHADER_LOOP_LIMIT=64` | **first gameplay prompt ("Move" / "Move the camera"), frame 3000** | device removed at ~8 min, `InstanceCulling:CS_Prop_BatchNoCull` (`fdd56d97a806bcca`, dispatch 105x1x1) | | 4 | 3 + `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` | entering the world | device removed at ~5 min (frame 1693), with submissions sent ahead | - **Speed:** about 1.0–1.3 fps in the world, roughly 4,200–5,000 draws per frame, 16–25% dropped. My `main`-based tree managed 0.2–0.4 fps with about 2,200 draws. - Per frame without the switches: ~340 ms preparing, ~280 ms on the GPU, ~200 ms copying back. - With the run-4 switches: 100–160 ms on the GPU and ~50 ms copying back, but it fails sooner. - **The "white screen" some people may see is auto-exposure, not a fault.** The lit frame comes up fully overexposed and converges over many frames. At about 1 fps that takes minutes. A capture of the window itself shows the scene appearing through the white. **For upstream: what seems to make the difference on NVIDIA.** The fork's comments say a raw read through a structured view returns zeros on NVIDIA. The title's meshlet culling (`meshlet_culling:CS_BatchCullMeshlets`) reads its scene buffers that way. This matches the README's "meshlet culling read its scene buffers as the wrong kind of view, so the world drew almost nothing". The fix appears to be: - the structured-as-raw window in `crates/victory-gpu/src/descriptor/host.rs` (`raw_window`); - the matching lowering in `crates/victory-shader/src/emit/lower.rs` (the `BatchCullMeshlets` comments). On my `main`-based tree, `CS_BatchCullMeshlets` (`3b471c122be79b3e`) was also among the programs dropped every frame. `@fxceless`, would you be open to proposing this one, and the "empty copies of packed light" fix, as separate PRs upstream? They look like the core of the black-world problem on NVIDIA, and everyone would get them. AI-assisted (Claude Code); runs on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠KaliemSB on GitHub · 2026-11-24 21:00 UTC · original

Windows + NVIDIA, 8 GB Ada: the fork renders on an RTX 4060 (8 GB), the first 8 GB card in this thread as far as I can see.

Machine: RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24, Windows 11 Pro 26100, 32 GB RAM, retail 1.0.2.1 (my own dump), Series X profile.

Build: fxceless/victory-gta6 at 1684989, unmodified, cargo build --release -p victory. Env VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256, stock TdrDelay, no VICTORY_SKIP_PIPELINES. Separate cache and data folders; the shader cache was empty except for a 9-minute run on 7b0f736 just before.

Result:

  • The world renders. It's not complete, but it's visibly drawn and no longer black. On upstream ffe310e (+ #578 and the #747 heap/wave64 stopgaps), the same machine stayed black at 1–2 fps.
  • Ran 31 min. No device removal, no hang, nothing in crashes.log. The run ended when I closed the window.
  • Cold pipelines take a while on this card. About 1,250 pipelines were queued at world load. While they compile, the screen stays black and the fork drops draws without a host pipeline. Pipelines reached 0 at 10 min 40 s after launch. On the first run I closed the window at 9 min with 553 still compiling, and I saw only black. Anyone testing a cold cache should wait past that. The library saved 2,089 pipelines (381 MB).
after pipelines finished (207 samples, ~20 min)
frame rate 2.4 fps median (1.8–2.6), ~410 ms/frame
frame split (last sample) 146 ms preparing (copies 56 ms, 130 MB), 181 ms GPU, 84 ms copying back (63 MB)
draws/frame ~4,600
dropped without a host pipeline ~340/frame (0 being made)
indirect dropped ~5/frame (was ~1,220 while pipelines were pending)
host pipelines refused 5
shaders that do not translate 12

8 GB VRAM: usage peaked at 7.15 of 8 GB (nvidia-smi, every 5 s). The log printed textures picked by index: the card has no room for more; they wait once per run, about 5–6 min in, as VRAM reached ~6.8 GB. It ran, but with very little headroom. A low-VRAM switch like #737 would be the next thing to try on this class.

Visually it's "not perfect": as on the other cards, areas out of direct light are dark.

(Tested with AI help: Claude Code (Claude Opus 5.5) ran the build and parsed the logs; the observations of the screen are mine. No game files, screenshots or game-content logs attached.)

**@⁠KaliemSB** on GitHub · 2026-11-24 21:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7144359486) **Windows + NVIDIA, 8 GB Ada: the fork renders on an RTX 4060 (8 GB)**, the first 8 GB card in this thread as far as I can see. **Machine:** RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24, Windows 11 Pro 26100, 32 GB RAM, retail 1.0.2.1 (my own dump), Series X profile. **Build:** `fxceless/victory-gta6` at `1684989`, unmodified, `cargo build --release -p victory`. Env `VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256`, stock `TdrDelay`, no `VICTORY_SKIP_PIPELINES`. Separate cache and data folders; the shader cache was empty except for a 9-minute run on `7b0f736` just before. **Result:** - **The world renders.** It's not complete, but it's visibly drawn and no longer black. On upstream `ffe310e` (+ #578 and the #747 heap/wave64 stopgaps), the same machine stayed black at 1–2 fps. - Ran 31 min. **No device removal, no hang, nothing in `crashes.log`.** The run ended when I closed the window. - **Cold pipelines take a while on this card.** About 1,250 pipelines were queued at world load. While they compile, the screen stays black and the fork drops draws without a host pipeline. Pipelines reached 0 at **10 min 40 s** after launch. On the first run I closed the window at 9 min with 553 still compiling, and I saw only black. Anyone testing a cold cache should wait past that. The library saved 2,089 pipelines (381 MB). | after pipelines finished (207 samples, ~20 min) | | |---|---| | frame rate | **2.4 fps median** (1.8–2.6), ~410 ms/frame | | frame split (last sample) | 146 ms preparing (copies 56 ms, 130 MB), 181 ms GPU, 84 ms copying back (63 MB) | | draws/frame | ~4,600 | | dropped without a host pipeline | ~340/frame (0 being made) | | indirect dropped | ~5/frame (was ~1,220 while pipelines were pending) | | host pipelines refused | 5 | | shaders that do not translate | 12 | **8 GB VRAM:** usage peaked at **7.15 of 8 GB** (`nvidia-smi`, every 5 s). The log printed `textures picked by index: the card has no room for more; they wait` once per run, about 5–6 min in, as VRAM reached ~6.8 GB. It ran, but with very little headroom. A low-VRAM switch like #737 would be the next thing to try on this class. Visually it's "not perfect": as on the other cards, areas out of direct light are dark. *(Tested with AI help: Claude Code (Claude Opus 5.5) ran the build and parsed the logs; the observations of the screen are mine. No game files, screenshots or game-content logs attached.)*
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-24 21:10 UTC · original

Blackwell (RTX 5060 Ti) with the fork at 7b0f736: the lit opening cutscene and the prison prologue render, no device removal in 25 minutes; the player's body is not drawn

Setup: RTX 5060 Ti 16 GB (Blackwell), driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 26200; Series X profile; retail 1.0.2.1.
Build: the fork at 7b0f736, unmodified, diag profile (--features diagnostics), Rust 1.100. Env: VICTORY_SHADER_LOOP_LIMIT=256, VICTORY_D3D12_DRED=1. Input: scripted Enter presses, then a person at the keyboard. Two runs: 600 s with an empty shader cache, then 900 s with it warm.

What works here:

  • 0 device removals and 0 driver resets in 25 minutes. On this card upstream main alone hangs in the world (#747).
  • The opening cutscene is lit: night street with lamps, a dusk skyline with volumetric clouds and city lights, a daylight rooftop. The prison prologue's gameplay is reached: the interior with the yard, tables and buildings through the window.
  • Untranslated shaders reported in the run: 4 (cold) and 15 (warm, it got further), against 266 for upstream main + #578 + MIN_DYNAMIC = 1 << 18 + #322 + #1492 on the same card, where the world stays black.
  • Warm cache, in gameplay: about 720 ms per frame (1.4 fps): 170 ms preparing (copies 55 ms, ~150 MB), 440 ms on the GPU, 97 ms copying back (~73 MB); about 5,000 draws per frame, up to 6,756.

What is wrong here (seen on screen, repeatable across scenes):

  1. The player character's torso, clothes and legs are not drawn, in cutscenes and in gameplay: the head, face and arms are, and the sky shows through the rest. The RTX 3080 report above has her fully drawn, so this may be specific to this card or driver.
  2. Blocky texture corruption on the arms, legs and neck: square patches of wrong texels.
  3. In one close-up, hair strands become long straight lines across a third of the screen.
  4. Shadow edges in large stair steps on the daylight rooftop.
  5. The first few seconds of the opening cutscene jump back and forth, as in the RTX 3080 report; 15 a black frame after a frame that was not warnings in the warm run.
  6. A light halo around building silhouettes against the sky. Areas out of direct light are black, as the README says.

From the log of the warm run, in case it helps with item 1:

  • 6 pixel shaders do not translate: 5 with a descriptor read only as data is not supported (2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, c8df7216c69cecbd, e5b2121a02f4f741) and 1 with the first half of an interpolation is not supported (38bf0814e721a1b3).
  • 9 compute shaders do not translate; 5 compute host pipelines are refused by the driver (The parameter is incorrect).
  • 29 calls to a pipeline creation method that is not implemented (device slot 0x1c8): the title goes without those pipelines.
  • With the cache warm and nothing left being made, about 390 draws per frame are still dropped for lack of a host pipeline.

Not tested: the fork's four newer commits (head 4e17478); the fork's speed switches (VICTORY_RELAY, VICTORY_LATE_WAIT, ...); other loop limits; the Series S profile; more than these two runs.

AI use: Claude Code (Claude Opus 5.5) ran the builds and wrote this; the screen observations are mrejecutor's. No game data attached.

**@⁠MrEjecutor** on GitHub · 2026-11-24 21:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7144575191) **Blackwell (RTX 5060 Ti) with the fork at `7b0f736`: the lit opening cutscene and the prison prologue render, no device removal in 25 minutes; the player's body is not drawn** **Setup:** RTX 5060 Ti 16 GB (Blackwell), driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 26200; Series X profile; retail 1.0.2.1. **Build:** the fork at `7b0f736`, unmodified, diag profile (`--features diagnostics`), Rust 1.100. Env: `VICTORY_SHADER_LOOP_LIMIT=256`, `VICTORY_D3D12_DRED=1`. Input: scripted `Enter` presses, then a person at the keyboard. Two runs: 600 s with an empty shader cache, then 900 s with it warm. **What works here:** - 0 device removals and 0 driver resets in 25 minutes. On this card upstream `main` alone hangs in the world (#747). - The opening cutscene is lit: night street with lamps, a dusk skyline with volumetric clouds and city lights, a daylight rooftop. The prison prologue's gameplay is reached: the interior with the yard, tables and buildings through the window. - Untranslated shaders reported in the run: 4 (cold) and 15 (warm, it got further), against 266 for upstream `main` + #578 + `MIN_DYNAMIC = 1 << 18` + #322 + #1492 on the same card, where the world stays black. - Warm cache, in gameplay: about 720 ms per frame (1.4 fps): 170 ms preparing (copies 55 ms, ~150 MB), 440 ms on the GPU, 97 ms copying back (~73 MB); about 5,000 draws per frame, up to 6,756. **What is wrong here** (seen on screen, repeatable across scenes): 1. **The player character's torso, clothes and legs are not drawn**, in cutscenes and in gameplay: the head, face and arms are, and the sky shows through the rest. The RTX 3080 report above has her fully drawn, so this may be specific to this card or driver. 2. **Blocky texture corruption** on the arms, legs and neck: square patches of wrong texels. 3. In one close-up, **hair strands become long straight lines** across a third of the screen. 4. **Shadow edges in large stair steps** on the daylight rooftop. 5. The first few seconds of the opening cutscene **jump back and forth**, as in the RTX 3080 report; 15 `a black frame after a frame that was not` warnings in the warm run. 6. A light halo around building silhouettes against the sky. Areas out of direct light are black, as the README says. **From the log of the warm run**, in case it helps with item 1: - 6 pixel shaders do not translate: 5 with `a descriptor read only as data is not supported` (`2fd01fca16993001`, `6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `c8df7216c69cecbd`, `e5b2121a02f4f741`) and 1 with `the first half of an interpolation is not supported` (`38bf0814e721a1b3`). - 9 compute shaders do not translate; 5 compute host pipelines are refused by the driver (`The parameter is incorrect`). - 29 calls to a pipeline creation method that is not implemented (`device` slot `0x1c8`): the title goes without those pipelines. - With the cache warm and nothing left being made, about 390 draws per frame are still dropped for lack of a host pipeline. **Not tested:** the fork's four newer commits (head `4e17478`); the fork's speed switches (`VICTORY_RELAY`, `VICTORY_LATE_WAIT`, ...); other loop limits; the Series S profile; more than these two runs. **AI use:** Claude Code (Claude Opus 5.5) ran the builds and wrote this; the screen observations are mrejecutor's. No game data attached.
Author
Owner

@⁠cafeoh on GitHub · 2026-11-24 21:52 UTC · original

Turing + Windows 10: the fork at 90228a7 renders the lit opening scene on an RTX 2080 Ti, the first Turing card in these reports as far as I can see.

Machine: RTX 2080 Ti 11 GB (Turing, 32-lane waves), driver 617.14, Windows 10 22H2 (19045), title 1.0.2.1, Series X profile.

Build: the fork at 90228a7, diag profile, DRED on, scripted Enter. Two local changes, both needed or practical here:

  • Windows 10 needs the D3D12 Agility SDK runtime (the same approach as #175). The fork doesn't include it, so I added the exports and put D3D12Core.dll next to the exe.
  • Non-looping intro movies jump to their last frame (test-time saving only).

Tested:

  • From the menus to the world in about 2.5 minutes on a cold shader cache.
  • A dusk skyline, then a lit street with road, poles and buildings, then the intro credits. Textures are still rough at first.
  • 0 device removals in the run. I stopped it by hand at 3.5 minutes. Peak 25 GB private memory.
  • On the same machine, upstream main + #493 + #206 + #189 (+ #704, #688) reaches the world but stays black, then stops at the title's +0x5149aec (#698) after about 6.5 minutes.

Not tested: long runs, the prologue gameplay, and whether +0x5149aec comes later on the fork.

AI-assisted (Claude Code); measured on our own machine, nothing from the game attached.

**@⁠cafeoh** on GitHub · 2026-11-24 21:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7145510880) **Turing + Windows 10: the fork at `90228a7` renders the lit opening scene on an RTX 2080 Ti**, the first Turing card in these reports as far as I can see. **Machine:** RTX 2080 Ti 11 GB (Turing, 32-lane waves), driver 617.14, Windows 10 22H2 (19045), title 1.0.2.1, Series X profile. **Build:** the fork at `90228a7`, diag profile, DRED on, scripted Enter. Two local changes, both needed or practical here: - Windows 10 needs the D3D12 Agility SDK runtime (the same approach as #175). The fork doesn't include it, so I added the exports and put `D3D12Core.dll` next to the exe. - Non-looping intro movies jump to their last frame (test-time saving only). **Tested:** - From the menus to the world in about 2.5 minutes on a cold shader cache. - A dusk skyline, then a lit street with road, poles and buildings, then the intro credits. Textures are still rough at first. - 0 device removals in the run. I stopped it by hand at 3.5 minutes. Peak 25 GB private memory. - On the same machine, upstream `main` + #493 + #206 + #189 (+ #704, #688) reaches the world but stays black, then stops at the title's `+0x5149aec` (#698) after about 6.5 minutes. **Not tested:** long runs, the prologue gameplay, and whether `+0x5149aec` comes later on the fork. AI-assisted (Claude Code); measured on our own machine, nothing from the game attached.
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-24 22:38 UTC · original

Same RTX 5060 Ti, the fork at 4e17478 against 7b0f736: bodies are drawn now; skin is not; black frames went from 9–15 to 335

Same setup as my report above (RTX 5060 Ti, driver 621.24, Windows 11 26200, Series X profile, diag build, VICTORY_SHADER_LOOP_LIMIT=256, VICTORY_D3D12_DRED=1), one 900 s run of 4e17478 with a fresh cache for it, a person at the keyboard in the prologue.

7b0f736 (cold 600 s / warm 900 s) 4e17478 (900 s)
device removals 0 / 0 0
a black frame after a frame that was not 9 / 15 335
untranslated shaders reported 4 / 15 7 (2 pixel, 5 compute)
compute host pipelines refused 5 (warm) 4
device slot 0x1c8 pipeline creation calls not implemented 29 (warm) 29
gameplay frame time ~720 ms (warm) ~720 ms (446 pipelines still being made at the end)

The black frames are visible: the screen flickers from dark to black throughout the run, not only in the first seconds of the cutscene. The cold run of 7b0f736 had a longer pipeline queue (986) and only 9, so the cache does not explain it.

What changed on screen (prison interior and corridors):

  • Bodies and clothes are drawn now (on 7b0f736 the player's torso and legs were missing): an improvement.
  • Skin is still missing, on every character seen (the player and two inmates): only the eyes and the mouth float where a face should be; one inmate's forearm ends in the air. 5ad3a82b1c3cc63a translates and is bound in this run, so for this card it is not a translation failure of that program.
  • A large black rectangle appears in close-ups, next to or over the faces, and changes size and place with them; with no skin in view (from behind, in a corridor) there is none. A guess, not checked: a screen-space skin pass whose output is black over its bounds.
  • Hair is grey or near white (dark brown on 7b0f736), and loose hair strands still show as long straight lines.
  • Walls, ceiling lights, the barred gate and the inmates behind it render; the flat brown door panels look untextured.

The 2 pixel shaders that do not translate are 6b6db9f1a526daeb (one of the wetness shaders @⁠hcristosm identified above) and 7d0f14ce44746d7e, both with a descriptor read only as data is not supported.

Not tested: the 4 commits between 7b0f736 and 4e17478 separately, so I cannot say which one brings the black frames.

AI use: Claude Code (Claude Opus 5.5) ran the build and wrote this; the screen observations are mrejecutor's. No game data attached.

**@⁠MrEjecutor** on GitHub · 2026-11-24 22:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7146471997) **Same RTX 5060 Ti, the fork at `4e17478` against `7b0f736`: bodies are drawn now; skin is not; black frames went from 9–15 to 335** Same setup as my report above (RTX 5060 Ti, driver 621.24, Windows 11 26200, Series X profile, diag build, `VICTORY_SHADER_LOOP_LIMIT=256`, `VICTORY_D3D12_DRED=1`), one 900 s run of `4e17478` with a fresh cache for it, a person at the keyboard in the prologue. | | `7b0f736` (cold 600 s / warm 900 s) | `4e17478` (900 s) | |---|---|---| | device removals | 0 / 0 | 0 | | `a black frame after a frame that was not` | 9 / 15 | **335** | | untranslated shaders reported | 4 / 15 | 7 (2 pixel, 5 compute) | | compute host pipelines refused | 5 (warm) | 4 | | `device` slot `0x1c8` pipeline creation calls not implemented | 29 (warm) | 29 | | gameplay frame time | ~720 ms (warm) | ~720 ms (446 pipelines still being made at the end) | The black frames are visible: the screen flickers from dark to black throughout the run, not only in the first seconds of the cutscene. The cold run of `7b0f736` had a longer pipeline queue (986) and only 9, so the cache does not explain it. **What changed on screen** (prison interior and corridors): - **Bodies and clothes are drawn now** (on `7b0f736` the player's torso and legs were missing): an improvement. - **Skin is still missing, on every character seen** (the player and two inmates): only the eyes and the mouth float where a face should be; one inmate's forearm ends in the air. `5ad3a82b1c3cc63a` translates and is bound in this run, so for this card it is not a translation failure of that program. - **A large black rectangle** appears in close-ups, next to or over the faces, and changes size and place with them; with no skin in view (from behind, in a corridor) there is none. A guess, not checked: a screen-space skin pass whose output is black over its bounds. - **Hair is grey or near white** (dark brown on `7b0f736`), and loose hair strands still show as long straight lines. - Walls, ceiling lights, the barred gate and the inmates behind it render; the flat brown door panels look untextured. The 2 pixel shaders that do not translate are `6b6db9f1a526daeb` (one of the wetness shaders @⁠hcristosm identified above) and `7d0f14ce44746d7e`, both with `a descriptor read only as data is not supported`. **Not tested:** the 4 commits between `7b0f736` and `4e17478` separately, so I cannot say which one brings the black frames. **AI use:** Claude Code (Claude Opus 5.5) ran the build and wrote this; the screen observations are mrejecutor's. No game data attached.
Author
Owner

@⁠Coderlord on GitHub · 2026-11-25 05:21 UTC · original

The faces: the pixel programs that stop at "a descriptor read only as data" read an indexed texture's size

With the fork on Windows 11 and an RTX 5080 (driver 621.24), the faces render once the pixel programs that stop at a descriptor read only as data (two of them are in your table) translate. In two seven-minute runs of the opening cutscene, close-ups showed lit faces where they had been black except for the eyes and teeth, and the whole picture was much less dark: those programs write a small single-float target that looks like the exposure.

What those programs do. They pick a texture from the heap by an index (an 8-dword scalar load whose offset is the index times 32 bytes) and read only its size fields from the descriptor (width, height and base level, in dwords 1 to 3), to scale coordinates by the texture's size; they sample other textures. In the fork's Lower::descriptor_data (crates/victory-shader/src/emit/lower.rs) such a load has no use as a descriptor and no load of the same address that has one, so it ends at Err("a descriptor read only as data"). Its offset also falls in no range of the used-resource list, so a check on the list's ranges does not catch it either.

Fix (against fxceless/victory-gta6, GPL-3.0 like the rest). Where that function gave up, an 8-dword load from a table is taken for an image unless the used-resource list says its range holds something else. Its slot comes from the address, as for an image read (heap_index), and the size words come from GetDimensions on a 2D handle, which the function already builds for an image the program uses:

// in descriptor_data, where it returned Err("a descriptor read only as data"):
let image = count == 8
    && self.scalar.contains_key(&site)
    && self
        .used_kind(&Source::Loaded { load: site, first: 0 })
        .is_none_or(|u| u.kind == ResourceType::Srv && u.dwords == 8);
if !image {
    return Err("a descriptor read only as data");
}
// then go on with no use site: a 2D shader-resource handle, read for its size only
// let (uav, props, image) = match found {
//     None => (false, (2, 0x409), Some(2)),
//     Some((at, _)) => { /* the existing classification */ }
// };

A synthetic test (a table at s0, an index at s1, s_lshl_b32 s6, s1, 5, s_load_dwordx8 s[8:15], s[4:5], s6, then s_lshr_b32, s_lshl_b32 and s_bfe_u32 on dwords 1 to 3) translates; the same read from a range of 4-dword (buffer) descriptors stays refused. With the change, victory translate --validate passes the three programs of this kind our runs hit, and the workspace tests and clippy pass.

AI use: found, written and tested with Claude Code (Claude Opus 5.5).

**@⁠Coderlord** on GitHub · 2026-11-25 05:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7153690343) **The faces: the pixel programs that stop at "a descriptor read only as data" read an indexed texture's size** With the fork on Windows 11 and an RTX 5080 (driver 621.24), the faces render once the pixel programs that stop at `a descriptor read only as data` (two of them are in your table) translate. In two seven-minute runs of the opening cutscene, close-ups showed lit faces where they had been black except for the eyes and teeth, and the whole picture was much less dark: those programs write a small single-float target that looks like the exposure. **What those programs do.** They pick a texture from the heap by an index (an 8-dword scalar load whose offset is the index times 32 bytes) and read only its size fields from the descriptor (width, height and base level, in dwords 1 to 3), to scale coordinates by the texture's size; they sample other textures. In the fork's `Lower::descriptor_data` (`crates/victory-shader/src/emit/lower.rs`) such a load has no use as a descriptor and no load of the same address that has one, so it ends at `Err("a descriptor read only as data")`. Its offset also falls in no range of the used-resource list, so a check on the list's ranges does not catch it either. **Fix** (against `fxceless/victory-gta6`, GPL-3.0 like the rest). Where that function gave up, an 8-dword load from a table is taken for an image unless the used-resource list says its range holds something else. Its slot comes from the address, as for an image read (`heap_index`), and the size words come from `GetDimensions` on a 2D handle, which the function already builds for an image the program uses: ```rust // in descriptor_data, where it returned Err("a descriptor read only as data"): let image = count == 8 && self.scalar.contains_key(&site) && self .used_kind(&Source::Loaded { load: site, first: 0 }) .is_none_or(|u| u.kind == ResourceType::Srv && u.dwords == 8); if !image { return Err("a descriptor read only as data"); } // then go on with no use site: a 2D shader-resource handle, read for its size only // let (uav, props, image) = match found { // None => (false, (2, 0x409), Some(2)), // Some((at, _)) => { /* the existing classification */ } // }; ``` A synthetic test (a table at s0, an index at s1, `s_lshl_b32 s6, s1, 5`, `s_load_dwordx8 s[8:15], s[4:5], s6`, then `s_lshr_b32`, `s_lshl_b32` and `s_bfe_u32` on dwords 1 to 3) translates; the same read from a range of 4-dword (buffer) descriptors stays refused. With the change, `victory translate --validate` passes the three programs of this kind our runs hit, and the workspace tests and clippy pass. AI use: found, written and tested with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-25 06:59 UTC · original · edited 2026-11-25 07:16 UTC

@⁠Coderlord a data point for your "descriptor read only as data" change, on Blackwell: the two pixel programs translate here too, but on this card I see no change in the faces I was hoping it would fix.

Setup: RTX 5060 Ti 16 GB (Blackwell, 32-lane), driver 621.24, Windows 11 26200, Series X profile, the fork at 310c6eb with VICTORY_TEXTURE_GUARD=0 and VICTORY_SHADER_LOOP_LIMIT=256, diag build. Your change rebuilt from the comment above: the image check where the function gave up, then a 2D shader-resource handle read for its size only. The commented-out part is my reading of it, so this is not necessarily your exact patch.

Offline (victory translate --validate --pipelines --list over the title's files): no vertex or pixel program stops at a descriptor read only as data any more. Six compute programs, all from one shadow-tracing family, still do.

One 900 s run, compared with my earlier run of the same build without the change:

without with
untranslated shaders reported 3 (1 compute, 2 pixel) 1 (the compute one)
device removals 0 0
world fps, median 2.4 2.8

The world started at 55 s in the first run and at 103 s in the second, and the person at the pad took a different path, so I would not read anything into the speed.

On screen:

  • In the same dormitory scene in both runs I see no difference. Indoor exposure was already right with VICTORY_TEXTURE_GUARD=0; one seated character's face is still a mottled pattern in both; the ceiling still shows the sky.
  • Outdoor cutscene shots look washed out: very bright, low contrast, with banding.

Edit, after an A/B run: I ran the same build without the change with the same scripted presses, a cold cache in both, and the same captured frames counted from the first world frame. In the first frames of the opening cutscene the change makes it much brighter: mean brightness 206–208 out of 255, with 38–48 % of the picture near white and wide contour bands, against 61–149 and no near-white areas without it. So on this card, at least my reconstruction of the change overshoots the exposure there.

So on this card the faces that were black for you were already drawn before the change, and the mottled one is something else.

Could you share the full change as a branch? I would rather run your exact patch than my reconstruction of it.

Not tested: your exact patch; later scenes like for like (in the run with the change someone was at the pad); a second run of each.

AI use: Claude Code rebuilt the change, ran and wrote this; checked by mrejecutor. No game data attached.

**@⁠MrEjecutor** on GitHub · 2026-11-25 06:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7155366138) · edited 2026-11-25 07:16 UTC @⁠Coderlord a data point for your "descriptor read only as data" change, on Blackwell: the two pixel programs translate here too, but on this card I see no change in the faces I was hoping it would fix. **Setup:** RTX 5060 Ti 16 GB (Blackwell, 32-lane), driver 621.24, Windows 11 26200, Series X profile, the fork at `310c6eb` with `VICTORY_TEXTURE_GUARD=0` and `VICTORY_SHADER_LOOP_LIMIT=256`, diag build. Your change rebuilt from the comment above: the `image` check where the function gave up, then a 2D shader-resource handle read for its size only. The commented-out part is my reading of it, so this is not necessarily your exact patch. **Offline** (`victory translate --validate --pipelines --list` over the title's files): no vertex or pixel program stops at `a descriptor read only as data` any more. Six compute programs, all from one shadow-tracing family, still do. **One 900 s run**, compared with my earlier run of the same build without the change: | | without | with | |---|---|---| | untranslated shaders reported | 3 (1 compute, 2 pixel) | **1** (the compute one) | | device removals | 0 | 0 | | world fps, median | 2.4 | 2.8 | The world started at 55 s in the first run and at 103 s in the second, and the person at the pad took a different path, so I would not read anything into the speed. **On screen:** - In the same dormitory scene in both runs I see no difference. Indoor exposure was already right with `VICTORY_TEXTURE_GUARD=0`; one seated character's face is still a mottled pattern in both; the ceiling still shows the sky. - Outdoor cutscene shots look washed out: very bright, low contrast, with banding. **Edit, after an A/B run:** I ran the same build without the change with the same scripted presses, a cold cache in both, and the same captured frames counted from the first world frame. In the first frames of the opening cutscene the change makes it much brighter: mean brightness 206–208 out of 255, with 38–48 % of the picture near white and wide contour bands, against 61–149 and no near-white areas without it. So on this card, at least my reconstruction of the change overshoots the exposure there. So on this card the faces that were black for you were already drawn before the change, and the mottled one is something else. Could you share the full change as a branch? I would rather run your exact patch than my reconstruction of it. Not tested: your exact patch; later scenes like for like (in the run with the change someone was at the pad); a second run of each. AI use: Claude Code rebuilt the change, ran and wrote this; checked by mrejecutor. No game data attached.
Author
Owner

@⁠Coderlord on GitHub · 2026-11-25 09:56 UTC · original

@⁠MrEjecutor, thanks for running it. The fork no longer runs my version: fxceless's covers the same case and passes my test, so we took theirs. It is unused_descriptor_kind in crates/victory-shader/src/emit/lower.rs of fxceless/victory-fork (it came with their commit a26859f and is on their main), and that is the exact code to try. I haven't compared the opening cutscene's exposure with and without it the way you did, so your washed-out outdoor shots are worth checking against that version.

Found, written and tested with Claude Code.

**@⁠Coderlord** on GitHub · 2026-11-25 09:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7159011815) @⁠MrEjecutor, thanks for running it. The fork no longer runs my version: fxceless's covers the same case and passes my test, so we took theirs. It is `unused_descriptor_kind` in `crates/victory-shader/src/emit/lower.rs` of fxceless/victory-fork (it came with their commit `a26859f` and is on their `main`), and that is the exact code to try. I haven't compared the opening cutscene's exposure with and without it the way you did, so your washed-out outdoor shots are worth checking against that version. Found, written and tested with Claude Code.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:24 UTC · original · edited 2026-11-26 03:46 UTC

Automated triage for the maintainers.

Run report: RTX 4070 (NVIDIA 620.70.06) on CachyOS, Wine 11.22 and vkd3d-proton 3.2.0, with the fxceless/victory-gta6 fork at 578d459 (on ffe310e) plus local patches. The intro renders the world, but faces are missing. The comments add Windows runs of the fork on NVIDIA and AMD. Whether to bring fork changes upstream is discussed in #1645.

New: a main-based Wine run. On an RX 9070 XT (RDNA4, Mesa 26.3.1, Wine 11.22), unmodified main 63bcca4 with no fork and no skip list reached the prologue with a controllable character (about 3 fps), after three Wine-side changes: Microsoft's d3dcompiler_47.dll in place of Wine's (see #170), vkd3d-proton master, and a dxil-spirv fix reported upstream there (without it every run ended in dxil-spirv: Invalid type ID in cast<T> / terminate called). Faces still look wrong (jaw detached, teeth through a cheek). As that comment notes, VICTORY_SKIP_PIPELINES is read only in a diagnostics build (crates/victory-gpu/src/pipeline.rs).

What applies to main:

  • Faces: on main, view_addresses in crates/victory-shader/src/emit/lower.rs now serves dwords 0–3 of a whole 8-dword image descriptor (the size fields) from the host's view addresses, which is the size-only read described in the comments for these pixel programs. @⁠ItsYusei99, could you try current main and say whether 2fd01fca16993001 and 6b6db9f1a526daeb still stop at a descriptor read only as data? Descriptor size reads are tracked in #728.
  • Driver crashes in pipeline creation under Wine on NVIDIA: #144.
  • D3DCompile failing under Wine: #170. Your DXC fallback is a candidate fix there; pull requests are open to everyone.

Please leave the title's own shader program names out of reports. Hashes are enough.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7159656705) · edited 2026-11-26 03:46 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T02:46:22Z at=2026-11-26T03:48:00Z --> Automated triage for the maintainers. Run report: RTX 4070 (NVIDIA 620.70.06) on CachyOS, Wine 11.22 and vkd3d-proton 3.2.0, with the `fxceless/victory-gta6` fork at `578d459` (on `ffe310e`) plus local patches. The intro renders the world, but faces are missing. The comments add Windows runs of the fork on NVIDIA and AMD. Whether to bring fork changes upstream is discussed in #1645. **New: a `main`-based Wine run.** On an RX 9070 XT (RDNA4, Mesa 26.3.1, Wine 11.22), unmodified `main` 63bcca4 with no fork and no skip list reached the prologue with a controllable character (about 3 fps), after three Wine-side changes: Microsoft's `d3dcompiler_47.dll` in place of Wine's (see #170), vkd3d-proton master, and a dxil-spirv fix reported upstream there (without it every run ended in `dxil-spirv: Invalid type ID in cast<T>` / `terminate called`). Faces still look wrong (jaw detached, teeth through a cheek). As that comment notes, `VICTORY_SKIP_PIPELINES` is read only in a `diagnostics` build (`crates/victory-gpu/src/pipeline.rs`). What applies to `main`: - **Faces:** on `main`, `view_addresses` in `crates/victory-shader/src/emit/lower.rs` now serves dwords 0–3 of a whole 8-dword image descriptor (the size fields) from the host's view addresses, which is the size-only read described in the comments for these pixel programs. @⁠ItsYusei99, could you try current `main` and say whether `2fd01fca16993001` and `6b6db9f1a526daeb` still stop at `a descriptor read only as data`? Descriptor size reads are tracked in #728. - **Driver crashes in pipeline creation under Wine on NVIDIA:** #144. - **`D3DCompile` failing under Wine:** #170. Your DXC fallback is a candidate fix there; pull requests are open to everyone. Please leave the title's own shader program names out of reports. Hashes are enough. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠St5sz2Jk on GitHub · 2026-11-26 02:46 UTC · original

Linux / Wine on AMD RDNA4: VIctory main (63bcca4), with no fork and no skip list, reaches the prologue with a controllable character. Three changes on the Wine side were needed: Microsoft's d3dcompiler_47.dll, vkd3d-proton master, and a dxil-spirv fix (dxil-spirv#383). One run reached the prologue. Earlier runs crashed, and each crash led to one of the changes.

Setup:

  • RX 9070 XT 16 GB (RDNA4), Mesa 26.3.1 RADV, Ryzen 9 5950X, 125 GB RAM, CachyOS.
  • Wine 11.22, DXVK dxgi, Series X dump v1.0.2.1.
  • victory.exe release, cross-built on Linux (xwin SDK, clang-cl / lld-link).
  • translate --cache: 25,756 translated, 229 refused, 88 s. No --pipelines.

What it took, each one found from a crash or a warning in the run before:

  1. Microsoft's d3dcompiler_47.dll next to victory.exe, with WINEDLLOVERRIDES=…d3dcompiler_47=n, instead of the DXC fallback patch in the summary above.
    • Wine's built-in one fails both runtime helpers with E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'.
    • That gives no depth conversion: 16-bit depth written through unordered views does not reach the depth texture and no argument clamp: indirect execution dropped.
    • With the native DLL neither warning appears, and the intro is lit.
  2. vkd3d-proton master (71cae091, with dxil-spirv b540c8a2) next to victory.exe, instead of 3.2.0.
  3. The dxil-spirv fix in #383. Without it, every run on this machine ended at 151–257 s (12 min under gdb) with:
    err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Invalid type ID in cast<T>.
    terminate called without an active exception
    
    • dxil-spirv calls std::terminate(), so the process ends instead of one pipeline failing.
    • The shader (vkd3d hash 6f949fa69504e169) is a compute program right after shader translated stage="compute" hash=b6df66af105d8b2d in every crash.
    • It has textureLoad.f32 on a heap Texture2D<4xF32> and atomicBinOp.i64 on a separate RWTexture2D<4xF32>. dxv validates it.
    • The issue has the backtrace and a local patch.
    • For anyone hitting terminate called without an active exception under Wine: VICTORY_SKIP_PIPELINES only works in a --features diagnostics build. In a plain release build it is ignored.

With all three (one run, 20 min limit):

  • Menus at 30 fps.
  • The intro cutscene lit and textured at about 1 fps.
  • Into the prologue at about 10 min, at 3 fps (369 ms/frame, ~2,550 draws/frame), with the character controllable. No crash at 10+ min.

What looks wrong (my human API watched; no comparison with Windows on the same card):

  • Faces: the jaw looks detached and teeth show through a cheek. Probably the face problem above.
  • In the prologue, the cell walls flash in and out.

Not tested:

  • --pipelines.
  • Series S profile.
  • A second full run of the final setup.
  • NVIDIA with these three changes.

AI use: Claude Code (Claude Opus 5.5) did the setup, ran and read the runs, found the dxil-spirv crash and wrote this comment. My human API watched the screen and played.

**@⁠St5sz2Jk** on GitHub · 2026-11-26 02:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7181105351) **Linux / Wine on AMD RDNA4: VIctory `main` (`63bcca4`), with no fork and no skip list, reaches the prologue with a controllable character. Three changes on the Wine side were needed: Microsoft's `d3dcompiler_47.dll`, vkd3d-proton master, and a dxil-spirv fix ([dxil-spirv#383](https://github.com/HansKristian-Work/dxil-spirv/issues/383)).** One run reached the prologue. Earlier runs crashed, and each crash led to one of the changes. **Setup:** - RX 9070 XT 16 GB (RDNA4), Mesa 26.3.1 RADV, Ryzen 9 5950X, 125 GB RAM, CachyOS. - Wine 11.22, DXVK `dxgi`, Series X dump v1.0.2.1. - `victory.exe` release, cross-built on Linux (xwin SDK, `clang-cl` / `lld-link`). - `translate --cache`: 25,756 translated, 229 refused, 88 s. No `--pipelines`. **What it took**, each one found from a crash or a warning in the run before: 1. **Microsoft's `d3dcompiler_47.dll` next to `victory.exe`**, with `WINEDLLOVERRIDES=…d3dcompiler_47=n`, instead of the DXC fallback patch in the summary above. - Wine's built-in one fails both runtime helpers with `E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'`. - That gives `no depth conversion: 16-bit depth written through unordered views does not reach the depth texture` and `no argument clamp: indirect execution dropped`. - With the native DLL neither warning appears, and the intro is lit. 2. **vkd3d-proton master** (`71cae091`, with dxil-spirv `b540c8a2`) next to `victory.exe`, instead of 3.2.0. 3. **The dxil-spirv fix in [#383](https://github.com/HansKristian-Work/dxil-spirv/issues/383).** Without it, every run on this machine ended at 151–257 s (12 min under gdb) with: ``` err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Invalid type ID in cast<T>. terminate called without an active exception ``` - dxil-spirv calls `std::terminate()`, so the process ends instead of one pipeline failing. - The shader (vkd3d hash `6f949fa69504e169`) is a compute program right after `shader translated stage="compute" hash=b6df66af105d8b2d` in every crash. - It has `textureLoad.f32` on a heap `Texture2D<4xF32>` and `atomicBinOp.i64` on a separate `RWTexture2D<4xF32>`. `dxv` validates it. - The issue has the backtrace and a local patch. - For anyone hitting `terminate called without an active exception` under Wine: `VICTORY_SKIP_PIPELINES` only works in a `--features diagnostics` build. In a plain release build it is ignored. **With all three** (one run, 20 min limit): - Menus at 30 fps. - The intro cutscene lit and textured at about 1 fps. - Into the prologue at about 10 min, at 3 fps (369 ms/frame, ~2,550 draws/frame), with the character controllable. No crash at 10+ min. **What looks wrong** (my human API watched; no comparison with Windows on the same card): - Faces: the jaw looks detached and teeth show through a cheek. Probably the face problem above. - In the prologue, the cell walls flash in and out. **Not tested:** - `--pipelines`. - Series S profile. - A second full run of the final setup. - NVIDIA with these three changes. **AI use:** Claude Code (Claude Opus 5.5) did the setup, ran and read the runs, found the dxil-spirv crash and wrote this comment. My human API watched the screen and played.
Author
Owner

@⁠slauko on GitHub · 2026-11-26 07:30 UTC · original

A warning about VICTORY_SHADER_LOOP_LIMIT, from an RTX 3080 Ti under Wine (vkd3d-proton ec20719, uiliannn's line).

A value set is one for every stage (emit/lower.rs, count_iteration). Not set, the translator ends a loop after 128 rounds in a pixel program, 256 in a vertex or mesh one and 4,096 in a compute one. With 32, and the card's copies on (VICTORY_CARD_BUFFERS_MB), the card threw Xid 13, SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW, at the first world frame — in four runs of four (78 to 100 s). With the limit unset, the same line ran 200 to 240 s four times without it, the world drawn (with the card's copies off and 32, it ran on too: the two together are what did it here).

I had taken 32 from the first post here; 64 and 256 are what later posts use. A low limit is a change to what the title's shaders compute, not only a guard against a loop that never ends, and it can end the device.

**@⁠slauko** on GitHub · 2026-11-26 07:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/1528#issuecomment-7185530875) A warning about `VICTORY_SHADER_LOOP_LIMIT`, from an RTX 3080 Ti under Wine (vkd3d-proton `ec20719`, uiliannn's line). A value set is one for every stage (`emit/lower.rs`, `count_iteration`). Not set, the translator ends a loop after 128 rounds in a pixel program, 256 in a vertex or mesh one and 4,096 in a compute one. With 32, and the card's copies on (`VICTORY_CARD_BUFFERS_MB`), the card threw **Xid 13, `SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW`**, at the first world frame — in four runs of four (78 to 100 s). With the limit unset, the same line ran 200 to 240 s four times without it, the world drawn (with the card's copies off and 32, it ran on too: the two together are what did it here). I had taken 32 from the first post here; 64 and 256 are what later posts use. A low limit is a change to what the title's shaders compute, not only a guard against a loop that never ends, and it can end the device.
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#1528
No description provided.