Test report: AMD Radeon RX 6600 (RDNA2) — world GPU hang (0x887A0006), IASetVertexBuffers state mismatch, DRED breadcrumbs & loop-limit test #1442

Open
opened 2026-11-26 04:31:51 +00:00 by github-bot · 6 comments
Owner

@⁠SomePlebb on GitHub · 2026-11-24 18:01 UTC · original

The README lists one tested machine (RX 6700 XT, RDNA2). This is a live run on an RX 6600 (RDNA2, GFX10.3) using the diagnostics build, covering the menus, world load, D3D12 debug layer, DRED breadcrumbs, and shader loop-limit testing.

Environment

  • GPU: AMD Radeon RX 6600 (RDNA2)
  • CPU: AMD Ryzen 5 9600X 6-Core Processor
  • OS: Windows 11 x64
  • Rust: 1.98.1 (from rust-toolchain.toml), MSVC 2022
  • VIctory: diag profile (cargo build --profile diag -p victory --features diagnostics)
  • Flags tested:
    • VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1
    • VICTORY_SHADER_LOOP_LIMIT=1000

Result
Menus boot and run at 30 fps, and the title loads into the world (observed on frames 1533-1537 and 7699-7724). Once in the world, host submissions slow to 3.3-3.7 seconds and trigger DXGI_ERROR_DEVICE_HUNG (0x887A0006).

Shader loop-limit test
Running with VICTORY_SHADER_LOOP_LIMIT=1000 did not prevent the hang. The 33-list submission still took 3384 ms and ended in 0x887A0006, which suggests runaway translated shader loops (>1000 iterations) are not the primary cause of the TDR.

D3D12 Debug Layer
Running with VICTORY_D3D12_DEBUG=1 reported a resource state mismatch on IASetVertexBuffers:

  • Resource: title buffer 0x16020000+0xae00000 (subresource 0)
  • Actual State: 0x8 (D3D12_RESOURCE_STATE_UNORDERED_ACCESS)
  • Expected State: 0x1 (D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER)

DRED Breadcrumbs
Running with VICTORY_D3D12_DRED=1 stopped at command 403 of 1288 (op 5) in a 16-list submission. Lists and pipelines in flight included:

  • List 5: compute f4ec8e2b4d2439f8, a3d1a26ad0c8c2cd, 34d88edf583f3778, 690e2883f9dd25d8, a1bf269d5b19f025
  • List 7: vertex 6e750a37b1da6949 / pixel d7b97830ede61511; compute 914e86141fa3b37f, 8dd8d739047fe557, cc6c9f45e334afb7; indirect compute f41afb810c1e29c6, 130d3d04172e5456
  • List 12: indirect mesh c5ffa556ab926155 / pixel c4a269f4eeba3cac
  • List 14: compute f753697c1c03772b, 559fb027c6d5b1db
  • List 15: compute 2c3592e9bbad543f

Why this report may be useful
This adds a second RDNA2 data point (RX 6600) alongside the RX 6700 XT, confirms the IASetVertexBuffers UAV-to-vertex-buffer state mismatch under the D3D12 debug layer, and rules out shader loop counts above 1000 as the cause of the world TDR.

**@⁠SomePlebb** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442) The README lists one tested machine (RX 6700 XT, RDNA2). This is a live run on an RX 6600 (RDNA2, GFX10.3) using the diagnostics build, covering the menus, world load, D3D12 debug layer, DRED breadcrumbs, and shader loop-limit testing. Environment - GPU: AMD Radeon RX 6600 (RDNA2) - CPU: AMD Ryzen 5 9600X 6-Core Processor - OS: Windows 11 x64 - Rust: 1.98.1 (from rust-toolchain.toml), MSVC 2022 - VIctory: diag profile (cargo build --profile diag -p victory --features diagnostics) - Flags tested: - VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 - VICTORY_SHADER_LOOP_LIMIT=1000 Result Menus boot and run at 30 fps, and the title loads into the world (observed on frames 1533-1537 and 7699-7724). Once in the world, host submissions slow to 3.3-3.7 seconds and trigger DXGI_ERROR_DEVICE_HUNG (0x887A0006). Shader loop-limit test Running with VICTORY_SHADER_LOOP_LIMIT=1000 did not prevent the hang. The 33-list submission still took 3384 ms and ended in 0x887A0006, which suggests runaway translated shader loops (>1000 iterations) are not the primary cause of the TDR. D3D12 Debug Layer Running with VICTORY_D3D12_DEBUG=1 reported a resource state mismatch on IASetVertexBuffers: - Resource: title buffer 0x16020000+0xae00000 (subresource 0) - Actual State: 0x8 (D3D12_RESOURCE_STATE_UNORDERED_ACCESS) - Expected State: 0x1 (D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER) DRED Breadcrumbs Running with VICTORY_D3D12_DRED=1 stopped at command 403 of 1288 (op 5) in a 16-list submission. Lists and pipelines in flight included: - List 5: compute f4ec8e2b4d2439f8, a3d1a26ad0c8c2cd, 34d88edf583f3778, 690e2883f9dd25d8, a1bf269d5b19f025 - List 7: vertex 6e750a37b1da6949 / pixel d7b97830ede61511; compute 914e86141fa3b37f, 8dd8d739047fe557, cc6c9f45e334afb7; indirect compute f41afb810c1e29c6, 130d3d04172e5456 - List 12: indirect mesh c5ffa556ab926155 / pixel c4a269f4eeba3cac - List 14: compute f753697c1c03772b, 559fb027c6d5b1db - List 15: compute 2c3592e9bbad543f Why this report may be useful This adds a second RDNA2 data point (RX 6600) alongside the RX 6700 XT, confirms the IASetVertexBuffers UAV-to-vertex-buffer state mismatch under the D3D12 debug layer, and rules out shader loop counts above 1000 as the cause of the world TDR.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:51 +00:00
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 18:04 UTC · original

The RX 6600 warning gives us a specific comparison for #334. Its buffer-state tracker handles a UAV write in an earlier command followed by a vertex-buffer read. A draw that binds the same backing for both uses is a distinct case.

If your existing capture includes them, could you share the command-list name and nearest marker for breadcrumb 403/1288, and any debug-layer lines showing which command last used the affected vertex buffer as a UAV? Those details would help distinguish the two cases. The 16-list DRED capture and the 33-list loop-limit run ended under different conditions, so we're tracking the state warning and the hang separately.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 18:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7140111562) The RX 6600 warning gives us a specific comparison for #334. Its buffer-state tracker handles a UAV write in an earlier command followed by a vertex-buffer read. A draw that binds the same backing for both uses is a distinct case. If your existing capture includes them, could you share the command-list name and nearest marker for breadcrumb 403/1288, and any debug-layer lines showing which command last used the affected vertex buffer as a UAV? Those details would help distinguish the two cases. The 16-list DRED capture and the 33-list loop-limit run ended under different conditions, so we're tracking the state warning and the hang separately.
Author
Owner

@⁠SomePlebb on GitHub · 2026-11-24 18:23 UTC · original

I re-ran with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 logged to a file on the latest build.

Breadcrumb details (both runs)

  • Command-list name: None (403/1288 None in the earlier 16-list capture; 403/1303 None in this 33-list capture), and 'Unnamed ID3D12GraphicsCommandList Object' in the debug-layer messages.
  • Nearest marker: none — exact line:
    a list stopped at command 403 of 1303 (op 5), commands 402..404 between its barriers:; command 403 (op 5): no marker;

D3D12 debug-layer sequence for the affected buffer (title buffer 0x21c10000+0xae00000, 0x000001DE56BA0A40)
There were no earlier debug-layer lines naming a specific UAV write command, but there are repeated ResourceBarrier (id=527) mismatches on the same buffer right before and after the IASetVertexBuffers (id=538) warnings, across different command lists:

  1. 18:18:17.180Z (id=527, cmdlist 0x000001DDD8FAF700):
    ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use).

  2. 18:18:21.497Z (id=538, cmdlist 0x000001DDD53CEB80):
    IASetVertexBuffers: Actual State 0x8 (UNORDERED_ACCESS), Expected 0x1 (VERTEX_AND_CONSTANT_BUFFER).

  3. 18:18:21.497Z (id=527, cmdlist 0x000001DDE1549340):
    ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match state (0x1: VERTEX_AND_CONSTANT_BUFFER) specified in preceding ResourceBarrier or as InitialState.

  4. 18:18:23.865Z (id=527, cmdlist 0x000001DDDB990770):
    ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use).

  5. 18:18:27.244Z (id=538, cmdlist 0x000001DD83426700):
    IASetVertexBuffers: Actual State 0x8 (UNORDERED_ACCESS), Expected 0x1 (VERTEX_AND_CONSTANT_BUFFER).

  6. 18:18:27.245Z (id=527, cmdlist 0x000001DDFBF5A690):
    ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match state (0x1: VERTEX_AND_CONSTANT_BUFFER) specified in preceding ResourceBarrier or as InitialState.

  7. 18:18:27.245Z (id=232):
    RemoveDevice (DXGI_ERROR_DEVICE_HUNG) on the 33-list submission (slow host submission ms=3269).

In the DRED dump for the 33-list submission, 0x21c10000 (182452224x1) is also bound as Srv s0+672 (uav=false) in lists 15 and 20 (mesh 38d7a05a71b688dd / pixel 5277115a95efdb8d).

**@⁠SomePlebb** on GitHub · 2026-11-24 18:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7140582389) I re-ran with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1` logged to a file on the latest build. Breadcrumb details (both runs) - Command-list name: None (`403/1288 None` in the earlier 16-list capture; `403/1303 None` in this 33-list capture), and `'Unnamed ID3D12GraphicsCommandList Object'` in the debug-layer messages. - Nearest marker: none — exact line: `a list stopped at command 403 of 1303 (op 5), commands 402..404 between its barriers:; command 403 (op 5): no marker;` D3D12 debug-layer sequence for the affected buffer (`title buffer 0x21c10000+0xae00000`, `0x000001DE56BA0A40`) There were no earlier debug-layer lines naming a specific UAV write command, but there are repeated `ResourceBarrier` (`id=527`) mismatches on the same buffer right before and after the `IASetVertexBuffers` (`id=538`) warnings, across different command lists: 1. 18:18:17.180Z (id=527, cmdlist 0x000001DDD8FAF700): ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use). 2. 18:18:21.497Z (id=538, cmdlist 0x000001DDD53CEB80): IASetVertexBuffers: Actual State 0x8 (UNORDERED_ACCESS), Expected 0x1 (VERTEX_AND_CONSTANT_BUFFER). 3. 18:18:21.497Z (id=527, cmdlist 0x000001DDE1549340): ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match state (0x1: VERTEX_AND_CONSTANT_BUFFER) specified in preceding ResourceBarrier or as InitialState. 4. 18:18:23.865Z (id=527, cmdlist 0x000001DDDB990770): ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use). 5. 18:18:27.244Z (id=538, cmdlist 0x000001DD83426700): IASetVertexBuffers: Actual State 0x8 (UNORDERED_ACCESS), Expected 0x1 (VERTEX_AND_CONSTANT_BUFFER). 6. 18:18:27.245Z (id=527, cmdlist 0x000001DDFBF5A690): ResourceBarrier Before state (0x8: UNORDERED_ACCESS) does not match state (0x1: VERTEX_AND_CONSTANT_BUFFER) specified in preceding ResourceBarrier or as InitialState. 7. 18:18:27.245Z (id=232): RemoveDevice (DXGI_ERROR_DEVICE_HUNG) on the 33-list submission (slow host submission ms=3269). In the DRED dump for the 33-list submission, `0x21c10000` (182452224x1) is also bound as `Srv s0+672` (`uav=false`) in lists 15 and 20 (`mesh 38d7a05a71b688dd` / `pixel 5277115a95efdb8d`).
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 18:24 UTC · original

The "runaway translated shader loops" hypothesis has a known upstream producer worth ruling out before any loop-hunting: wave-mode legalization without lane remapping. RDNA2 advertises 32-lane waves; if the build ran the default recommended_wave64_mode (native Wave32, no emulate), cross-lane reductions return values from lanes that do not exist on the console semantics the shader was written against — and a loop whose exit condition consumes one of those values is not "sometimes wrong", it is structurally free-spinning: >1000-iteration guard trips, GPU resets, 0x887A0006 arrives exactly as reported, and the log shows a healthy machine right up to the hang. The one-run screen (identical setup, add VICTORY_WAVE64_EMULATE=emulate): if the world-stage hang moves or changes shape, this class produced it and the report becomes a data point for the default-policy debate; if it hangs identically, the loop hypothesis stands alone and the loop bisection is worth doing. (TdrLevel intake line applies here too, per #1054.)

**@⁠pickles976** on GitHub · 2026-11-24 18:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7140604354) The "runaway translated shader loops" hypothesis has a known upstream producer worth ruling out before any loop-hunting: **wave-mode legalization without lane remapping**. RDNA2 advertises 32-lane waves; if the build ran the default `recommended_wave64_mode` (native Wave32, no emulate), cross-lane reductions return values from lanes that do not exist on the console semantics the shader was written against — and a loop whose exit condition consumes one of those values is not "sometimes wrong", it is **structurally free-spinning**: >1000-iteration guard trips, GPU resets, `0x887A0006` arrives exactly as reported, and the log shows a healthy machine right up to the hang. The one-run screen (identical setup, add `VICTORY_WAVE64_EMULATE=emulate`): if the world-stage hang moves or changes shape, this class produced it and the report becomes a data point for the default-policy debate; if it hangs identically, the loop hypothesis stands alone and the loop bisection is worth doing. (TdrLevel intake line applies here too, per #1054.)
Author
Owner

@⁠SomePlebb on GitHub · 2026-11-24 18:31 UTC · original

Tested with VICTORY_WAVE64_EMULATE=emulate on the RX 6600 (Ryzen 5 9600X, Windows 11):

The world-stage hang did not move or change shape. It still hit a ~3.66s slow host submission (slow host submission ms=3657 lists=34) and terminated with 0x887A0006 (host GPU device removed after a submission of 34 lists).

Since emulating Wave64 produced the same behavior, wave-mode legalization without lane remapping doesn't appear to explain this hang.

**@⁠SomePlebb** on GitHub · 2026-11-24 18:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7140753642) Tested with VICTORY_WAVE64_EMULATE=emulate on the RX 6600 (Ryzen 5 9600X, Windows 11): The world-stage hang did not move or change shape. It still hit a ~3.66s slow host submission (`slow host submission ms=3657 lists=34`) and terminated with `0x887A0006` (`host GPU device removed after a submission of 34 lists`). Since emulating Wave64 produced the same behavior, wave-mode legalization without lane remapping doesn't appear to explain this hang.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:18 UTC · original · edited 2026-11-25 18:52 UTC

Automated triage for the maintainers.

Thanks for the retest (RX 6600, Adrenalin 26.11.2, Windows 11 26200, main at 67e8ae1). The world DXGI_ERROR_DEVICE_HUNG this issue reported no longer happens there: no device removal, no DRED fault, and the run reaches the prison scene. Slow submissions are down to about 0.5 s. This matches what other AMD testers saw in #59 after the bounded root views and the delayed release of host objects reached main. The clamping of root views is in crates/victory-gpu/src/draw.rs, and indirect arguments are bounded in crates/victory-gpu/src/indirect.rs.

What is left:

  • The debug layer's IASetVertexBuffers state mismatch on title buffers is tracked in #199, which already lists this report.
  • The missing lighting and faces are general rendering progress, not this hang. If you want them looked at, please open a new run report.

Proposed close: the reported hang no longer occurs on current main, as confirmed by the reporter. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7159524651) · edited 2026-11-25 18:52 UTC <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-25T17:57:42Z at=2026-11-25T18:45:49Z --> Automated triage for the maintainers. Thanks for the retest (RX 6600, Adrenalin 26.11.2, Windows 11 26200, `main` at `67e8ae1`). The world `DXGI_ERROR_DEVICE_HUNG` this issue reported no longer happens there: no device removal, no DRED fault, and the run reaches the prison scene. Slow submissions are down to about 0.5 s. This matches what other AMD testers saw in #59 after the bounded root views and the delayed release of host objects reached `main`. The clamping of root views is in `crates/victory-gpu/src/draw.rs`, and indirect arguments are bounded in `crates/victory-gpu/src/indirect.rs`. What is left: - The debug layer's `IASetVertexBuffers` state mismatch on title buffers is tracked in #199, which already lists this report. - The missing lighting and faces are general rendering progress, not this hang. If you want them looked at, please open a new run report. Proposed close: the reported hang no longer occurs on current `main`, as confirmed by the reporter. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠SomePlebb on GitHub · 2026-11-25 17:57 UTC · original

Thanks for the pointers—here are the missing system/driver details from the earlier run along with a fresh re-test on current main (VICTORY_D3D12_DRED=1, VICTORY_LOG=warn, target\diag\victory.exe):

System & Driver Details

  • OS: Windows 11 Home, OS Build 26200 (10.0.26200)
  • GPU / Driver: AMD Radeon RX 6600 — AMD Software: Adrenalin Edition 26.11.2 (Driver Store 32.0.21045.29003)

Re-test on main (67e8ae1) — RX 6600

  • Device removal / DRED outcome: Resolved / no longer triggered. There was no 0x1f51d0000 view-heap fault, no 0x887A0006 device removal, and no DRED fault output.
  • Progression & rendering: The run now loads into the prison scene on the RX 6600 with the skybox and prison jumpsuits visible (no other lighting effects yet and no faces), (WARN victory_gpu::host: slow host submission ms=473 lists=33 ...).
**@⁠SomePlebb** on GitHub · 2026-11-25 17:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/1442#issuecomment-7170242826) Thanks for the pointers—here are the missing system/driver details from the earlier run along with a fresh re-test on current `main` (`VICTORY_D3D12_DRED=1`, `VICTORY_LOG=warn`, `target\diag\victory.exe`): ### System & Driver Details - **OS:** Windows 11 Home, OS Build `26200` (`10.0.26200`) - **GPU / Driver:** AMD Radeon RX 6600 — AMD Software: Adrenalin Edition `26.11.2` (Driver Store `32.0.21045.29003`) ### Re-test on `main` (`67e8ae1`) — RX 6600 - **Device removal / DRED outcome:** **Resolved / no longer triggered.** There was no `0x1f51d0000` view-heap fault, no `0x887A0006` device removal, and no DRED fault output. - **Progression & rendering:** The run now loads into the prison scene on the RX 6600 with the skybox and prison jumpsuits visible (no other lighting effects yet and no faces), (`WARN victory_gpu::host: slow host submission ms=473 lists=33 ...`).
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/Marvisak--VIctory#1442
No description provided.