NVIDIA RTX 3060: world has no image; 135 compute shaders need wave64, 112 pipelines refused, resource-state mismatches in D3D12 debug layer #1001
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#1001
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?
@MIZZTW on GitHub · 2026-11-24 14:49 UTC · original
Environment
d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989(2026-11-24), built with Rust 1.98.1 (pinned toolchain)cache_dir,data_dirinvictory.toml)--releaseand--profile diag --features diagnosticsd3d12SDKLayers.dllpresent),VICTORY_D3D12_DEBUG=1What happens
device removed ... (0x887A0006), plus0x887A0004as the reason,no breadcrumbs. Exit code 5.crashes.logcontains the same line. Reproduced 3 times, all in the same place.diagbuild with the D3D12 debug layer on: no device removal this time, but the world has no image. Dialogue audio plays. Run reached frame 13029. A warning reportedblack_frames=5.Findings from the diagnostics run
1. Wave64 compute shaders on a 32-lane GPU (NVIDIA-specific)
135 warnings of the form:
112 distinct compute pipelines were then refused:
This matches the README note that some compute programs need 64-lane waves. On NVIDIA (32 lanes) those pipelines are never created, so anything depending on them is dropped.
2. Shaders that do not translate
331 distinct shaders log
shader does not translate; its pipelines' draws are dropped. The most frequent reasons in this run (first 60 chars of the message, counts include repeats):These are probably the known "untranslated shaders" gaps from the README, but I'm listing them in case the counts on a different GPU/driver help. Counts differ slightly between runs because the loaded shader set differs.
3. Resource-state mismatches reported by the debug layer
224 warnings from
ExecuteCommandListsand 18 fromDrawIndexedInstanced, e.g.:My guess (not verified): a buffer written by compute and then used as vertex/constant data does not get the right transition. That could plausibly be related to the device-removed in the release build, but I have no evidence beyond the timing. Happy to test patches.
4. Other warnings (counts only)
ID3D12PipelineLibrary::Load*Pipelinewarnings (library does not match / state differs) and 312StorePipelinename collisions.slow host submissionwarnings (lists=11 and lists=32, several seconds each).Questions
WaveSize/emulated lane masks)? XCL's README mentions a slower workaround for NVIDIA.VICTORY_D3D12_DEBUG=1log of the barrier warnings be useful in a specific format?Notes
github-bot referenced this issue2026-11-26 04:38:56 +00:00
@DrDarkDK on GitHub · 2026-11-24 14:54 UTC · original
The two resource-state warnings match the ones PR #334 targets. In the RTX 3070 A/B below, #334 cleared both warning types, and the device hang still occurred later in the run.
#334
Since the debug layer works on your RTX 3060, a useful comparison would be
ffe310eversus #334 atc99e429, withVICTORY_D3D12_DEBUG=1on both. Counts for the barrier before-state mismatch and the vertex buffer inUNORDERED_ACCESSover the same part of world entry would answer whether #334 clears the warnings on your setup. Whether the image appears or the device hangs is worth recording separately.AI-assisted with Codex.
@JuniorBoschet on GitHub · 2026-11-24 15:12 UTC · original
Another RTX 3060 data point, with a longer TDR and a #189-based tree.
Setup: Windows 11, RTX 3060 12 GB, driver 621.24 (32..32 lanes), retail 1.0.2.1, Series X, release build with
--features diagnostics. Game files on NVMe.Tree:
mainffe310e+ #189 + alfycsfeat/wave64-mesh-emulation(b3671c8, from #778) + #705 + #694 + #704 + #452 + gangg111gpu-189a3a8fe7and94908df(root SRV reach, from #951). No #578, so wave64 mesh programs run (emulated).Result: menus, intro, story load and the opening cutscene (subtitles, audio) work. Entering the world, 1,200 to 3,200 draws/frame run, then the device is removed (
0x887A0006). No refused pipelines; about 470 compute programs still do not translate (lane masks, mostly).The removal is not a timeout here. With
TdrDelay=60andTdrDdiDelay=60(after a reboot), the device is removed 3 s and 10 s after the last 5 s stats line, far below 60 s. So on this card it looks like a fault, not a slow list. DRED reports no page fault, though.VICTORY_ROOT_REACH_MB=128(with the #951 commits) did not change it.VICTORY_SHADER_LOOP_LIMIT=256did not either.DRED's stopping command, one run each:
bb8e58b3ddd93bfd, pixel0f4693d56bb63abcd0503aa87911743e, pixel5a0b31c2cd7fb82eaf6d42b80481c3a5, pixel2567ef6bc3625832f0c7efd2aceb2aaa, pixel7d85c9cab3c8072102a1fac69125ab5e, pixele81f634f4832432cf0c7efd2aceb2aaais one of the seven in #951's Aftermath dumps.I disassembled the DXIL of run 3's pair (
af6d42b80481c3a5and2567ef6bc3625832, captured with an in-game dump by hash). Neither has a loop. The mesh shader has 13 barriers in 8 blocks; every path from the entry reaches them, none is inside a loop, andSetMeshOutputCounts(128, 128)is in the entry block. So that draw cannot hang on its own logic, which fits a fault (or another command in the same barrier window: DRED printed one command per window here).Side effect of the #951 commits on this tree: copies per frame rose from about 300 MB to 1.5 to 3.4 GB (wide windows copied again each frame).
Not tried: Aftermath, #568, the console flow (#233/#439) for mesh.
@Marvisak on GitHub · 2026-11-25 06:51 UTC · original
Automated triage for the maintainers.
Thanks for the complete report (RTX 3060, driver 32.0.16.2124, Windows 11 26100,
d2a4bae). The pieces are tracked in these places:main:Lower::newincrates/victory-shader/src/emit/lower.rsdeclares the console wave size, and a 32-lane host refuses it. Open PRs for this are listed on #71, for example #189 and #1922.UNORDERED_ACCESSused as a vertex buffer, is tracked in #199 (open PR #334).The
ffe310evs #334 comparison suggested above would be a useful data point for #199.Generated by Claude Code