Intel Arc B580: DXGI_ERROR_DEVICE_HUNG ~15–30 s into the world; DRED points at ExecuteIndirect (supersedes #969) #1079
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1079
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?
@jstrdev on GitHub · 2026-11-25 18:40 UTC · original
This supersedes #969. It keeps what I reported there and adds targeted tests run after DRED started working.
Setup
0b0074e, Series X profile, title 1.0.2.1diagbuild (cargo build --profile diag -p victory --features diagnostics), 1280x720Symptom
The title boots and reaches the prologue, then
DXGI_ERROR_DEVICE_HUNG(0x887A0006). The submitting thread waits about 5 s for the card before device removal. In the runs below it happens 14–30 s after the first mesh pipeline is bound, in every run (5 of 5).Earlier results (from #969)
VICTORY_MESH_TEST=skip: no hang, but most geometry is missing and it runs at 0.5–1.5 FPS.VICTORY_MESH_TEST=scissor: still hangs.VICTORY_RELAY=0,VICTORY_LATE_WAIT=0,VICTORY_INPLACE=0, library map/trim off, library lock on: still hangs. Note: in the code,LATE_WAITandINPLACEare already off by default, andVICTORY_WAVE_WIDE=0turns off the 32-lane widening, which is on by default, so that earlier test was not neutral.VICTORY_SKIP_PIPELINEShad no effect, but it only works indiagbuilds and that test was on release.VICTORY_LIBRARY_MAP=0avoids that and is kept on. The0x80070057/ D3D12 ID 971 lookups are ordinary library misses.New findings
>32 KiB mesh programs (#854).
victory translate --listwithVICTORY_HOST_MAX_WAVE=32 VICTORY_MESH_OUTPUT_STRICT=1finds 71 (ped, skin, spatter, decals and mirror transforms). In my hung runs none of the 71 was ever bound (checked against every "first bind" of a mesh shader, about 200 per run). They are not the cause of this hang. The four mesh hashes I suspected in #969 fit in 32 KiB.DRED. Breadcrumbs only map to the layer's lists without
VICTORY_D3D12_DEBUG. With the debug layer every node showsNone, presumably because the layer wraps the lists; that is why #969 had no usable breadcrumbs. Run withVICTORY_D3D12_DRED=1 VICTORY_RELAY=0:CopyBufferRegion) at 785/788, the 8-bytecard_budget_outcopy at the end of a list with indirect mesh draws. It is the same position in two runs.VICTORY_INDIRECT_CARD_BUDGET=0(that copy gone): op 5,ExecuteIndirect, kind 10 (meshab86c58dfc0172fa, pixeleca43156b8340a7e).VICTORY_SHADER_LOOP_LIMIT=1024: still hangs (23 s), now at op 5,ExecuteIndirect, kind 1 (indexed draw: vertex4e35b816f2f91d68, pixel659fe9cae59dbd88).The copies look like the first command after a barrier; the work that actually stalls is an indirect execution, mesh or not. That also fits skip vs. scissor: skip drops the indirect mesh executions entirely, while scissor still runs them.
Clamp notes.
indirect mesh dispatches: …is 0 / 0 in every report on the Arc, with the budget in card memory and in mapped memory, even once indirect mesh draws are in the frame. On an RTX 5090 (same counter) it reads 279 / 14–20k groups per frame.Clamp on the card. With a test-only local patch that lets the
indirect::tests::warp_*tests use the hardware adapter, all 7 pass on the B580, including the mesh window test (largest = 519). The clamp shader and the atomics on the mapped L0 heap behave correctly in isolation.Ruled out for this hang
VICTORY_RELAY=0hangs too);VICTORY_INDIRECT_CARD_BUDGET;Current guess (not verified)
The argument records the title writes on the GPU differ on Arc. That would explain the 0 / 0 notes for mesh, and possibly oversized draw records that the 2^27 per-list budget still admits, enough to exceed the TDR on this card. The 16-lane minimum (no translated mesh or pixel shader asks for a wave size) is an untested factor.
Not run yet
Lowering the clamp's
BUDGETfrom 2^27 to 2^24 in a local patch, to see whether the hang is too much admitted work.Related: #969 (superseded), #854, #950 (another B580, different symptom: stuck at System Init).
I can run builds or switches on the B580 if that helps; logs are available. AI-assisted (Claude); no game data.