What's needed right now to get the game further? #732
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#732
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?
@Dufftwt on GitHub · 2026-11-24 08:45 UTC · original
Where it stands (README, 23 Nov): the game boots, gets through the menus and loads into the world. In the world, most of the scene is dark, a frame takes 0.5–1.8 s, and real GPUs can hang.
New PRs are paused while the queue is reviewed (#712). That makes this a good time to agree on what actually blocks progress, so the next round of work goes there. In plain words:
A line or two each is plenty. If the maintainer already has a list, a pinned reply would help everyone aim at the same things.
@Conrage on GitHub · 2026-11-24 09:12 UTC · original · edited 2026-11-24 09:26 UTC
I would be happy to help with anything, let me know if and how i can contribute
Here are some issues and possible fixes:
1. Textures and buffers reached through
ResourceDescriptorHeap[]are never refreshed or transitionedOnly views in descriptor tables get their contents uploaded.
tables()filtersu.root == RootType::Table(crates/victory-gpu/src/draw.rs:649), and only those entries reachreadable()(draw.rs:1105).readable()is the only draw-time caller oftexture::uploadandshadow.refresh. Heap-indexed resources (RootType::ResourceHeap) never pass through it. The only other upload path is copies (list.rs:449,543).Effect: a bindless texture keeps its creation contents (black), and a bindless buffer keeps its first-use copy.
host.rs:149andshadow.rs:13-16acknowledge this.Fix idea: at submission, upload and transition the title-written resources that the bound heap's views name.
2.
DispatchMeshXwith indirect arguments is droppedcrates/victory-gpu/src/list.rs:1082-1086: ifindirect != 0, it warns once ("indirect mesh dispatches dropped") and returns.Fix idea: route it through
State::execute_indirectwith kindMESH(10), which already exists and handles mesh (draw.rs:983).3.
ExecuteIndirectruns only single-argument signatureslist.rs:1169matches([[kind, ..]], ..), which is a slice of exactly one argument. Signatures that also set root constants or views per record (draw-ID patterns) are counted and dropped. They log "indirect execution dropped (first time for this signature)".4. A texture that once received a host copy ignores later title writes
texture.rs:109-113: once a texture is inHOST_WRITTEN(set byCopyResource/CopyTextureRegion/resolve,list.rs:454,550,634),uploadalways returns early. The flag is cleared only when the resource is dropped (resource.rs:976). If the title later writes that texture's memory (for example by streaming), the host never sees it.5.
ID3D12Fence::SetEventOnCompletion(value, NULL)returnsE_NOTIMPLcrates/victory-gpu/src/fence.rs:90-95. D3D12 defines a NULL event as "block until reached". The comment's reason ("nothing can reach it while no GPU work runs") no longer holds, sincesignalruns from queues and the CPU (fence.rs:99,queue.rs:160).Fix idea: a
Condvarbesidewaiters, withsignalcallingnotify_all. This is small and unit-testable.@Conrage on GitHub · 2026-11-24 09:40 UTC · original
I went through the GPU side of the code against the README's current blockers (dark world, slow frames) and filed what I could confirm in the code. I can't run the game, so each issue gives the code path and says which effect is a guess.
Possibly behind the dark world:
Smaller ones, with patches inline since PRs are paused:
For question 3: anyone with the game could post the "indirect mesh dispatches dropped" and "indirect execution dropped" log lines from a world run on a diagnostics build. That would show how much #756 and #757 matter.
AI use: found and written with Claude from reading the code; not run on hardware.
@Wasler on GitHub · 2026-11-24 09:46 UTC · original
Here are diagnostics-build logs from a Windows 11 run (
--profile diag --features diagnostics,VICTORY_D3D12_WARP=1,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1) onMarvisak/VIctory(66252c0, based2a4bae/#728fixes), up to the crash right after initial settings:Progress & Shader Stats
frame=1194on the first run; 1-list submission on the second).841translated,71failed to translate (a descriptor neither loaded nor built,a structured buffer of unknown stride,a hardware SGPR input,image_gather4_l,barycentrics read directly,an LDS write of bytes or halves,a descriptor read only as data,a descriptor chosen by control flow).indirect execution dropped&indirect mesh(per #756 / #757)indirect mesh dispatches dropped: 0 occurrences before the crash.indirect execution dropped(5 signatures before the crash):stride=12 args=[[2, 13, 0, 0]] max=1stride=12 args=[[105, 0, 60000, 0]] max=1stride=12 args=[[10, 0, 489318063, 32764]]stride=20 args=[[1, 32764, 439707812, 32764]] max=1stride=16 args=[[0, 32764, 8, 0]] max=1D3D12 Debug Layer & DRED Crash (
WARP)severity=0):0.id=622,severity=1):Shader wants wave lane count of 32 / 64 but maximum wave lane count for device is 4(WARP cap, causing0x80070057on several compute PSOs).d3d10warp.dllhits repeatedfirst-chance exception 0xc0000005 (read 0x0)followed byDXGI_ERROR_DEVICE_REMOVED (0x887A0005).crashes.log): Fails on a1-list submission (list 0 of 1, of its 50) runningdispatch ... [compute 269b802f878c24e1]withUav s0+288: uav Noneandu4=0xa67100 [heap 340872: null]. (An earlier32-list crash ended aroundcompute 1d449fb6a212a044/compute 9381f54ec01b7adbalso withUav s1+16: uav None).@RID-Games on GitHub · 2026-11-24 09:55 UTC · original · edited 2026-11-24 10:21 UTC
Integration status of the community shader fixes (verified on Linux, rustc 1.100,
cargo test -p victory-shader):Stacked https://github.com/Hiiva/VIctory@hiiva/heap-uav-coherence (#724/#725,
[fa119dd](https://github.com/Hiiva/VIctory/commit/fa119dd)+[5c26db0](https://github.com/Hiiva/VIctory/commit/5c26db0), plus the one-line glc marking from #724) on top of[LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech/VIctory)'sintegrate/gta6-world-and-shader-fixes([60b7efb](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/60b7efb)). One conflict: the image atomic handle — the integration branch adds the 64-bit atomic feature bits, the heap-uav branch adds the glc resource flags; keep both. Resolved, the whole stack is 79 tests passing on Linux.One fix the integration branch needs:
sixty_four_bit_image_atomics_lower_and_validatecallsvalidator::Validator::loadunguarded, butvalidatoris#[cfg(windows)](emit/mod.rs:88), socargo test -p victory-shaderdoes not compile on Linux (E0433). Gate the call with#[cfg(windows)]asemit/mod.rs:471does — #752 shows people are running on Linux.Still missing for the world after this stack (from #748's translate stats): "a scalar memory read as data" (604 programs), "a descriptor read only as data" (388, partly addressed by the #736 fix), "a descriptor neither loaded nor built" (298), "a select on an untracked mask" (288).
AI-assisted.
@Dufftwt on GitHub · 2026-11-24 10:34 UTC · original
@Wasler thanks, that's exactly the kind of log that helps.
Your crash looks like #508. The dispatch that removes the device has UAV slots with no view behind them (
Uav s0+288: uav None,[heap 340872: null]). As #568 explains, such a slot currently holds a null Texture2D SRV descriptor. A shader that writes it as a UAV buffer then uses a descriptor of the wrong type, which is undefined: here WARP reads through a null pointer, and in #508 an RDNA3 GPU page-faults. #568 fills those slots with a null descriptor of the kind the shader expects, so the writes are simply dropped.Could you try once more with #568 on top of current
main? Your build is based ond2a4bae, and main has had 59 merges since. #568 merges into it cleanly.If you can, run it on your real GPU instead of WARP:
id=622warnings). The dispatches that use them are dropped, so a WARP run shows less than a GPU would.VICTORY_D3D12_DRED=1still set,crashes.lognames the dispatch if that happens.What would help most:
crashes.log.dropped …/frame without a host pipeline: …lines from the log, which a diagnostics build prints every 5 s. They give the reason behind each "indirect execution dropped" signature, such as a pipeline that wasn't made or a shader that didn't translate.@Wasler on GitHub · 2026-11-24 11:03 UTC · original
@Dufftwt Tested
test-568(origin/mainffe310e+ PR#568, commit22e6676) on the real GPU (NVIDIA GeForce RTX 5060 Ti, Windows 11,--profile diag --features diagnostics,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1):1. Did it get past the previous crash?
Yes. The old
#508/uav Nonecrash (compute 269b802f878c24e1/731a39171b568298) is gone. It ran for ~2m47s into world/scene loading (1539shaders translated,403failed to translate,4591draws atframe=1024).2. Where it stops now (DRED + D3D12 Debug Layer)
It then hit
DXGI_ERROR_DEVICE_HUNG (0x887A0006)after a submission of11lists, and the D3D12 Debug Layer caught a vertex ↔ UAV resource state conflict (matching#751):DRED tail (
list 10 of 11):list 10 of 11, of its 4:dispatch 10x6x64 [compute 9ef9a9d818b27236](withSrv s1+0placed0x12a7f880,Uav s1+8buffer(58411053312, 1024),Uav s1+16buffer(58668941312, 921600),Uav s1+2480x45 f42)3.
dropped ... without a host pipeline&indirect execution droppedLast 5-second stats before the hang:
(
indirect execution droppedsignatures:stride=12 args=[[2, 13, 0, 0]] max=1,stride=12 args=[[10, 0, ...]],stride=20 args=[[1, 32763, ...]],stride=12 args=[[105, 0, 60000, 0]] max=1,stride=16 args=[[0, 32763, 8, 0]] max=1).@Dufftwt on GitHub · 2026-11-24 11:20 UTC · original
@Wasler great news, thank you! Getting past that crash on your GPU is a good sign for #568 (your earlier crash was on WARP, so it's not a strict A/B).
The new stop is the one #334 fixes. A title buffer that a shader wrote is left in
UNORDERED_ACCESSand then used as a vertex buffer. Several testers on #334 report it takes exactly those debug-layer errors to 0, then hit a later hang. On some machines, that later hang is a page fault just past the end of a 4 MB host copy, which #493 fixes (one RX 9070 XT went from ~145 s to 195 s in the world with it).All three merge cleanly onto
ffe310e, and on GitHub's Windows runner the GPU and shader tests pass on that stack (victory-gpu54 passed,victory-shader122 passed).Same as before, what helps most:
How far it gets, and the last debug-layer errors plus the DRED tail if it stops.
The per-reason drop lines: in a diagnostics build, each 5-second totals line (
dropped 1423 without a host pipeline … and 1475 indirect) is followed by lines likedropped 12.3/frame without a host pipeline: indirect kind 2: prepare failed …. Those say why the draws drop.Which reasons make the 403 shaders fail to translate, counted. In PowerShell, with your log file:
That shows which missing piece of shader translation would bring back the most draws, and it's work people without the game can do.
@Wasler on GitHub · 2026-11-24 11:21 UTC · original
@Dufftwt Quick follow-up on
test-568(22e6676) on RTX 5060 Ti withVICTORY_GPU_TIMING=1(splitting each list into its ownExecuteCommandLists):IASetVertexBuffers(UNORDERED_ACCESS->VERTEX_AND_CONSTANT_BUFFER) state error disappeared completely (0D3D12 resource-state errors in the log), confirming it was a cross-listShadowbarrier issue between lists in the same submission (#751).frame=1510(1583shaders translated,397failed to translate) before hitting a single hung list (slow host list ms=8456 commands=230) ->DXGI_ERROR_DEVICE_HUNG (0x887A0006)on the same submission (list 10 of 11,compute 9ef9a9d818b27236).@Dufftwt on GitHub · 2026-11-24 11:26 UTC · original
@Wasler thanks, that fits. Lists of one submission share buffer states, so splitting them hides the error; #334 fixes it without the split (see my comment just above yours, which crossed with it).
The new stop is one compute dispatch,
9ef9a9d818b27236(10x6x64), that runs for 8.5 s. Two quick checks would tell us what kind of problem it is. Both work in a diagnostics build, one run each:VICTORY_SHADER_LOOP_LIMIT=1000: translated loops give up after 1,000 iterations instead of about a million. If the hang goes away, that shader is stuck in a loop on the PC. The likely case is a loop waiting for a value another workgroup writes, which is what #725 is about. (The limit is part of the translation, so every shader is translated again on that run.)VICTORY_SKIP_PIPELINES=9ef9a9d818b27236: skips that shader's dispatches, so we see what stops the run next.Please don't post the shader's code or disassembly: the asset policy rules out shader dumps. The result of the two runs is enough.
@Wasler on GitHub · 2026-11-24 11:49 UTC · original
@Dufftwt Ran both checks on
test-568(22e6676) on RTX 5060 Ti (withVICTORY_GPU_TIMING=1,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1):VICTORY_SHADER_LOOP_LIMIT=1000:9ef9a9d818b27236compiled and did not hang — the11-list submission passed!1575translated,369failed) before hitting a laterDXGI_ERROR_DEVICE_HUNG (0x887A0006)on a30-list submission (slow host list ms=2682 commands=78, DRED tail:list 26 of 30[mesh 4c5ab7a8ed26bb84],list 29 of 30[compute 12eae112b559091c],[compute a133bf0a24aff410],[compute 4c0ac499ad613809]).VICTORY_SKIP_PIPELINES=9ef9a9d818b27236(without loop limit):11-list submission still hung (slow host list ms=6807 commands=84,0x887A0006), withlist 10 of 11now ending in3dispatches ([compute da2fdff4709c3189],[compute ba4e20a2fd348338],[compute 4fcf26015f70eecf]) and earlier in-flight lists7/8([compute 5af5bbc0c3267799],[vertex 2634f1e308bc9ae1, pixel 3dc5a8831849e058],[vertex 4adcfeaa24ae6450, pixel 9ab96b7a002d6ac8],[vertex afad629131a4d329]).So
VICTORY_SHADER_LOOP_LIMIT=1000definitely breaks out of the loop hang in that11-list submission, and9ef9a9d818b27236isn't the only shader in that submission hitting the loop hang.@Dufftwt on GitHub · 2026-11-24 11:57 UTC · original
@Wasler that's a clear answer, thanks.
9ef9a9d818b27236is stuck in a loop on the PC. Skipping it only moves the hang to the next dispatches in the same list, which looks like they wait for what it produces.The question now is why the loop never ends here. My best guess is #725: the loop polls a value that other workgroups write, using
glcloads, which we translate as ordinary cached loads, so on the PC the new value may never be seen. dpalacios69 has a fix for that on a branch (see #725). It conflicts with #568 in one file, so I merged it for you with #568, #334 and #493 ontoffe310e(keeping both sides). On GitHub's Windows runner the GPU and shader tests pass on the result (victory-gpu54 passed,victory-shader127 passed, including the fix's five new tests). Nobody has run the fix in the game yet. It's all on one branch (e0c3385):Two runs, with the same settings as your last ones:
VICTORY_SHADER_LOOP_LIMIT. If9ef9a9d818b27236now finishes, the loop was waiting on a value it couldn't see, and the coherence fix is what it needed. If it still hangs, it's waiting for something else, and we look there next.VICTORY_SHADER_LOOP_LIMIT=1000, to see how far the whole stack gets.The branch is only for testing: none of it is merged upstream yet.
@nopsled0x on GitHub · 2026-11-24 11:58 UTC · original
@Wasler @Dufftwt a second data point on the same GPU, on Windows 10: it hangs here too. Counts only.
Windows 10 22H2 (19045), Ryzen 7 5700X3D, RTX 5060 Ti 16 GB, NVIDIA 610.88 (as in my #84 comment).
--profile diag --features diagnostics,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1,run --execute, each run stopped bytimeout.Measured:
mainffe310ewithout the Agility runtime: the title faults about 4 s in (0xc0000005, read at0x68, same offset in two runs). No GPU errors before it.mesh=true, 0 root-signature refusals, 0 unhandled exceptions, 3 runs.9ef9a9d818b27236appears in the hang report in 2 of those 3 runs (0x887A0006, 3 events each: #175 alone, andmain+ #175 + #568). The third run (#175 alone) did not hang in 170 s.host pipeline refused(0x80070057) and 2host GPU device removed.uav Noneentries in any run.Reported by me, not measured: in one run the screen went black while the audio kept playing; I didn't note when. After the first device removal the log shows no more frames, which fits.
Not established: whether #568 changes anything here (runs vary by themselves, 3 runs only), and whether the world renders (I read logs, not the screen). I have not run the two checks above: your
VICTORY_SHADER_LOOP_LIMITandVICTORY_SKIP_PIPELINESresults on the same card are already in this thread.The runs, log reading and this write-up were done with an AI assistant (Claude Code); the numbers are counted from the logs.
@Dufftwt on GitHub · 2026-11-24 12:00 UTC · original
@nopsled0x thanks, a second machine helps a lot. Two things in your numbers matter:
9ef9a9d818b27236is in the hang on your card too, so it isn't specific to Wasler's setup.So for
test/world-stack(my comment above yours, which crossed with it), the useful number is how many of 3 runs hang withoutVICTORY_SHADER_LOOP_LIMIT, from each of you. On Windows 10 that needs #175 on top, as in your runs. It conflicts inapps/victory/src/main.rs, as it does withmain.@Wasler on GitHub · 2026-11-24 12:04 UTC · original
@Dufftwt Tested
origin/main(ffe310e) + PR#568+ PR#334+ a local#725glc->IsGloballyCoherent(0x4000) patch oncrates/victory-shader/src/emit/lower.rs(image & buffer UAV handles), on RTX 5060 Ti withoutVICTORY_GPU_TIMINGand withoutVICTORY_SHADER_LOOP_LIMIT:#334eliminated theIASetVertexBuffers(UNORDERED_ACCESS->VERTEX_AND_CONSTANT_BUFFER) D3D12 error (0resource-state errors in the log at full speed).#725IsGloballyCoherent(0x4000) fix cleared the11-list loop hang (9ef9a9d818b27236/4fcf26015f70eecf) without any loop cap.1653shaders (418failed) and reached a later30-list submission before hittingDXGI_ERROR_DEVICE_HUNG (0x887A0006)onlist 23 of 30(indirect kind 10 ... [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd]and[mesh 0750cb2d975c7563, pixel 085d374c5a795549]).@AwkGrep256 on GitHub · 2026-11-24 12:05 UTC · original
If anyone needs results on AMD + Linux, I can test PRs on an RX 9070 XT (RDNA4) with Wine + vkd3d-proton 3.2. I also have an RDNA2 iGPU (gfx1036) for checking what instructions actually do on hardware.
Latest from my side is on #568: same long dispatch hang as on NVIDIA, gone with the loop limit, and then a separate GPUVM fault at
0x0that I also get without it. Linux setup notes are in #752.@MartinIndra02 on GitHub · 2026-11-24 12:08 UTC · original
In-title diagnostic run on Windows 11 / RTX 3080 (10 GB, driver
621.24, 32-32 wave lanes) withVICTORY_D3D12_DRED=1,VICTORY_GPU_TIMING=1,VICTORY_SHADER_LOOP_LIMIT=1000(diag build, retail 1.0.2.1):mainffe310e+#783(perf/gpu-copy-mapped-region-fallback) +#584(fix/shader-heap-bounds-clamp) +#757(feat/gpu-multi-arg-execute-indirect) +#776(schmiticle/gpu/write-watch-once-per-submission) +#724/#725(dpalacios69/fix/shader-glc-globally-coherent) +#431+#439.1.0 – 1.5 fps(683 – 1033 ms/frame).0host pipeline refused(#439eliminated all 32-lane refusals).0DRED page faults (#584dynamic heap guard +#431deferred texture free).no free dynamiconce on the 1M-capped NVIDIA view heap (consistent with#747).0x887A0006DEVICE_HUNG, 5-list submission):a list stopped at command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9](no page fault).No game data posted. AI-assisted; build and title run executed on my machine.
@Dufftwt on GitHub · 2026-11-24 12:15 UTC · original
@Wasler that's the result we were hoping for, thank you: the coherence fix (#725) ends the
9ef9a9d818b27236loop hang with no loop limit. nopsled0x's card hung in only 2 of 3 runs, so one or two more runs would make it airtight. Still, every run of yours without the fix hung, so it already looks solid. The fix exists in two versions, dpalacios69's (the one intest/world-stack) and Hiiva's. Whichever becomes the PR once PRs reopen now has your result on #725 behind it.The new stop, an indirect mesh draw (
kind 10) in list 23 of 30, looks like the NVIDIA mesh hang being worked out in #778. All of the game's mesh programs are written for 64-lane waves, and NVIDIA runs each one as two 32-lane halves. Two runs would show which part it is:test/world-stack) andVICTORY_SKIP_WAVE64=mesh. If the hang goes away, it's that family. The 3D view goes black, since mesh draws are skipped.VICTORY_SHADER_LOOP_LIMIT=1024. On an RTX 3070, KenzoPortela traced most world hangs at mesh draws to nested loops in pixel programs running far too long. With that limit (and two shaders skipped), their run lasted 20 min in the world, and the scene's geometry reached the render targets (#778).Posting the mesh and pixel hashes on #778 would help there too.
@MartinIndra02 thanks. Your stop is also a mesh draw on NVIDIA, with a loop limit already on, so it fits #778 as well. The same
VICTORY_SKIP_WAVE64=meshcheck (#579) would confirm it.@AwkGrep256 thanks, your AMD + Linux run shows the
9ef9a9d818b27236hang isn't NVIDIA-only. Wasler's result above shows the #725 fix ends it on NVIDIA without a loop limit. One run oftest/world-stack(or dpalacios69's branch) on your RX 9070 XT without the limit would show whether that holds on AMD too. For the0x0GPUVM fault: if your vkd3d-proton build supports it,VKD3D_CONFIG=breadcrumbsshould name the command that faulted.Your RDNA2 iGPU could also settle the open question in #720 (cube-map arrays), if you can run single instructions on it:
image_sampleon a cube array8 × layer + face?image_get_resinforeturn as a cube array's array size: cubes or faces?@AwkGrep256 on GitHub · 2026-11-24 12:18 UTC · original
Update from AMD/Linux (RX 9070 XT, Mesa 26.3.1, Wine 11.22, vkd3d-proton 3.2.0), main
ffe310e+ #190 #454 #493 #579 + #568, Series X,VICTORY_NO_WATCHDOG=1,VICTORY_SHADER_LOOP_LIMIT=1000:It now gets past the intro cutscene to the first control prompt ("Move around / Move the camera") at about 3 fps, still black apart from HUD and subtitles. That's further than I got before.
About 5 minutes into the world it hits a GPUVM fault at
0x0and the device is removed. The kernel log says the faulting client is SQC (data), not TCP like in #714, so it's a scalar read: constants or descriptors, not a texture fetch. I checked one candidate (a root CBV/SRV whose address has no host copy, which VIctory leaves unbound) by binding zeros there instead. That path never ran, so it's not that. A null descriptor table or heap pointer is my next guess.@Dufftwt on GitHub · 2026-11-24 12:23 UTC · original
@AwkGrep256 the first control prompt on AMD/Linux is real progress, thanks. Ruling out the root view without a host copy helps too.
One thing about the fault address: amdgpu reports GPUVM faults by page ("in page starting at address …"), so
0x0means anywhere in the first 4 KiB. That's a null base plus a small offset, not necessarily offset 0.On
main(ffe310e) I found three other ways a scalar read can end up there:State::bind(draw.rs), when a shader reads a root CBV/SRV slot whose title value isn't a view, the loopcontinues and leaves it unbound. That's a differentcontinuefrom the no-host-copy one you patched, and it's logged once:a shader reads a root view the title did not set. Worth grepping your log for. With #493 in your tree, root SRVs go through tables, so this would be a root CBV.bindpassesSetDescriptorHeapsonly the heaps whosehost()exists.Heap::host()(descriptor.rs) builds the host heap on first use, and ifHostHeap::newfails then, for example under memory pressure, it staysNonefor good, with nothing logged. Every later draw then reads descriptors from a heap that isn't bound. A one-linewarn!in thatNonecase would show it.root_viewreturnsNoneand the CBV stays unbound as well. Unlikely unless memory runs out.Since it takes ~5 minutes, 2 and 3 would fit something running out over time. Your earlier note puts the
0x0fault at ~14 min onmainwithout #568, and ~3.5 min with it, so the timing varies a lot.The other ask still stands: one run of the #725 fix (
test/world-stack, or dpalacios69's branch on top of your tree) withoutVICTORY_SHADER_LOOP_LIMIT, to see whether it ends the9ef9a9d818b27236hang on AMD too.@AwkGrep256 on GitHub · 2026-11-24 12:26 UTC · original
@Dufftwt ran
test/world-stack(e0c3385) on the RX 9070 XT without a loop limit. I added #454 forVICTORY_NO_WATCHDOG, otherwise the same.It still hangs on AMD. The world loads,
9ef9a9d818b27236gets created, and about 13 s later the ring times out and the device is removed, same as my run without #725. So on this card #725 doesn't end it, at least in this run. I can do a second run, or one withVICTORY_D3D12_DRED=1if that helps pin down the dispatch.On your three
0x0candidates:a shader reads a root view the title did not setdoesn't show up in any of my logs, so it's not that one.warn!whereHeap::host()staysNoneand run it again.scratch, inside theroot_view(...)Nonecase, and that line never fired. Soroot_viewnever returnedNone, which rules this one out too.For the breadcrumbs, I tried
VKD3D_CONFIG=breadcrumbsonce, but that run crashed in the process (signal 11) before the GPU fault, so no breadcrumbs yet.I can also look at the #720 cube-array questions on the RDNA2 iGPU. I have a raw dispatch setup there that already reads textures through hand-built T#s, so cube arrays should be doable.
@Dufftwt on GitHub · 2026-11-24 12:29 UTC · original
@AwkGrep256 thanks, a negative result on AMD is just as useful.
The fix does reach your driver. dxil-spirv (vkd3d-proton's shader translator) reads bit
0x4000(AnnotateGloballyCoherentMask) of everyannotateHandleand marks that UAVCoherent(opcodes_dxil_builtins.cpp,dxil_converter.cpp). So the coherence isn't lost on the way to Vulkan. On your card either a different dispatch hangs, or the loop waits for something coherence doesn't fix: for example data from an earlier dispatch that is still running, or waves that never get scheduled while others spin.Next step: find which dispatch hangs. "Created 13 s before the timeout" makes
9ef9a9d818b27236likely, but not certain.VICTORY_D3D12_DRED=1run is worth trying once, though I don't know how much of DRED vkd3d-proton fills in.RADV_DEBUG=hangmakes RADV write a hang report (under~/radv_dumps_*) with the shaders that were running when the GPU stopped. It waits after every command, so it's slow. Please keep that report local, since it contains shader code. Whether it's that one shader, and what its loop waits on (aglcload, an atomic, a value from an earlier dispatch), is all we need.On the
0x0fault: thanks for ruling out 1 and 3. I'm curious what thewarn!inHeap::host()shows.#720, yes please. What would settle it, with each texel holding
10 × layer + facein a cube array of 2 cubes:image_sample_lz … dim:CUBEwith s = t = 1.5:8 × layer + face(layer 1, +Y), and 14 if it's6 × layer + face(layer 1, +Z);8 × layer + faceand 12 under6 × layer + face.image_get_resinfo … dim:CUBEon the same view: does the array size come back as 2 (cubes), 12 (faces), or something else?@MartinIndra02 on GitHub · 2026-11-24 12:31 UTC · original
@Dufftwt Confirmed on the exact same tree +
#579withVICTORY_SKIP_WAVE64=mesh(Windows 11, RTX 3080621.24,VICTORY_D3D12_DRED=1,VICTORY_GPU_TIMING=1,VICTORY_SHADER_LOOP_LIMIT=1000):1.0 – 1.3 fps(750 – 966 ms/frame) (3D view black as expected with mesh skipped).0host pipeline refused,0slow host submission,0DRED page faults,0device removed.So the earlier
command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9]TDR is indeed in the#778NVIDIA 32-lane mesh-hang family. I'll add the hashes and this confirmation to#778as well.No game data posted. AI-assisted; build and title run executed on my machine.
@AwkGrep256 on GitHub · 2026-11-24 12:32 UTC · original
Follow-up on candidate 2: I added a
warn!whereHostHeap::newreturnsNoneinsideHeap::host()and ran it again (same stack, loop limit 1000). It never fired, so every shader-visible heap got its host heap. Nohost view heap cappedeither, since vkd3d-proton 3.2 enablesVK_EXT_descriptor_heaphere.The fault came about 4 min into the world again, SQC (data), but this time in the page at
0x20000instead of0x0. That fits your point about a null base plus an offset, just a bigger offset (128 KiB) this time.@Dufftwt on GitHub · 2026-11-24 12:33 UTC · original
@MartinIndra02 thanks, 10+ minutes with no device removal settles it: your stop is the #778 mesh family.
@AwkGrep256 thanks, so all three of my candidates are ruled out. The page moving from
0x0to0x20000says something too: the base is null, but the offset changes from run to run. That looks like an address computed in a shader (a null base plus an index or offset from data), not one fixed slot read every time.So the useful next thing is which shader faults. One run covers both problems:
RADV_DEBUG=hangwrites a dump under~/radv_dumps_*, and when the device is lost through a page fault it includes a "VM fault report" (failing page, status). It also shows the pipeline and waves that were active, so the same run with and without the loop limit gives you the hang and the fault. It's slow, since RADV waits after each submission. As before, please keep the shader code from those dumps local. Which VIctory shader hash it is, and whether the faulting read uses a descriptor or an address from constants, is what we need.@AwkGrep256 on GitHub · 2026-11-24 12:36 UTC · original
Thanks, that helps. I'll do a DRED run and a second plain run on
test/world-stack, and keep aRADV_DEBUG=hangreport local if DRED comes back empty.The
Heap::host()warn never fired, so that's ruled out too (my comment above).For #720 your setup is clear. I'll build the 2-cube array with
10 × layer + faceper texel, then post the sample results for face operands 10.0 and 8.0 and whatresinforeturns.@AwkGrep256 on GitHub · 2026-11-24 12:48 UTC · original
@Dufftwt two more runs of
test/world-stack(+ #454) on the RX 9070 XT without a loop limit: one withVICTORY_D3D12_DRED=1, one plain. Both hung like the first, so that's 3 of 3 on AMD, each 13–17 s after9ef9a9d818b27236was created.DRED doesn't help under Wine: vkd3d-proton stubs it (
d3d12_dred_settings_SetAutoBreadcrumbsEnablement ... stub!, same for page faults). VIctory's own device-removed message lists commands from lists 1, 3, 9, 11, 19 and 23 of the 25 in the failed submission, and9ef9a9d818b27236isn't among them. I'm not sure that list is complete, so it's a hint rather than proof that a different dispatch hangs here.Next I can try
RADV_DEBUG=hangto get the shaders that were actually running when it stopped (report stays local).@Dufftwt on GitHub · 2026-11-24 12:49 UTC · original
@AwkGrep256 thanks, 3 of 3 is clear: on AMD the #725 fix doesn't end it.
On your doubt about that list: it isn't complete. Without device-removed data, VIctory's message shows only the last six commands each list noted (
last_notes,host.rs). So9ef9a9d818b27236could sit earlier in any of those lists, and its absence doesn't point either way.A cheap way to narrow it down before the RADV run:
VICTORY_GPU_TIMING=1together withVICTORY_D3D12_DRED=1(the latter only to make VIctory note the commands, so it works under Wine too). Each list then goes to the GPU on its own, and the one that hangs shows up as aslow host list ms=… commands=…line just before the removal. That's how Wasler's 8.5 s list showed up (slow host list ms=8456 commands=230). After that,RADV_DEBUG=hangonly has to tell you which shader in that one list.@ChruutvoLuzi on GitHub · 2026-11-24 13:09 UTC · original
@Dufftwt for the NVIDIA mesh hang, one more thing worth adding to the runs above: #493. On an RTX 4090, plain
mainffe310e+ #493 withVICTORY_SHADER_LOOP_LIMIT=1024ran 19 minutes in the world with no device removal and the mesh draws kept (718 mesh pipelines, about 2,000 draws per frame, HUD prompt shown, final image black). Plainmainwith the same limit hangs after about 20 s at a mesh-only draw with no loops (4adfa13bea1c556a), which reads its vertex data through root parameter 3, the root SRV #493 bounds. The default limit still hangs at the pixel loop. Wasler's tree and the 3080 tree above don't list #493, so it may be worth a run before skipping all mesh draws. Details on #778.AI-assisted (Claude Code).
@Dufftwt on GitHub · 2026-11-24 13:10 UTC · original
@ChruutvoLuzi thanks, that's a strong lead: mesh draws kept, 19 minutes, and a concrete reason (root parameter 3 read past its host copy, which #493 bounds).
@Wasler
test/world-stack(e0c3385) already has #493, together with #568, #334 and the #725 coherence fix. Your last run was your own tree without #493. So one run oftest/world-stackwithVICTORY_SHADER_LOOP_LIMIT=1024, no mesh skip, would show whether your mesh hang is the one #493 fixes. If it still hangs, the DRED line for that list and the mesh hash are what #778 needs.@AwkGrep256 on GitHub · 2026-11-24 13:23 UTC · original
@Dufftwt I ran
d795bfa(world-stack plus #454) on the RX 9070 XT in Series X withVICTORY_GPU_TIMING=1andVICTORY_D3D12_DRED=1. The graphics ring reset after a list with 47 commands took 2,054 ms. Its per-command timings were all zero. The preceding lists did return timestamps, with mesh04b9be3756e8f41cand pixel1af4a50c7fb40c97taking up to 497 ms per dispatch. The 47-command list also had two dispatches with that pair in its last six notes.I repeated it with
RADV_DEBUG=hang. The same pair took 574 ms on a list before the reset, and RADV captured a mesh and pixel pipeline at the hang. The dump doesn’t give me the VIctory hashes, so I can’t confirm it was that exact pair. Neither run logged a VM page fault. The raw report is staying local. The mesh hash also showed up as slow on NVIDIA in #71.@HrHd on GitHub · 2026-11-24 13:24 UTC · original
Answering question 1 from measured runs rather than impression, because two of the three blockers are now pinned down and the third is the one nobody has named.
The blocker is compute dispatch. Not memory, not timing, not mesh. Every run that keeps compute dies the same way: a
[compute ...]pipeline is created, then a submission of 18 lists taking 275–290 ms, then the machine stops — and it stops hard, so nothing is written tocrashes.log,VICTORY_D3D12_DRED=1has no breadcrumb to leave, and the box needs a reset rather than the process dying.#578(refuse wave64 mesh/compute on 32-lane hosts) gets past world entry and buys 11–13 minutes instead of 25–95 s; it does not remove the compute wall, it defers it.Refuse compute by stage and the world runs. One line in
HostPipeline::new, gated on an env var, swapping #578's per-program refusal for a stage refusal:So compute is both the hang and the dominant per-frame cost: 708 ms of a 983 ms frame in the preparing phase on the runs that keep it, against ~55 ms with it refused. It is also exactly what the picture is missing — lighting, shadow masks and the ray-traced shadow checks live there — so this is a dial, not a fix: stability now, lighting back once dispatches return.
Hash-skipping does not work for this. I burned five runs on
VICTORY_SKIP_PIPELINESbefore realising the killer is a new compute hash minted by walking into an area (e6a32775a6bb91c8had never appeared in any earlier log of the same build). Any list is stale by the next boot. 814 hashes collected from all my runs still locked, because the next one was not in the list.The other thing nobody has named: nothing reaches the output target. On this card the prologue is drawn — car, street, flat and unlit — into the title's own targets while the 3840x2160 output stays at zero (#841 has the same from a 3090 at 2560x1440/3840x2160). Until that is fixed, "in the world and lit" still looks like a dark screen, which will make the compute work look like it is failing when it is not.
Order I would suggest: the output-target path first, because it is what makes every other result visible and judgeable; then compute dispatch survival (loop budget versus cross-lane/barrier use —
VICTORY_SHADER_LOOP_LIMITis the cheap discriminator and is running now); mesh and descriptor classes after.Per-build offsets and counts only, no assets, on 1.0.2.1 with the four fail-fast writes NOPed.
@Dufftwt on GitHub · 2026-11-24 13:24 UTC · original
@AwkGrep256 that pins it, thanks. Mesh
04b9be3756e8f41c+ pixel1af4a50c7fb40c97is the same draw that hangs on NVIDIA:So on your card, the hang that follows
9ef9a9d818b27236may not be that shader at all. It may be this draw, in the same part of the frame, which would explain why the #725 fix didn't change your result.One run would separate the two:
test/world-stackwithout a loop limit, plusVICTORY_SKIP_PIPELINES=04b9be3756e8f41c,1af4a50c7fb40c97. If it gets past the 13–17 s point, the #725 fix works on AMD too, and this pixel loop is the next wall on both vendors. Why its loops never end on the PC is then the question for #778.@Dufftwt on GitHub · 2026-11-24 13:25 UTC · original
@HrHd thanks, that's the clearest picture yet of what compute costs, and what refusing it buys. Two connections with other threads that may save you runs:
The output target. The scene is at 2560x1440 and the output at 3840x2160, so some pass scales the one into the other. In current engines that's usually a compute pass sampling the scene. With compute refused, nothing can write the output, so the black screen in those runs is expected. With compute allowed, MD5Visual's run in #841 had 6 compute pipelines refused with
E_OUTOFMEMORY. r4tedx traced that refusal to modules that fail DXIL validation because a computeimage_sampleis lowered to an implicit-derivativesample(#201). #180 is the open fix for that. If the pass writing the 3840x2160 target is one of the refused or untranslated compute programs, the black output and the compute work are the same problem. The writer logs mpDom and MichaelSmithAI mention on #841 should show which program writes it.The compute wall. Two compute and pixel loops are pinned down so far:
9ef9a9d818b27236: a compute loop waiting on other workgroups'glcloads. On Wasler's RTX 5060 Ti it ended with the #725 coherence fix, which is intest/world-stack(Dufftwt/VIctory).04b9be3756e8f41c+1af4a50c7fb40c97: a draw whose pixel program has nested loops. It hangs on both NVIDIA (#778, #815) and AMD (AwkGrep256 above).If your
VICTORY_SHADER_LOOP_LIMITrun gets past the lock, it's loops. Then a run oftest/world-stackwith compute allowed would show how much of your wall the coherence fix removes. Your hard lock with no TDR doesn't look like those cases, though, so if the limit doesn't help, that's worth its own issue.@HrHd on GitHub · 2026-11-24 14:22 UTC · original
Breadcrumb data for the hang, since "no breadcrumbs" kept hiding it. A
--features diagnosticsbuild withVICTORY_D3D12_DRED=1andVICTORY_GPU_TIMING=1names the stuck command instead of a batch:The pattern across six runs is identical and reproducible: a submission that grows to 28 lists, one of them (always 27th, always ~376 commands) carrying compute dispatches, the whole submission taking 29–33 s, then
0x887A0004. WithTdrDelay=30the machine survives and the process dies cleanly instead of the box needing a reset, so this is now cheap to reproduce — 6–8 minutes in, every time.What made it narrow-able: the stuck dispatch is
93x1x1on a compute program whoseu4is a placed heap resource with a title address, i.e. a big dispatch over a wrapped/aliased resource.FlushGpuCachesXis the console's "make writes visible" call and this title uses it instead of explicit barriers; VIctory's list-level state tracking already covers texture transitions, so the remaining suspect is UAV ordering between dispatches inside one list rather than the RT→SRV case.Also worth stating for anyone bisecting: skipping compute by shader hash cannot work. The title mints a new hash per area, so the killer is always the one hash not in the list (814 collected hashes still hung). A stage switch — one line at
HostPipeline::new— is what gives a stable 8–10 fps world at 500+ draws, at the cost of the lighting passes.Happy to run any candidate patch on this box; the reproduction is 6–8 minutes and no longer costs a reset.
@Dufftwt on GitHub · 2026-11-24 14:29 UTC · original
@HrHd that breadcrumb is what was missing, thanks. And your sync point checks out in the code. The console's pipeline syncs (list slots 129 and 130,
syncincrates/victory-gpu/src/list.rs) do nothing on the host. The comment there reasons that "host lists order their own work". But D3D12 lets draws and dispatches in one list overlap unless a barrier separates them. So if the title orders a pass with a sync rather than a barrier, the next dispatch can read what the previous one hasn't written yet. A loop bound or counter read too early would make a 30 s dispatch.Candidate patch, since you offered:
test/world-stack-synconDufftwt/VIctory(b446491). It'stest/world-stackplus one commit: each sync records a UAV barrier on every resource, the barrier the enhanced barriers already record.victory-gpuandvictory-shadertests pass on Windows CI. It isn't tested in-game.To tell the causes apart, two runs, compute allowed and your diagnostics settings:
test/world-stack(e0c3385) as is. It already has the #725 coherence fix, which ended a compute hang (9ef9a9d818b27236) on Wasler's RTX 5060 Ti. If your tree didn't have it, that alone may change things.test/world-stack-sync. If 1 hangs at36e010b53acffd77and 2 doesn't, the missing ordering is it.If both still hang,
VICTORY_SHADER_LOOP_LIMIT=1024would show whether it's a loop. Which GPU and tree are your six runs on?@Dufftwt on GitHub · 2026-11-24 14:33 UTC · original
@rhuantac thanks, a careful table, and a useful negative: a 3060 Ti that doesn't hang on either tree.
Your refused compute pipelines very likely are the wave64 ones, as you guessed. The translator declares a 64-lane wave size (DXIL
WaveSize(64)) on a console wave64 compute program that relies on console lanes, or that is one wave with LDS (crates/victory-shader/src/emit/lower.rs, wheres.wave_sizeis set). NVIDIA runs only 32-lane waves, and D3D12 refuses such a pipeline withE_INVALIDARG. AMD cards run 64-lane waves, so they shouldn't see these refusals. #439 (r4tedx) runs the one-wave LDS case on 32-lane hosts.That ties into your output-target finding. If the pass that scales the 2560x1440 scene into the 3840x2160 frame is one of these wave64 compute programs, NVIDIA cards get exactly what you saw: credits and subtitles over an empty frame. Two cheap checks:
VICTORY_D3D12_DEBUG=1logs the debug layer's reason right after eachhost pipeline refusedline. A tally of those reasons, text only, would confirm the wave-size cause.@rhuantac on GitHub · 2026-11-24 14:32 UTC · original · edited 2026-11-24 14:33 UTC
NVIDIA data point for the
test/world-stackask: RTX 3060 Ti (8 GB, Ampere), driver 610.88, Windows 11, 32 GB RAM, retail 1.0.2.1, Series X mode, real GPU (no WARP). Counts only, no game data.mainffe310etest/world-stacke0c3385diagdiagVICTORY_D3D12_DRED=1VICTORY_D3D12_DRED=1,VICTORY_SHADER_LOOP_LIMIT=1024, no skipscrashes.logcrashes.loghost pipeline refused(0x80070057), all computeindirect mesh dispatches droppedmainwith the default loop limit, unlike the 5060 Ti / 3070 / 3080 / 4090 reports. One run each, so this says little about how often it would hang.main) and ~6 min (world-stack) in the world, so before or at the start of the 6–8 min window where HrHd's hang appears. They don't rule that hang out. Longer runs oftest/world-stackandtest/world-stack-syncto follow.maindiag run was still building pipelines while in the world, and world-stack ran with the loop limit, so the frame rate and drop columns are not an A/B of the four fixes.indirect execution droppedsignatures as Wasler's (stride=12 [[2…,[[10…,[[105…,stride=16 [[0…,stride=20 [[1…).VICTORY_DUMP_TARGETS=1during the intro cutscene, the 2560x1440 targets hold the scene's geometry (characters, props, street, clearly recognisable in an R8_UINT target and the depth target), while the presented 3840x2160 frame shows only the credits and subtitles over a flat dark background.Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
@HrHd on GitHub · 2026-11-24 14:48 UTC · original
Two results that narrow the compute hang, both reproducible today.
1. The compute shaders are all valid DXIL.
victory translate --validateover the whole retail pack:So invalid DXIL is not why a compute dispatch hangs. Every compute program that emits also validates.
2. The hang behaves like a spin, not like bad codegen. With
VICTORY_SHADER_LOOP_LIMIT=64and compute on, a run has now gone 9.7 min and still climbing, zero device removals, where nine consecutive uncapped runs died at 6–8 min. Frames are 3 s and 2 draws — it limps — but it survives. Capping iterations only changes loop trip counts, so a loop that never terminates (or never satisfies a barrier) is what the uncapped runs stall on.That puts the suspect on barrier placement rather than translation correctness:
s_barrieris emitted for compute, and is deliberately left out for mesh blocks (no_barrier) and single-lane console-flow regions. If a wave64 barrier sits under divergence while the lanes are actually separate 32-lane halves, it can never be satisfied. Worth trying on any box:VICTORY_SKIP_COMPUTE=1(stable, 8–10 fps, no lighting) versusVICTORY_SHADER_LOOP_LIMIT=64(all stages, survives, crawls).Unrelated defects the validator named, all real and all cheaper than the hang: 53 × "vertex plus primitive output size" (mesh), 32 × Program Output Signature mismatch, 19 × Input Signature mismatch, 21 × TEXCOORD interpolation-mode mismatches.
@Dufftwt on GitHub · 2026-11-24 14:50 UTC · original
@HrHd the loop cap result settles a lot, thanks. One caveat on the barrier reading: a barrier that can never be satisfied doesn't end because loops are capped, unless it sits inside a capped loop. The simpler reading is a loop whose exit depends on memory that another workgroup or an earlier dispatch writes, and the loop never sees the write. Two known gaps produce exactly that:
glcloads. A loop polls a value throughglcloads that the host doesn't make coherent, so it never sees the change. That was the9ef9a9d818b27236hang, and the #725 fix ended it on an RTX 5060 Ti. The fix is intest/world-stack.test/world-stack-syncadds.So the two uncapped runs from my last comment are the direct test:
test/world-stackfirst, thentest/world-stack-sync. With your 6–8 minute reproduction, each run answers within ten minutes.The validator counts are worth keeping: #201 is the census of modules that fail validation, and it would take your 84 + 69 with their reasons.
@rhuantac on GitHub · 2026-11-24 14:54 UTC · original
@Dufftwt the debug-layer tally you asked for, same RTX 3060 Ti (driver 610.88, Windows 11). The tree is
test/world-stacke0c3385, adiagbuild withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1, about 2 minutes into the intro cutscene.Refusals: all wave size. 131
host pipeline refused(0x80070057), all compute, 131 distinct hashes. Each one comes with:That message appears 133 times. No other create error explains a refusal. 122 refusals are followed directly by their id=622. In the other 9, pipeline-making threads interleave and the id=622 lines land just before the refusal. So on this card, every refused pipeline is a
WaveSize(64)one.Other debug-layer output in the same run, in case it's useful:
no host texturewarnings are format support: a 2560x1440B5G5R5A1_UNORMcreated withALLOW_UNORDERED_ACCESSand a 2560x1440B4G4R4A4_UNORMwithALLOW_RENDER_TARGET, both id=599 (format can't be used that way at FL 12_2).StorePipeline: A pipeline with name … already exists(id=970) and 554 ×Load*Pipeline: The pipeline state desc provided does not match the one used to create the PSO stored with name …(id=972), plus 159 × "not stored" (id=971, expected on a first run of this tree). The 970/972 pairs look like two different pipeline descs sharing one library name, so they miss the cache and are rebuilt. I haven't looked at how the name is derived.The longer run I mentioned in the edit:
test/world-stackwithVICTORY_D3D12_DRED=1andVICTORY_GPU_TIMING=1, no loop limit. There was still no GPU hang. About 6.9 min into the world the title stopped itself with0x80000003at+0x5149aec, and that is #698 exactly: the same 8-frame stack,INSTANCE_LIST45000/45000,Paused: Yes, SRL inPrestream, at 0.5–0.9 fps.On this tree, HrHd's hang shader
36e010b53acffd77doesn't translate (a scalar memory read as data is not supported), so its dispatches are dropped here. That likely explains why this card doesn't hit that hang. It also means atest/world-stack-syncrun on this card couldn't tell the two causes apart, so I've skipped it for now.Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
@Dufftwt on GitHub · 2026-11-24 14:56 UTC · original
@rhuantac that settles the refusals: 131 of 131 are
WaveSize(64)on a 32-lane card, so #439 and #192 are what would bring those compute passes back on NVIDIA.Your last paragraph may matter most for the hang. On
test/world-stack,36e010b53acffd77fails witha scalar memory read as data, so its dispatches are dropped, and your 6.9 minutes in the world had no hang. HrHd's tree does translate it, and there the dispatch runs 30 s until a loop cap rescues it. That refusal comes fromdescriptor_data(crates/victory-shader/src/emit/lower.rs): the program reads a descriptor's words as data. Translating it means rebuilding those words, such as a buffer's record count, from the host view. #953 (opened today) does that fors_buffer_loaduses. If the program's loop is bounded by such a field and the rebuilt value is wrong, the loop runs practically forever. The loop cap would cut exactly that.@HrHd which change in your tree makes
36e010b53acffd77translate? If it's #953 or similar, a run without it, with the dispatch dropped like on rhuantac's card, would show whether the hang goes with it.On the pipeline library: the name hashes the host root signature blob, the DXIL and the full state text (
library::name,pipeline/host.rs). So within one tree, two different descriptions sharing a name means some part of the description isn't in the name. Does a second run of the same tree still log the 970/972 pairs? If it doesn't, the library file was written by your earliermainruns, and it's only a cross-tree cache miss. If it does, there's a real collision, and I'll track it down.@rhuantac on GitHub · 2026-11-24 15:21 UTC · original
@Dufftwt on the pipeline library: there is a real 970/972 pair within one tree, and it's the mesh-pipeline topology bug that #352 fixes. It isn't a cross-tree leftover.
Same RTX 3060 Ti (driver 610.88).
diagwithVICTORY_D3D12_DEBUG=1, each pair of runs on a new emptyVICTORY_CACHE_DIR, about 2 min of intro cutscene per run.test/world-stacke0c3385e0c3385+ #352 (f77bd28, merges cleanly)So no extra collision beyond #352 on this card. Not measured: what this does to loading time.
Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
@alexdeliu on GitHub · 2026-11-24 17:20 UTC · original
I built and tested every open PR that merges cleanly (346), each merged onto
main@ffe310eb. The steps are CI's: clippy ×2 with-D warnings, thencargo test --workspace. The host has an AMD RX 9070 (RDNA4, native wave64), so the hardware-only shader tests ran too. CI on WARP skips them.Report and per-PR table, with the head SHA each PR was tested at: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87
Totals:
main.Easy rebases. 15 shader PRs fail only because two test helpers in
emit/lower.rschanged signature onmain:resource::track(.., Some(&st))(6638098c).lowers(words, 0)(25b0f888).The affected PRs are #101 #120 #142 #148 #165 #166 #171 #200 #308 #391 #420 #457 #608 #694 #705.
Merge picks per blocker (reasons in the gist):
Branches you can pull:
stack-ffe310e=main+ #632 + #539 + #334 + #453 + #413 rebased. Clippy ×2 clean, 366 tests pass on RDNA4.bindless-on-main= #413 through6a0c5e9onffe310eb, conflicts resolved, 351 tests pass, the bindless GPU tests among them. #185 now merges cleanly too and passes.Hardware-only failure: #169's
tbuffer_d16_loads_pack_two_channels_per_dwordfails on RDNA4.16_16_UNORM0xFFFFloads as0x3BFF, not0x3C00.@alexdeliu on GitHub · 2026-11-24 18:45 UTC · original
Merge train:
alexdeliu/VIctory:train-ffe310e. It takesmain@ffe310eband merges 149 open PRs, each of which passes alone. They went in priority order, world blockers first: #413 rebased, #632, #539, #334, #169, #171, and others. A PR that conflicted with one already merged was skipped. On the RX 9070, both CI clippy runs are clean andcargo test --workspacepasses 710 tests (main: 342), the same in two runs.The PRs fit together except in four places. The last commit (
e3f72c57) fixes them:frame.rs): #174 takes the tick insidenext_tick, and #319's new early return for a late flip skips that. With both,waits_end_on_ticks_and_count_framesfails (10, want 11).texture.rs, diagnostics): #602 reads the per-texturereadbuffer that #472 replaces withSCRATCH.HostHeap::new(.., 0)in other PRs' tests after #413, and two duplicatemod testsinpipeline/host.rs.fftthat #172 removes.Alloca.Not in the train, because they conflict with it: #453 (interpolation code that another merged PR rewrote), #568, #439, #346 and #185. The list of merged and skipped PRs is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-3-merge-train-md
@alexdeliu on GitHub · 2026-11-24 19:55 UTC · original
AMD-specific shader bugs, found by comparing GPUs. I ran every lowered VALU opcode on an RX 9070, a gfx1036 iGPU (RDNA2, like the console) and WARP, on the same edge-case inputs. The fuzzer is #1614. Three findings change results in-game on AMD cards:
legacyF32ToF16rounds toward zero on AMD's driver, so every f16 result the translation computes in f32 is biased low there. Example:v_add_f16(0xf8b6, 0x0001)gives0xf8b5on AMD, where0xf8b6is correct. With #422 the three devices agree bit for bit.fcmp false/fcmp truefrom removing the WARP device. That is the device CI runs on, and every GPU test after such a shader fails with it.The full report is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-4-valu-fuzz-md
@Marvisak on GitHub · 2026-11-25 01:48 UTC · original · edited 2026-11-25 01:53 UTC
Automated triage for the maintainers.
This is a coordination thread, so it stays open as the place to discuss priorities. The maintainers can decide whether to pin an answer. Pull requests are open to everyone again, so the fixes named here can go in as PRs.
What the thread has pinned down so far, checked against current
mainwhere it names code:9ef9a9d818b27236waits onglcloads, and the #725 coherence fix ended that hang on an RTX 5060 Ti but not on an RX 9070 XT.maindoes not mark UAVs globally coherent yet; open PR #1271 does. The draw with mesh04b9be3756e8f41cand pixel1af4a50c7fb40c97hangs on both vendors; see #778.syncincrates/victory-gpu/src/list.rshas no body. Open PR #1228 adds the barrier.WaveSize(64). Open PRs include #439, #189, #192 and #1929.main.Hardware results keep coming in here. Findings that need their own fix are better filed as separate issues, as several people already did (#754 to #761 and #798).
Generated by Claude Code