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
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1528
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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-gta6fork (578d459, on top offfe310e) 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
dxgicargo xwin, targetx86_64-pc-windows-msvc, built with--features diagnosticsVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsVICTORY_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
DXC fallback for every runtime
D3DCompilesite. On Wine,d3dcompiler_47fails some of the HLSL with E5005. This is the same failure as #909/#170, but it is not limited to the indirect clamp. The newcrates/victory-gpu/src/dxc.rsloadsdxcompiler.dllfromVICTORY_DXC, maps*_5_1to*_6_0and compiles with-O3. It is used when D3DCompile fails at five places:indirect.rs: the clamp inmake_forand the worker incompile_csinplace.rs: the shade passhost.rs:compile()and the card compare inmake_card_workStack size.
apps/victory/build.rspasses/STACK:16777216for msvc..stack_size(16 MiB).Without these, some translations overflow the default stack under Wine.
Pipeline worker count.
VICTORY_PIPELINE_WORKERSsets how many workers make pipelines.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/vkCreateComputePipelinesthrow 0xc0000005 inside the driver for specific shaders, every time. I found them offline with a loop:victory translate --pipelines --jobs 1in a throwaway prefix;VICTORY_SKIP_PIPELINES;So far (the loop is still running, and each run gets past about 13,100 pipelines):
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:
b22a16a178976e1b7f05ddab771799a9,a53a7977fe76226832ed072b9f84504802384a60fda6f2d0,2cc4c197ee29e291,369cbe906ea727645ad3a82b1c3cc63a(skipped, driver crash)15c34c906ac8b908,4273011b11446435(skipped, driver crash)2fd01fca16993001,6b6db9f1a526daebwith mesh4f23fd8d99482703GFX10 code at 0x51c4 / 0x49dc: a descriptor read only as data is not supported(emit/lower.rs, theErrafterview_address); first bound at frame 1281, when Lucia appearsThe 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.rsthis path still goes throughcommitted()/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.
@MichaelSmithAI on GitHub · 2026-11-24 18:54 UTC · original
We built the public fork at
578d459on 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.
@luisaugustz on GitHub · 2026-11-24 19:18 UTC · original
fxceless/victory-gta6renders the lit opening cutscene on AMD (RX 9070 XT), with three AMD-specific skipsThanks 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-gta6at578d459(the README's last clean commit), unmodified.VICTORY_SHADER_LOOP_LIMIT=256.What AMD needs (
VICTORY_SKIP_PIPELINES). Without these, the run dies:CS_RaytracingResolvevariants 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):eeed82b877b44b5f(CS_ComputeHitDetectionSkinnedResults): the known page fault (#981).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:
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.
@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. EnvVICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256, stockTdrDelay, noVICTORY_SKIP_PIPELINES.Result:
slow host submissionwarnings, longest frame 2.3 s.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.
@Ilokaxt on GitHub · 2026-11-24 20:13 UTC · original
RTX 3070 Ti Laptop (Windows, Ampere): the fork at
578d459renders 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 at578d459, 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.VICTORY_SKIP_PIPELINES=eeed82b877b44b5fsmh_draw_128:CS_VisHair(b6df66af105d8b2d, dispatch 1x1x1)b6df66af105d8b2d5bb23d336331db1d(dispatch 16x16x8; I could not name it)VICTORY_SHADER_LOOP_LIMIT=64InstanceCulling:CS_Prop_BatchNoCull(fdd56d97a806bcca, dispatch 105x1x1)VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024main-based tree managed 0.2–0.4 fps with about 2,200 draws.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:crates/victory-gpu/src/descriptor/host.rs(raw_window);crates/victory-shader/src/emit/lower.rs(theBatchCullMeshletscomments).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.
@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-gta6at1684989, unmodified,cargo build --release -p victory. EnvVICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=256, stockTdrDelay, noVICTORY_SKIP_PIPELINES. Separate cache and data folders; the shader cache was empty except for a 9-minute run on7b0f736just before.Result:
ffe310e(+ #578 and the #747 heap/wave64 stopgaps), the same machine stayed black at 1–2 fps.crashes.log. The run ended when I closed the window.8 GB VRAM: usage peaked at 7.15 of 8 GB (
nvidia-smi, every 5 s). The log printedtextures picked by index: the card has no room for more; they waitonce 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.)
@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 drawnSetup: 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: scriptedEnterpresses, then a person at the keyboard. Two runs: 600 s with an empty shader cache, then 900 s with it warm.What works here:
mainalone hangs in the world (#747).main+ #578 +MIN_DYNAMIC = 1 << 18+ #322 + #1492 on the same card, where the world stays black.What is wrong here (seen on screen, repeatable across scenes):
a black frame after a frame that was notwarnings in the warm run.From the log of the warm run, in case it helps with item 1:
a descriptor read only as data is not supported(2fd01fca16993001,6b6db9f1a526daeb,7d0f14ce44746d7e,c8df7216c69cecbd,e5b2121a02f4f741) and 1 withthe first half of an interpolation is not supported(38bf0814e721a1b3).The parameter is incorrect).deviceslot0x1c8): the title goes without those pipelines.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.
@cafeoh on GitHub · 2026-11-24 21:52 UTC · original
Turing + Windows 10: the fork at
90228a7renders 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:D3D12Core.dllnext to the exe.Tested:
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
+0x5149aeccomes later on the fork.AI-assisted (Claude Code); measured on our own machine, nothing from the game attached.
@MrEjecutor on GitHub · 2026-11-24 22:38 UTC · original
Same RTX 5060 Ti, the fork at
4e17478against7b0f736: bodies are drawn now; skin is not; black frames went from 9–15 to 335Same 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 of4e17478with a fresh cache for it, a person at the keyboard in the prologue.7b0f736(cold 600 s / warm 900 s)4e17478(900 s)a black frame after a frame that was notdeviceslot0x1c8pipeline creation calls not implementedThe 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
7b0f736had a longer pipeline queue (986) and only 9, so the cache does not explain it.What changed on screen (prison interior and corridors):
7b0f736the player's torso and legs were missing): an improvement.5ad3a82b1c3cc63atranslates and is bound in this run, so for this card it is not a translation failure of that program.7b0f736), and loose hair strands still show as long straight lines.The 2 pixel shaders that do not translate are
6b6db9f1a526daeb(one of the wetness shaders @hcristosm identified above) and7d0f14ce44746d7e, both witha descriptor read only as data is not supported.Not tested: the 4 commits between
7b0f736and4e17478separately, 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.
@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 atErr("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 fromGetDimensionson a 2D handle, which the function already builds for an image the program uses: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, thens_lshr_b32,s_lshl_b32ands_bfe_u32on dwords 1 to 3) translates; the same read from a range of 4-dword (buffer) descriptors stays refused. With the change,victory translate --validatepasses 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).
@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
310c6ebwithVICTORY_TEXTURE_GUARD=0andVICTORY_SHADER_LOOP_LIMIT=256, diag build. Your change rebuilt from the comment above: theimagecheck 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 --listover the title's files): no vertex or pixel program stops ata descriptor read only as dataany 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:
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:
VICTORY_TEXTURE_GUARD=0; one seated character's face is still a mottled pattern in both; the ceiling still shows the sky.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.
@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_kindincrates/victory-shader/src/emit/lower.rsof fxceless/victory-fork (it came with their commita26859fand is on theirmain), 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.
@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-gta6fork at578d459(onffe310e) 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), unmodifiedmain63bcca4with no fork and no skip list reached the prologue with a controllable character (about 3 fps), after three Wine-side changes: Microsoft'sd3dcompiler_47.dllin place of Wine's (see #170), vkd3d-proton master, and a dxil-spirv fix reported upstream there (without it every run ended indxil-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_PIPELINESis read only in adiagnosticsbuild (crates/victory-gpu/src/pipeline.rs).What applies to
main:main,view_addressesincrates/victory-shader/src/emit/lower.rsnow 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 currentmainand say whether2fd01fca16993001and6b6db9f1a526daebstill stop ata descriptor read only as data? Descriptor size reads are tracked in #728.D3DCompilefailing 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
@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'sd3dcompiler_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:
dxgi, Series X dump v1.0.2.1.victory.exerelease, 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:
d3dcompiler_47.dllnext tovictory.exe, withWINEDLLOVERRIDES=…d3dcompiler_47=n, instead of the DXC fallback patch in the summary above.E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'.no depth conversion: 16-bit depth written through unordered views does not reach the depth textureandno argument clamp: indirect execution dropped.71cae091, with dxil-spirvb540c8a2) next tovictory.exe, instead of 3.2.0.std::terminate(), so the process ends instead of one pipeline failing.6f949fa69504e169) is a compute program right aftershader translated stage="compute" hash=b6df66af105d8b2din every crash.textureLoad.f32on a heapTexture2D<4xF32>andatomicBinOp.i64on a separateRWTexture2D<4xF32>.dxvvalidates it.terminate called without an active exceptionunder Wine:VICTORY_SKIP_PIPELINESonly works in a--features diagnosticsbuild. In a plain release build it is ignored.With all three (one run, 20 min limit):
What looks wrong (my human API watched; no comparison with Windows on the same card):
Not tested:
--pipelines.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.
@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-protonec20719, 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.