Intel Arc B580: DXGI_ERROR_DEVICE_HUNG ~15–30 s into the world; DRED points at ExecuteIndirect (supersedes #969) #1079

Open
opened 2026-11-26 03:57:08 +00:00 by github-bot · 0 comments
Owner

@⁠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

  • Intel Arc B580 12 GB (Xe2 Battlemage), ReBAR on, driver 32.0.101.9175
  • Ryzen 5 7600X, Windows
  • Commit 0b0074e, Series X profile, title 1.0.2.1
  • diag build (cargo build --profile diag -p victory --features diagnostics), 1280x720
  • VIctory reports waves of 16–32 lanes

Symptom

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_WAIT and INPLACE are already off by default, and VICTORY_WAVE_WIDE=0 turns off the 32-lane widening, which is on by default, so that earlier test was not neutral.
  • VICTORY_SKIP_PIPELINES had no effect, but it only works in diag builds and that test was on release.
  • Pipeline library: one run with a mapped library read 14 of 20037 pages as zeros; VICTORY_LIBRARY_MAP=0 avoids that and is kept on. The 0x80070057 / D3D12 ID 971 lookups are ordinary library misses.
  • Heavy texture queue with mesh skip (~25k pending slots). VRAM at the world start: about 8.4 of 10.7 GB in use on the card, plus about 4.5 GB in shared system memory.

New findings

  1. >32 KiB mesh programs (#854). victory translate --list with VICTORY_HOST_MAX_WAVE=32 VICTORY_MESH_OUTPUT_STRICT=1 finds 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.

  2. DRED. Breadcrumbs only map to the layer's lists without VICTORY_D3D12_DEBUG. With the debug layer every node shows None, presumably because the layer wraps the lists; that is why #969 had no usable breadcrumbs. Run with VICTORY_D3D12_DRED=1 VICTORY_RELAY=0:

    • Defaults: the stalled command is op 7 (CopyBufferRegion) at 785/788, the 8-byte card_budget_out copy 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 (mesh ab86c58dfc0172fa, pixel eca43156b8340a7e).
    • VICTORY_SHADER_LOOP_LIMIT=1024: still hangs (23 s), now at op 5, ExecuteIndirect, kind 1 (indexed draw: vertex 4e35b816f2f91d68, pixel 659fe9cae59dbd88).

    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.

  3. 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.

  4. 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

  • the >32 KiB mesh programs (none bound);
  • pipeline compilation (no library call running at 2 of the hangs);
  • the debug layer (nothing invalid reported before the hang; only IDs 971, 679, 645 and the 64-lane compute refusals);
  • runaway shader loops (limit 1024, still hangs);
  • the relay (VICTORY_RELAY=0 hangs too);
  • VICTORY_INDIRECT_CARD_BUDGET;
  • ReBAR (on).

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 BUDGET from 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.

**@⁠jstrdev** on GitHub · 2026-11-25 18:40 UTC · [original](https://github.com/fxceless/victory-fork/issues/1079) This supersedes #969. It keeps what I reported there and adds targeted tests run after DRED started working. ## Setup - Intel Arc B580 12 GB (Xe2 Battlemage), ReBAR on, driver 32.0.101.9175 - Ryzen 5 7600X, Windows - Commit `0b0074e`, Series X profile, title 1.0.2.1 - `diag` build (`cargo build --profile diag -p victory --features diagnostics`), 1280x720 - VIctory reports waves of 16–32 lanes ## Symptom 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_WAIT` and `INPLACE` are already off by default, and `VICTORY_WAVE_WIDE=0` turns off the 32-lane widening, which is on by default, so that earlier test was not neutral. - `VICTORY_SKIP_PIPELINES` had no effect, but it only works in `diag` builds and that test was on release. - Pipeline library: one run with a mapped library read 14 of 20037 pages as zeros; `VICTORY_LIBRARY_MAP=0` avoids that and is kept on. The `0x80070057` / D3D12 ID 971 lookups are ordinary library misses. - Heavy texture queue with mesh skip (~25k pending slots). VRAM at the world start: about 8.4 of 10.7 GB in use on the card, plus about 4.5 GB in shared system memory. ## New findings 1. **>32 KiB mesh programs (#854).** `victory translate --list` with `VICTORY_HOST_MAX_WAVE=32 VICTORY_MESH_OUTPUT_STRICT=1` finds 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. 2. **DRED.** Breadcrumbs only map to the layer's lists **without** `VICTORY_D3D12_DEBUG`. With the debug layer every node shows `None`, presumably because the layer wraps the lists; that is why #969 had no usable breadcrumbs. Run with `VICTORY_D3D12_DRED=1 VICTORY_RELAY=0`: - Defaults: the stalled command is op 7 (`CopyBufferRegion`) at 785/788, the 8-byte `card_budget_out` copy 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** (mesh `ab86c58dfc0172fa`, pixel `eca43156b8340a7e`). - `VICTORY_SHADER_LOOP_LIMIT=1024`: still hangs (23 s), now at **op 5, `ExecuteIndirect`, kind 1** (indexed draw: vertex `4e35b816f2f91d68`, pixel `659fe9cae59dbd88`). 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. 3. **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. 4. **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 - the >32 KiB mesh programs (none bound); - pipeline compilation (no library call running at 2 of the hangs); - the debug layer (nothing invalid reported before the hang; only IDs 971, 679, 645 and the 64-lane compute refusals); - runaway shader loops (limit 1024, still hangs); - the relay (`VICTORY_RELAY=0` hangs too); - `VICTORY_INDIRECT_CARD_BUDGET`; - ReBAR (on). ## 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 `BUDGET` from 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.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:08 +00:00
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/fxceless--victory-fork#1079
No description provided.