none #1392

Closed
kunalkhude99 wants to merge 1 commit from upstream-pr/1392 into main
kunalkhude99 commented 2026-11-24 17:41:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kunalkhude99 on 2026-11-24T17:41:42Z.


No description provided.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5477303805 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1392). Originally posted by [kunalkhude99](https://github.com/kunalkhude99) on 2026-11-24T17:41:42Z. --- _No description provided._
TheoSan05 commented 2026-11-24 18:06:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by TheoSan05 on 2026-11-24T18:00:43Z.


Hey !
Tested your fix—thanks for putting it together!

What improved: The session lasted noticeably longer than before (cutscene voices were still playing as proof that execution progressed further).

What still happened (1795542714, pid 11184): Still hit a host GPU device removed (0x887A0006 / DEVICE_HUNG) after submitting 19 lists. Breadcrumbs show one list stalled at 128/415 Some(2) (op 42, mesh 3, between barriers 107..333) with another list left at 0/3 Some(3) (op 46, empty pipelines {}).

Pattern in the log: Around commands 108..130, the op 42 mesh calls consistently use mesh shader 38ad582f523fd7cf and pixel shader d42a2d8a9d2c954a with placed 1D SRVs (such as s0+248, s0+440, s0+712, and pixel s0+688 at 182452224x1 / 0x30940000) plus Cbv s1+32, s1+40, and s2+0.

Next step on my side is running a diagnostics build with VICTORY_D3D12_DEBUG=1 (and VICTORY_D3D12_GBV=1 if needed) to get the exact command name and validation details.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140027722 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1392#issuecomment-7140027722). Originally posted by [TheoSan05](https://github.com/TheoSan05) on 2026-11-24T18:00:43Z. --- Hey ! Tested your fix—thanks for putting it together! What improved: The session lasted noticeably longer than before (cutscene voices were still playing as proof that execution progressed further). What still happened (1795542714, pid 11184): Still hit a host GPU device removed (0x887A0006 / DEVICE_HUNG) after submitting 19 lists. Breadcrumbs show one list stalled at 128/415 Some(2) (op 42, mesh 3, between barriers 107..333) with another list left at 0/3 Some(3) (op 46, empty pipelines {}). Pattern in the log: Around commands 108..130, the op 42 mesh calls consistently use mesh shader 38ad582f523fd7cf and pixel shader d42a2d8a9d2c954a with placed 1D SRVs (such as s0+248, s0+440, s0+712, and pixel s0+688 at 182452224x1 / 0x30940000) plus Cbv s1+32, s1+40, and s2+0. Next step on my side is running a diagnostics build with VICTORY_D3D12_DEBUG=1 (and VICTORY_D3D12_GBV=1 if needed) to get the exact command name and validation details.
catminou4 commented 2026-11-24 20:49:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T20:49:16Z.

Review: COMMENTED


Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; this is source review plus the PR's own Windows tests.

A dropped compute dispatch (no host pipeline) now emits a global UAV barrier before returning, so UAVs it would have written cannot be read stale by the next dispatch — the comment ties it to DXGI_ERROR_DEVICE_REMOVED 0x887A0006. The barrier is the standard null-resource UAV barrier; ManuallyDrop usage matches the windows crate bindings. cfg(windows)-gated at the call site. Sound mitigation; a Windows repro of the original removal would confirm.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047163011 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1392#pullrequestreview-6047163011). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T20:49:16Z. **Review:** COMMENTED --- Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; this is source review plus the PR's own Windows tests. A dropped compute dispatch (no host pipeline) now emits a global UAV barrier before returning, so UAVs it would have written cannot be read stale by the next dispatch — the comment ties it to DXGI_ERROR_DEVICE_REMOVED 0x887A0006. The barrier is the standard null-resource UAV barrier; ManuallyDrop usage matches the windows crate bindings. cfg(windows)-gated at the call site. Sound mitigation; a Windows repro of the original removal would confirm.
ericomeehan commented 2026-11-25 00:06:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ericomeehan on 2026-11-24T23:41:30Z.


Thanks for chasing #1347; TheoSan05's run getting further is a useful data point.

One thing about the mechanism, from reading the diff: a dropped dispatch never executes, so it can't leave UAV writes behind, and the next dispatch that does run calls ensure_state for its own UAVs in bind(). D3D12 also doesn't remove the device for a missing UAV barrier by itself (that's a data race: wrong values, not a fault). What a null UAV barrier after a drop does is order every earlier dispatch's writes before every later one, but only at the points where a dispatch happened to be dropped. If #1347's removal comes from missing ordering between dispatches, the console's own pipeline syncs are where it would belong everywhere: list slots 129 and 130 map to a no-op sync in list.rs today, which #1228 addresses. A DRED trace naming the faulting dispatch, with and without this barrier, would show whether the barrier itself is what helps.

Written with an AI assistant (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7147687117 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1392#issuecomment-7147687117). Originally posted by [ericomeehan](https://github.com/ericomeehan) on 2026-11-24T23:41:30Z. --- Thanks for chasing #1347; TheoSan05's run getting further is a useful data point. One thing about the mechanism, from reading the diff: a dropped dispatch never executes, so it can't leave UAV writes behind, and the next dispatch that does run calls `ensure_state` for its own UAVs in `bind()`. D3D12 also doesn't remove the device for a missing UAV barrier by itself (that's a data race: wrong values, not a fault). What a null UAV barrier after a drop does is order every earlier dispatch's writes before every later one, but only at the points where a dispatch happened to be dropped. If #1347's removal comes from missing ordering between dispatches, the console's own pipeline syncs are where it would belong everywhere: list slots 129 and 130 map to a no-op `sync` in `list.rs` today, which #1228 addresses. A DRED trace naming the faulting dispatch, with and without this barrier, would show whether the barrier itself is what helps. Written with an AI assistant (Claude).
upstream-sync closed this pull request 2026-11-25 01:06:28 +00:00
Marvisak commented 2026-11-25 01:08:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:39:47Z.


Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148745688 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1392#issuecomment-7148745688). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:39:47Z. --- Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1392
No description provided.