RTX 3060 (NVIDIA): host device removed ~1 s after a 2560x1440 format-115 render target is refused #1952

Open
opened 2026-11-26 04:49:54 +00:00 by github-bot · 20 comments
Owner

@⁠itxjack67 on GitHub · 2026-11-25 01:43 UTC · original

Environment

  • Windows 11 (10.0.26200), i5-13400F, RTX 3060, driver 32.0.16.1060
  • Series 1.0.2.1, release and diag builds, commit ccfb029 (and earlier)

What happens

  • Boot and loading work; all game files are bound (0 missing).
  • Real GPU: crash a few seconds after boot, before the menus. Every run is the same:
    1. "host view heap capped at 1000000 ... (0x80070057) count=1245184", then
      thousands of "title slot past the host heap".
    2. "no host texture (0x80070057) ... width 2560 height 1440 format 115 flags 1"
    3. ~1 s later: "host GPU device removed ... (0x887A0004) / (0x887A0001)"
      with DRED breadcrumbs [] (empty).
  • WARP (VICTORY_D3D12_WARP=1): none of the above. It reaches the menus and
    crashes entering the world (frame ~3730, 0x887A0004). A dispatch pipeline
    "refused (0x80070057)" appears shortly before.

Notes

  • The D3D12 debug layer is unavailable on this machine (Graphics Tools can't be
    installed; Windows Update service missing), so I can't name the failing command.
  • Happy to test patches or run a specific build.
**@⁠itxjack67** on GitHub · 2026-11-25 01:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952) Environment - Windows 11 (10.0.26200), i5-13400F, RTX 3060, driver 32.0.16.1060 - Series 1.0.2.1, release and diag builds, commit ccfb029 (and earlier) What happens - Boot and loading work; all game files are bound (0 missing). - Real GPU: crash a few seconds after boot, before the menus. Every run is the same: 1. "host view heap capped at 1000000 ... (0x80070057) count=1245184", then thousands of "title slot past the host heap". 2. "no host texture (0x80070057) ... width 2560 height 1440 format 115 flags 1" 3. ~1 s later: "host GPU device removed ... (0x887A0004) / (0x887A0001)" with DRED breadcrumbs [] (empty). - WARP (VICTORY_D3D12_WARP=1): none of the above. It reaches the menus and crashes entering the world (frame ~3730, 0x887A0004). A dispatch pipeline "refused (0x80070057)" appears shortly before. Notes - The D3D12 debug layer is unavailable on this machine (Graphics Tools can't be installed; Windows Update service missing), so I can't name the failing command. - Happy to test patches or run a specific build.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:49:54 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 01:51 UTC · original

Reproduced on a second machine, and the three symptoms have three different owners

Your sequence reproduces exactly on this one, on today's main 940d32f, so it is not your card or your driver:

Machine: RTX 4090, driver 32.0.16.2124, Windows 11, session 1 (interactive desktop), release build, empty cache, 70 s:

host view heap capped at 1000000                     1
title slot past the host heap                        310,720
no host texture … width 2560 height 1440 format 115  1
host GPU device removed                              2   (0x887A0004 / 0x887A0001, breadcrumbs [])

Same order as yours: cap, then the slots, then the refused 1440p format-115 target, then the removal about a second later. Which is the useful part of your report — two machines, two NVIDIA generations, same chain.

What each symptom is, and where it is being fixed:

  1. the cap and the 310,720 slots — the title asks for 1,245,184 shader-visible views, the driver allows 1,000,000, and the shaders' own bound sits above the capped heap. #1779 is the fix that takes the slots past the heap to zero on this machine and, measured here, makes the same 2,048 frames take 70 s instead of 94 s.
  2. no host texture for the 1440p format-115 target — #1630, a ladder of descriptions tried before giving up: on this machine the texture then exists as plain memory ("made only as a fallback") and the line disappears.
  3. the removal — this is the one your machine cannot name without the debug layer, and mine named it: with the layer on, main reports id 599, GetResourceAllocationInfo refusing the B5G5R5A1_UNORM 2560×1440 target because ALLOW_UNORDERED_ACCESS is set on a format the driver cannot make a typed UAV of. That is #1832 (the permission is dropped in host_desc, before any device call names the description, once per format).

With the three merged, the same run here shows none of the four lines and keeps presenting frames; without them it dies at frame 64–128. The exact numbers are in #1754.

What would help me most, and what would not. You offered to test a build. The one worth your time is a build with #1779 + #1630 + #1832 merged, in that spirit: it is the combination that removes the chain, and no single one of them does (I published the per-build table because of that). If you can only run one, run that one and tell me whether the removal is gone before the menus, which is where yours dies.

I would not spend your time on WARP: your WARP run dies later, in the world, with 0x887A0004 and a dispatch pipeline refused — that is a different failure, further along, and it is the one the world reports are about.

No game data is involved: warnings, counts and ids.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 01:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7150041091) **Reproduced on a second machine, and the three symptoms have three different owners** Your sequence reproduces exactly on this one, on today's `main` `940d32f`, so it is not your card or your driver: Machine: RTX 4090, driver `32.0.16.2124`, Windows 11, session 1 (interactive desktop), release build, empty cache, 70 s: ``` host view heap capped at 1000000 1 title slot past the host heap 310,720 no host texture … width 2560 height 1440 format 115 1 host GPU device removed 2 (0x887A0004 / 0x887A0001, breadcrumbs []) ``` Same order as yours: cap, then the slots, then the refused 1440p format-115 target, then the removal about a second later. Which is the useful part of your report — two machines, two NVIDIA generations, same chain. **What each symptom is, and where it is being fixed:** 1. **the cap and the 310,720 slots** — the title asks for 1,245,184 shader-visible views, the driver allows 1,000,000, and the shaders' own bound sits above the capped heap. #1779 is the fix that takes the slots past the heap to zero on this machine and, measured here, makes the same 2,048 frames take 70 s instead of 94 s. 2. **`no host texture` for the 1440p format-115 target** — #1630, a ladder of descriptions tried before giving up: on this machine the texture then exists as plain memory ("made only as a fallback") and the line disappears. 3. **the removal** — this is the one your machine cannot name without the debug layer, and mine named it: with the layer on, `main` reports **id 599**, `GetResourceAllocationInfo` refusing the `B5G5R5A1_UNORM` 2560×1440 target because `ALLOW_UNORDERED_ACCESS` is set on a format the driver cannot make a typed UAV of. That is #1832 (the permission is dropped in `host_desc`, before any device call names the description, once per format). With the three merged, the same run here shows **none of the four lines** and keeps presenting frames; without them it dies at frame 64–128. The exact numbers are in https://git.gtahub.st/github/Marvisak--VIctory/issues/1754. **What would help me most, and what would not.** You offered to test a build. The one worth your time is a build with **#1779 + #1630 + #1832** merged, in that spirit: it is the combination that removes the chain, and no single one of them does (I published the per-build table because of that). If you can only run one, run that one and tell me whether the removal is gone before the menus, which is where yours dies. I would not spend your time on WARP: your WARP run dies later, in the world, with `0x887A0004` and a dispatch pipeline refused — that is a different failure, further along, and it is the one the world reports are about. No game data is involved: warnings, counts and ids. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 01:58 UTC · original

Verified on today's main (940d32f), not on the one I measured before: two of your three symptoms are gone, the third is your heap and needs a rebase

My last comment here was measured on an older main, and main has changed since (page marking and copy-back, 20 files). So I re-ran it on 940d32f with the three fixes merged on top, release build, session 1, RTX 4090 (driver 32.0.16.2124), empty cache, 70 s:

main 940d32f alone 940d32f + #1778 + #1832 + #1630
host view heap capped at 1000000 1 1
title slot past the host heap 310,720 310,720
no host texture … 2560x1440 format 115 1 0
host texture made only as a fallback 0 1
dropping unordered access … the host cannot use this format as a typed UAV 0 2
host GPU device removed 2 0
frames presented dies before 128 1,024 (draws=6656)

So the claim holds on the new main, and it is now split in a way that is easy to act on:

  • the removal is gone with the UAV rule (#1832) — GetResourceAllocationInfo is no longer handed a description its format cannot carry, and the two dropping unordered access lines are the proof it fired;
  • the missing texture is gone with the ladder (#1630) — the 1440p format-115 target exists as plain memory, which is what "made only as a fallback" says;
  • the cap and the 310,720 slots are not touched by any of the three, and that is the one your report puts first. The fix for it is #1779, which I could not merge on top of today's main: it conflicts in four files (descriptor/host.rs, shader_cache.rs, emit/mod.rs, emit/shader.rs). So the third symptom is waiting on a rebase of that pull request, not on more analysis.

That last point is the useful outcome of this run: two of your three are fixed and mergeable today, and the third is blocked on something mechanical that anyone can do — including whoever owns #1779, and the conflict list is now written down in the open.

If you do test a build on the 3060, the one worth it is 940d32f + those three: it should reach the menus without the removal, and it will still show the cap and the slots in its log, which is expected and is not your bug.

No game data is involved: warnings, counts and frame numbers.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7150176363) **Verified on today's `main` (`940d32f`), not on the one I measured before: two of your three symptoms are gone, the third is your heap and needs a rebase** My last comment here was measured on an older `main`, and `main` has changed since (page marking and copy-back, 20 files). So I re-ran it on `940d32f` with the three fixes merged on top, release build, session 1, RTX 4090 (driver `32.0.16.2124`), empty cache, 70 s: | | `main` `940d32f` alone | `940d32f` + #1778 + #1832 + #1630 | |---|---|---| | `host view heap capped at 1000000` | 1 | 1 | | `title slot past the host heap` | 310,720 | 310,720 | | `no host texture … 2560x1440 format 115` | **1** | **0** | | `host texture made only as a fallback` | 0 | 1 | | `dropping unordered access … the host cannot use this format as a typed UAV` | 0 | 2 | | host GPU device removed | **2** | **0** | | frames presented | dies before 128 | **1,024** (`draws=6656`) | So the claim holds on the new `main`, and it is now split in a way that is easy to act on: - **the removal is gone** with the UAV rule (#1832) — `GetResourceAllocationInfo` is no longer handed a description its format cannot carry, and the two `dropping unordered access` lines are the proof it fired; - **the missing texture is gone** with the ladder (#1630) — the 1440p format-115 target exists as plain memory, which is what "made only as a fallback" says; - **the cap and the 310,720 slots are not touched by any of the three**, and that is the one your report puts first. The fix for it is #1779, which I could not merge on top of today's `main`: it conflicts in four files (`descriptor/host.rs`, `shader_cache.rs`, `emit/mod.rs`, `emit/shader.rs`). So the third symptom is waiting on **a rebase of that pull request**, not on more analysis. That last point is the useful outcome of this run: two of your three are fixed and mergeable today, and the third is blocked on something mechanical that anyone can do — including whoever owns #1779, and the conflict list is now written down in the open. If you do test a build on the 3060, the one worth it is `940d32f` + those three: it should reach the menus without the removal, and it will still show the cap and the slots in its log, which is expected and is not your bug. No game data is involved: warnings, counts and frame numbers. Written with an AI assistant.
Author
Owner

@⁠MD5Visual on GitHub · 2026-11-25 02:00 UTC · original

The removal names itself on a third machine — it is B5G5R5A1_UNORM with ALLOW_UNORDERED_ACCESS, i.e. #1832 — and it is separable from the heap symptoms

I reported the same removal separately as #1967 before finding this thread; I am closing that one and putting the measurement here.

Machine: Windows 11 Pro 26200, Ryzen 7 5800X3D, 64 GB, driver 32.0.16.1088 (610.88). Two NVIDIA adapters in the box: RTX 3090 24 GB and RTX 2070 SUPER 8 GB (the display adapter). Title 1.0.2.1, blake3 b99f876b…239e93, version 930.048.020-vb_sub_story. Build 940d32f, diagnostics profile, no loop limit, no VICTORY_SKIP_WAVE64, no DRED except where noted, empty cache per run. One local-only patch, disclosed: the host device is created on an adapter chosen by name from EnumAdapters1, because D3D12CreateDevice(None, …) takes the display adapter here and I wanted to exercise both cards. Nothing else is patched.

Four runs, same binary, same failure:

card switches ended at
RTX 3090 none 49.2 s
RTX 3090 debug layer 45.7 s
RTX 2070 SUPER none 49.1 s
RTX 2070 SUPER none (repeat) 48.7 s

So a 24 GB and an 8 GB card of two generations die within 4 s of each other, on the same frame range (before 128), which agrees with your 3060 and the 4090 here: not memory size, not architecture.

What our log does not contain. Neither the host view heap capped at 1000000 line nor any title slot past the host heap. Our run-up is only: frame 128 presented (192/192 draws, 64/64 dispatches), then twice a title texture was released while a list not yet reset names its host copy (3840x2160 f28 and f19), no host texture (0x80070057) for a 2560x1440 format 115 with flags 1, seven large buffer copied to the host (22-50 MB), three an unordered view of a depth texture, made on its writable twin, then:

host GPU device removed after a submission of 1 lists; no breadcrumbs (0x887A0004);
device removed ... (0x887A0001)

That matters for triage: the removal arrives without the cap and the slots, so it is not downstream of the heap symptom — the two are independent, and #1832 is the whole of the removal.

What the debug layer says, verbatim, on the same build and title:

ID3D12Device::GetResourceAllocationInfo: A texture that has
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be
created with a format that either can be used as unordered access, or cast to a format
that could be used as unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2.
D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM.

Same id/description as your 4090 measurement, one HAL earlier: the failing call is an allocation query on a UAV-flagged B5G5R5A1_UNORM (console format 86), so dropping the flag before the query (#1832) is the right place, and it has to be before the query because the device is already gone when it returns.

Two smaller notes from reading the tree, not from a debugger: twin.rs cannot be the creator (plane_formats() only yields R32/R16/R8 and its scratch resource is a buffer), so the two candidates are resource.rs::castable/castable_formats_share_the_element (~1080, ~1945) and the host-creation path (~1191-1262), with GetResourceAllocationInfo at 801 and 1119 on descriptions that can already carry the flag. We also see the companion no host texture … format 115 (B4G4R4A4_UNORM) on every run, which lines up with #1630 in the table above.

Offering the same thing as the reporter: I can run a build with #1832 on this box, on both cards, and report whether the removal goes before the menus and what the cap/slot lines look like here (we do not produce them, which is itself a data point for #1779).

No game data is involved: warnings, ids, timings and counts.

Written with an AI assistant.

**@⁠MD5Visual** on GitHub · 2026-11-25 02:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7150206703) **The removal names itself on a third machine — it is `B5G5R5A1_UNORM` with `ALLOW_UNORDERED_ACCESS`, i.e. #1832 — and it is separable from the heap symptoms** I reported the same removal separately as #1967 before finding this thread; I am closing that one and putting the measurement here. **Machine**: Windows 11 Pro 26200, Ryzen 7 5800X3D, 64 GB, driver `32.0.16.1088` (610.88). Two NVIDIA adapters in the box: **RTX 3090 24 GB** and **RTX 2070 SUPER 8 GB** (the display adapter). Title 1.0.2.1, blake3 `b99f876b…239e93`, version `930.048.020-vb_sub_story`. Build `940d32f`, diagnostics profile, no loop limit, no `VICTORY_SKIP_WAVE64`, no DRED except where noted, empty cache per run. **One local-only patch, disclosed**: the host device is created on an adapter chosen by name from `EnumAdapters1`, because `D3D12CreateDevice(None, …)` takes the display adapter here and I wanted to exercise both cards. Nothing else is patched. Four runs, same binary, same failure: | card | switches | ended at | |---|---|---| | RTX 3090 | none | 49.2 s | | RTX 3090 | debug layer | 45.7 s | | RTX 2070 SUPER | none | 49.1 s | | RTX 2070 SUPER | none (repeat) | 48.7 s | So a 24 GB and an 8 GB card of two generations die within 4 s of each other, on the same frame range (before 128), which agrees with your 3060 and the 4090 here: not memory size, not architecture. **What our log does not contain.** Neither the `host view heap capped at 1000000` line nor any `title slot past the host heap`. Our run-up is only: frame 128 presented (192/192 draws, 64/64 dispatches), then twice `a title texture was released while a list not yet reset names its host copy` (3840x2160 f28 and f19), `no host texture (0x80070057)` for a 2560x1440 **format 115** with flags 1, seven `large buffer copied to the host` (22-50 MB), three `an unordered view of a depth texture, made on its writable twin`, then: ``` host GPU device removed after a submission of 1 lists; no breadcrumbs (0x887A0004); device removed ... (0x887A0001) ``` That matters for triage: the removal arrives **without** the cap and the slots, so it is not downstream of the heap symptom — the two are independent, and #1832 is the whole of the removal. **What the debug layer says**, verbatim, on the same build and title: ``` ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM. ``` Same id/description as your 4090 measurement, one HAL earlier: the failing call is an allocation **query** on a UAV-flagged `B5G5R5A1_UNORM` (console format 86), so dropping the flag before the query (#1832) is the right place, and it has to be before the query because the device is already gone when it returns. Two smaller notes from reading the tree, not from a debugger: `twin.rs` cannot be the creator (`plane_formats()` only yields R32/R16/R8 and its scratch resource is a buffer), so the two candidates are `resource.rs::castable`/`castable_formats_share_the_element` (~1080, ~1945) and the host-creation path (~1191-1262), with `GetResourceAllocationInfo` at 801 and 1119 on descriptions that can already carry the flag. We also see the companion `no host texture … format 115` (`B4G4R4A4_UNORM`) on every run, which lines up with #1630 in the table above. Offering the same thing as the reporter: I can run a build with #1832 on this box, on both cards, and report whether the removal goes before the menus and what the cap/slot lines look like here (we do not produce them, which is itself a data point for #1779). No game data is involved: warnings, ids, timings and counts. Written with an AI assistant.
Author
Owner

@⁠SamuelGDMG on GitHub · 2026-11-25 02:12 UTC · original

Same issue here on 940d32f. It was actually working fine for me on earlier builds (reaching the world/cutscene without crashing), and now I'm getting the exact same chain every run.

Specs: Windows 11 (10.0.26200), Ryzen 5 5500, RTX 3050 8 GB, driver 610.88. Running diag build on 940d32f with --console series-s, VICTORY_D3D12_DEBUG=1, and VICTORY_D3D12_DRED=1 (Series 1.0.2.1, 0 missing imports).

I get the same three warnings in order:

  • "title slot past the host heap" (up to index=1245154)
  • "no host texture (0x80070057) ... width: 1280, height: 720, format: 115, flags: 1" (720p because of Series S mode)
  • Device removed around frame ~284 with 0x887A0001 and empty DRED breadcrumbs []

With the D3D12 debug layer on, I get the exact same message:
ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM.

Just adding another data point for an RTX 3050 in Series S mode. Happy to test #1832 + #1630 (and #1779 once rebased) too.

Written with an AI assistant.

**@⁠SamuelGDMG** on GitHub · 2026-11-25 02:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7150438820) Same issue here on 940d32f. It was actually working fine for me on earlier builds (reaching the world/cutscene without crashing), and now I'm getting the exact same chain every run. Specs: Windows 11 (10.0.26200), Ryzen 5 5500, RTX 3050 8 GB, driver 610.88. Running diag build on 940d32f with --console series-s, VICTORY_D3D12_DEBUG=1, and VICTORY_D3D12_DRED=1 (Series 1.0.2.1, 0 missing imports). I get the same three warnings in order: - "title slot past the host heap" (up to index=1245154) - "no host texture (0x80070057) ... width: 1280, height: 720, format: 115, flags: 1" (720p because of Series S mode) - Device removed around frame ~284 with 0x887A0001 and empty DRED breadcrumbs [] With the D3D12 debug layer on, I get the exact same message: ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM. Just adding another data point for an RTX 3050 in Series S mode. Happy to test #1832 + #1630 (and #1779 once rebased) too. Written with an AI assistant.
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-25 02:27 UTC · original

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

**@⁠DesertGamer** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7150751814) ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Author
Owner

@⁠Creaa on GitHub · 2026-11-25 03:15 UTC · original

RTX 4070: the same refusal and removal on main; each of #1832, #1763 and #1926 gets past it, and every one then stalls at the first in-engine cutscene.

Setup: RTX 4070 12 GB, driver 617.14, i7-13700F, 32 GB RAM, Windows 11 build 26300, release builds, translate --cache --pipelines done beforehand (23 057 pipelines made, 395 refused by the host). One run per build, 150 s each, no input.

On every build the same texture is refused about 26 s in: no host texture error=0x80070057, 2560×1440, format 115, flags 1.

build after the refusal later end
main 940d32f device removed 1 s later (DXGI_ERROR_INVALID_CALL) – 36 s
#1832 f1e53b8 runs on 30 fps on the splash and loading screens for ~80 s device hung at 113 s
#1763 50d91b1 runs on 30 fps for ~80 s, then 0.1 fps (about 10 s per frame) still running at 156 s (stopped by my timer)
#1926 644aed4 merged onto main 940d32f (it is 291 commits behind) runs on 30 fps for ~83 s, then 0.1 fps device hung at 146 s
  • So all three fix this issue's removal on this card.
  • The drop to 0.1 fps comes when the first in-engine cutscene should start: the screen is black, then grey, no 3D object is visible, and the sound plays in fragments. Whether a build then hangs the GPU or keeps crawling differed between runs, and with one run each I would not read anything into which one.
  • Throughout every run: 310 720 title slot past the host heap ... count=934464 warnings (the 1 000 000-descriptor cap, as in #1808).

The cargo test --workspace --locked --no-fail-fast result on main 940d32f on this card: 696 passed, 5 failed, 10 ignored; the failures are the four capped-heap ones of #1835 and emit::synthetic_tests::gathers_at_a_level_match_the_hardware.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the runs on my machine and drafted this comment; I checked it before posting.

**@⁠Creaa** on GitHub · 2026-11-25 03:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7151742715) **RTX 4070: the same refusal and removal on `main`; each of #1832, #1763 and #1926 gets past it, and every one then stalls at the first in-engine cutscene.** Setup: RTX 4070 12 GB, driver 617.14, i7-13700F, 32 GB RAM, Windows 11 build 26300, release builds, `translate --cache --pipelines` done beforehand (23 057 pipelines made, 395 refused by the host). One run per build, 150 s each, no input. On every build the same texture is refused about 26 s in: `no host texture error=0x80070057`, 2560×1440, format 115, flags 1. | build | after the refusal | later | end | |---|---|---|---| | `main` `940d32f` | device removed 1 s later (`DXGI_ERROR_INVALID_CALL`) | – | 36 s | | #1832 `f1e53b8` | runs on | 30 fps on the splash and loading screens for ~80 s | device hung at 113 s | | #1763 `50d91b1` | runs on | 30 fps for ~80 s, then 0.1 fps (about 10 s per frame) | still running at 156 s (stopped by my timer) | | #1926 `644aed4` merged onto `main` `940d32f` (it is 291 commits behind) | runs on | 30 fps for ~83 s, then 0.1 fps | device hung at 146 s | - So all three fix this issue's removal on this card. - The drop to 0.1 fps comes when the first in-engine cutscene should start: the screen is black, then grey, no 3D object is visible, and the sound plays in fragments. Whether a build then hangs the GPU or keeps crawling differed between runs, and with one run each I would not read anything into which one. - Throughout every run: 310 720 `title slot past the host heap ... count=934464` warnings (the 1 000 000-descriptor cap, as in #1808). The `cargo test --workspace --locked --no-fail-fast` result on `main` `940d32f` on this card: 696 passed, 5 failed, 10 ignored; the failures are the four capped-heap ones of #1835 and `emit::synthetic_tests::gathers_at_a_level_match_the_hardware`. AI use: Claude Code (Claude Opus 5.5) ran the builds and the runs on my machine and drafted this comment; I checked it before posting.
Author
Owner

@⁠SamuelGDMG on GitHub · 2026-11-25 03:42 UTC · original

Tested #1832 locally and it's working — it resolves the 0x887A0001 (DXGI_ERROR_INVALID_CALL) device removal on B5G5R5A1_UNORM and gets past the crash cleanly.

Specs: Windows 11 (10.0.26200), Ryzen 5 5500, RTX 3050 8 GB, driver 610.88. Running diag build on 940d32f with VICTORY_D3D12_DEBUG=1, and VICTORY_D3D12_DRED=1 (Series 1.0.2.1, 0 missing imports).

Written with an AI assistant.

**@⁠SamuelGDMG** on GitHub · 2026-11-25 03:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7152162650) Tested #1832 locally and it's working — it resolves the 0x887A0001 (DXGI_ERROR_INVALID_CALL) device removal on B5G5R5A1_UNORM and gets past the crash cleanly. Specs: Windows 11 (10.0.26200), Ryzen 5 5500, RTX 3050 8 GB, driver 610.88. Running diag build on [940d32f](https://github.com/Marvisak/VIctory/commit/940d32f69b22265690a0b5a15d6ded572ba33baf) with VICTORY_D3D12_DEBUG=1, and VICTORY_D3D12_DRED=1 (Series 1.0.2.1, 0 missing imports). Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 04:05 UTC · original

The three-fix chain still holds on today's main: 2,048 frames and 13,312 draws in 120 s, no removal

Updating the numbers I quoted here, which were measured on an older main before the page-marking and copy-back work landed. Same machine and scenario as always: session 1 (interactive desktop), RTX 4090, driver 32.0.16.2124, release build, empty cache, 120 s, main 940d32f plus #1630, #1832 and #1778:

device removed                          0
no host texture … 2560x1440 format 115  0
host texture made only as a fallback    1
dropping unordered access               2
host view heap capped at 1000000        1
frame=2048 draws=13312

So on today's tree: the removal is gone, the missing texture is gone, and the cap is still there — the cap is #1779's ground and nothing of the three touches it.

Two things this measurement is good for:

  • the chain did not regress with the page-marking work. I had measured 2,048 frames and 13,312 draws before that landed and the same numbers come back after it, which is the only comparison that can tell whether 20 files of new GPU bookkeeping changed what a boot does;
  • the pair matters: as I said in your report's thread, #1630 alone leaves the removal in place at frame 64 and only clears the texture. It takes #1630 and #1832 together for the session to get past that frame, which is why a build with only the ladder looks half-fixed.

What is not in these numbers, so nobody reads more into them than there is: 2,048 frames of this boot are the profile selector, the loading artwork and the legal notices, not the world. The run stops at the terms-of-service screen with the privacy box unticked, which is a title-side input matter rather than a GPU one, and I have not taken that further.

No game data is involved: counts, warnings and frame numbers.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 04:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7152527211) **The three-fix chain still holds on today's `main`: 2,048 frames and 13,312 draws in 120 s, no removal** Updating the numbers I quoted here, which were measured on an older `main` before the page-marking and copy-back work landed. Same machine and scenario as always: session 1 (interactive desktop), RTX 4090, driver `32.0.16.2124`, release build, empty cache, **120 s**, `main` `940d32f` plus #1630, #1832 and #1778: ``` device removed 0 no host texture … 2560x1440 format 115 0 host texture made only as a fallback 1 dropping unordered access 2 host view heap capped at 1000000 1 frame=2048 draws=13312 ``` So on today's tree: **the removal is gone, the missing texture is gone, and the cap is still there** — the cap is #1779's ground and nothing of the three touches it. Two things this measurement is good for: - **the chain did not regress with the page-marking work.** I had measured 2,048 frames and 13,312 draws before that landed and the same numbers come back after it, which is the only comparison that can tell whether 20 files of new GPU bookkeeping changed what a boot does; - **the pair matters**: as I said in your report's thread, #1630 alone leaves the removal in place at frame 64 and only clears the texture. It takes #1630 and #1832 together for the session to get past that frame, which is why a build with only the ladder looks half-fixed. What is *not* in these numbers, so nobody reads more into them than there is: 2,048 frames of this boot are the profile selector, the loading artwork and the legal notices, not the world. The run stops at the terms-of-service screen with the privacy box unticked, which is a title-side input matter rather than a GPU one, and I have not taken that further. No game data is involved: counts, warnings and frame numbers. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 09:00 UTC · original

The layer names the call that removes the device: an CreateRenderTargetView of B4G4R4A4_UNORM on a resource without ALLOW_RENDER_TARGET

I hit this on an RTX 4090 (32.0.16.2124) with the fixes for the format-115 texture applied (#1630 + #1832 + #1778), so the missing-1440p-texture half of this issue is gone and the removal still happens. With VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1, three consecutive messages at the same millisecond give the order:

WARN D3D12: ID3D12Device::CreateRenderTargetView: The format (0x73, B4G4R4A4_UNORM)
     cannot be used with a RenderTarget view because this particular graphics
     implementation doesn't support this                                    id=42
WARN D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the
     following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the
     application has performed an illegal or undefined operation …)         id=232
ERROR host GPU device removed after a submission of 1 lists; breadcrumbs (done/count,
     list) []; list 0 of 1, of its 12: dispatch 294x1x1 [compute 42f717f1b4d18e94]

and immediately after, the two follow-ups that look like consequences:

WARN D3D12: ID3D12Device::CreateRenderTargetView: A RenderTargetView cannot be created of
     a Resource that did not specify the RENDER_TARGET MiscFlag.            id=42
WARN victory_gpu::resource: no host texture … The GPU device instance has been suspended (0x887A0005)

So the chain is not "the texture is missing, then something undefined later": the render-target view creation is the illegal operation, and D3D12 answers it by removing the device. B4G4R4A4_UNORM is format 115, which NVIDIA does not allow as a render target at all — the same conclusion the RDNA-vs-NVIDIA thread reached from the other side (#1965's author reaches the lit world on an AMD card where that format is a target).

Two things this adds to the issue:

  • the failing call is a view creation, not an allocation, which is why the texture fixes did not end it: the resource is accepted and the view is what the driver refuses. A guard is therefore possible in the place where the view is made — CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT) without RENDER_TARGET (or without CAST_WITHIN_BIT_LAYOUT, depending on which refusal is hit first), skip the view instead of asking for it, and let the draw find a null target. That is the shape of #1832 for typed UAVs, and it belongs in the same place;
  • the breadcrumbs are empty because they are only written by our own markers, so "no breadcrumbs" in the earlier reports does not mean DRED found nothing: the layer found the call. Anyone reading this issue later should try the layer before believing the device was lost unbidden.

What I have not done: the guard itself. I found this while chasing the world — the run reaches the setup screens, and this removal is what ends it — and I would rather file the mechanism here with the exact call than leave a half-tested fix in a pull request. If nobody has it in hand, I will write it against CheckFeatureSupport next.

No game data is involved: a format number, an HRESULT and debug-layer text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 09:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7157760007) **The layer names the call that removes the device: an `CreateRenderTargetView` of `B4G4R4A4_UNORM` on a resource without `ALLOW_RENDER_TARGET`** I hit this on an RTX 4090 (`32.0.16.2124`) with the fixes for the format-115 texture applied (#1630 + #1832 + #1778), so the missing-1440p-texture half of this issue is gone and the removal still happens. With `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1`, three consecutive messages at the same millisecond give the order: ``` WARN D3D12: ID3D12Device::CreateRenderTargetView: The format (0x73, B4G4R4A4_UNORM) cannot be used with a RenderTarget view because this particular graphics implementation doesn't support this id=42 WARN D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the application has performed an illegal or undefined operation …) id=232 ERROR host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []; list 0 of 1, of its 12: dispatch 294x1x1 [compute 42f717f1b4d18e94] ``` and immediately after, the two follow-ups that look like consequences: ``` WARN D3D12: ID3D12Device::CreateRenderTargetView: A RenderTargetView cannot be created of a Resource that did not specify the RENDER_TARGET MiscFlag. id=42 WARN victory_gpu::resource: no host texture … The GPU device instance has been suspended (0x887A0005) ``` So the chain is not "the texture is missing, then something undefined later": **the render-target view creation is the illegal operation**, and D3D12 answers it by removing the device. `B4G4R4A4_UNORM` is format 115, which NVIDIA does not allow as a render target at all — the same conclusion the RDNA-vs-NVIDIA thread reached from the other side (#1965's author reaches the lit world on an AMD card where that format *is* a target). Two things this adds to the issue: - **the failing call is a view creation, not an allocation**, which is why the texture fixes did not end it: the resource is accepted and the *view* is what the driver refuses. A guard is therefore possible in the place where the view is made — `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)` without `RENDER_TARGET` (or without `CAST_WITHIN_BIT_LAYOUT`, depending on which refusal is hit first), skip the view instead of asking for it, and let the draw find a null target. That is the shape of #1832 for typed UAVs, and it belongs in the same place; - **the breadcrumbs are empty** because they are only written by our own markers, so "no breadcrumbs" in the earlier reports does not mean DRED found nothing: the *layer* found the call. Anyone reading this issue later should try the layer before believing the device was lost unbidden. What I have not done: the guard itself. I found this while chasing the world — the run reaches the setup screens, and this removal is what ends it — and I would rather file the mechanism here with the exact call than leave a half-tested fix in a pull request. If nobody has it in hand, I will write it against `CheckFeatureSupport` next. No game data is involved: a format number, an HRESULT and debug-layer text. Written with an AI assistant.
Author
Owner

@⁠JinzoR6 on GitHub · 2026-11-25 09:19 UTC · original

I used chatgpt to write up this report after giving it the details because i do not fully understand this but thought my data could help

RTX 5070: GPU device removal after format-115 texture refusal — driver 621.40

Environment

  • GPU: NVIDIA GeForce RTX 5070
  • NVIDIA driver: 621.40
  • CPU: AMD Ryzen 5 5600
  • RAM: 16 GB
  • OS: Windows 11, build 10.0.26300
  • Game: Xbox Series X version 1.0.2.1
  • VIctory commit: 940d32f
  • Build: Release

Shader and pipeline preparation

The shader and pipeline translation stage completed before launching the game.

  • 25,985 shaders processed
  • Approximately 1.347 GB of shader cache generated
  • 28,164 pipelines in the pipeline pack
  • 23,057 pipelines created
  • 3,607 pipelines already available in the library
  • 1,500 pipelines skipped

The cache was successfully generated, and the game proceeded to runtime execution.

Runtime behaviour

The game starts rendering, but eventually encounters a host GPU failure before reaching the menu or entering the world.

1. Descriptor heap warnings

The host repeatedly reports title descriptor slots exceeding its available heap:

  • Host heap count: 934464
  • Observed title slot indices: 1245174 onward
  • Difference between the first reported index and heap count: 310710

The warnings occur repeatedly during startup.

2. Initial rendering

The game does successfully present frames:

  • Frame 2: 4 draws
  • Frame 4: 6 draws
  • Frame 8: 12 draws
  • Frame 16: 24 draws
  • Frame 32: 45 draws and compute activity
  • Frame 64: 99 draws and 33 dispatches

The first reported host frame takes approximately 10.35 seconds, with most of that time spent preparing resources and copies.

3. Texture creation failure

At approximately 22:12:55.570Z, the host refuses a texture with these properties:

  • Resolution: 2560 × 1440
  • Format: 115
  • Flags: 1
  • HRESULT: 0x80070057 — The parameter is incorrect.

Both the castable-format attempt and the fallback host texture creation fail.

4. GPU device removal

At approximately 22:12:56.556Z, the GPU device is removed after a command-list submission.

The reported errors are:

  • 0x887A0004 — The specified device interface or feature level is not supported.
  • 0x887A0001 — The application made an invalid call.

The log reports no DRED breadcrumbs and explicitly recommends enabling the D3D12 debug layer to identify the failing command.

Result

The RTX 5070 can execute the initial rendering workload and present frames, but the run consistently reaches a GPU failure before the game becomes playable.

Updating the NVIDIA driver to 621.40 did not resolve the observed failure.

The main symptoms are:

  1. Title descriptor slots exceeding the host heap limit.
  2. Refusal to create the 2560 × 1440 format-115 texture.
  3. Subsequent D3D12 GPU device removal.

I have not yet tested a diagnostic build with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1, so the exact failing D3D12 command is not confirmed.

I'm available to test maintainer-recommended fixes or diagnostic builds on the RTX 5070.

No game files, screenshots, shader dumps, or raw logs are attached.

**@⁠JinzoR6** on GitHub · 2026-11-25 09:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7158174658) I used chatgpt to write up this report after giving it the details because i do not fully understand this but thought my data could help # RTX 5070: GPU device removal after format-115 texture refusal — driver 621.40 ## Environment - GPU: NVIDIA GeForce RTX 5070 - NVIDIA driver: 621.40 - CPU: AMD Ryzen 5 5600 - RAM: 16 GB - OS: Windows 11, build 10.0.26300 - Game: Xbox Series X version 1.0.2.1 - VIctory commit: `940d32f` - Build: Release ## Shader and pipeline preparation The shader and pipeline translation stage completed before launching the game. - 25,985 shaders processed - Approximately 1.347 GB of shader cache generated - 28,164 pipelines in the pipeline pack - 23,057 pipelines created - 3,607 pipelines already available in the library - 1,500 pipelines skipped The cache was successfully generated, and the game proceeded to runtime execution. ## Runtime behaviour The game starts rendering, but eventually encounters a host GPU failure before reaching the menu or entering the world. ### 1. Descriptor heap warnings The host repeatedly reports title descriptor slots exceeding its available heap: - Host heap count: `934464` - Observed title slot indices: `1245174` onward - Difference between the first reported index and heap count: `310710` The warnings occur repeatedly during startup. ### 2. Initial rendering The game does successfully present frames: - Frame 2: 4 draws - Frame 4: 6 draws - Frame 8: 12 draws - Frame 16: 24 draws - Frame 32: 45 draws and compute activity - Frame 64: 99 draws and 33 dispatches The first reported host frame takes approximately 10.35 seconds, with most of that time spent preparing resources and copies. ### 3. Texture creation failure At approximately `22:12:55.570Z`, the host refuses a texture with these properties: - Resolution: 2560 × 1440 - Format: 115 - Flags: 1 - HRESULT: `0x80070057` — The parameter is incorrect. Both the castable-format attempt and the fallback host texture creation fail. ### 4. GPU device removal At approximately `22:12:56.556Z`, the GPU device is removed after a command-list submission. The reported errors are: - `0x887A0004` — The specified device interface or feature level is not supported. - `0x887A0001` — The application made an invalid call. The log reports no DRED breadcrumbs and explicitly recommends enabling the D3D12 debug layer to identify the failing command. ## Result The RTX 5070 can execute the initial rendering workload and present frames, but the run consistently reaches a GPU failure before the game becomes playable. Updating the NVIDIA driver to **621.40** did not resolve the observed failure. The main symptoms are: 1. Title descriptor slots exceeding the host heap limit. 2. Refusal to create the 2560 × 1440 format-115 texture. 3. Subsequent D3D12 GPU device removal. I have not yet tested a diagnostic build with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1`, so the exact failing D3D12 command is not confirmed. I'm available to test maintainer-recommended fixes or diagnostic builds on the RTX 5070. No game files, screenshots, shader dumps, or raw logs are attached.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 09:34 UTC · original

Correction to my own suggestion: CheckFeatureSupport says format 115 is a render target, so a query-based guard would not have caught this

I said in my previous comment that the place for the guard is CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT) without RENDER_TARGET, "the shape of #1832 for typed UAVs". I wrote that guard, it compiles, its test passes — and it does nothing for this case. Measured, on the same RTX 4090 (32.0.16.2124) that removed the device:

format  28 (R8G8B8A8_UNORM):     Support1=0x33fcd3f3   RENDER_TARGET=true
format 115 (B4G4R4A4_UNORM):     Support1=0x2e4d3f0    RENDER_TARGET=true   ← the query says yes
format  71 (BC1_UNORM):          Support1=0x9013e0     RENDER_TARGET=false

The driver reports D3D12_FORMAT_SUPPORT1_RENDER_TARGET for B4G4R4A4_UNORM and then refuses CreateRenderTargetView of it anyway — the same layer that prints "cannot be used with a RenderTarget view because this particular graphics implementation doesn't support this". So the support query and the view creation disagree, and the query is the one we cannot use.

I caught it before publishing it because the guard logged nothing: I had added a null view warning on the fallback path, and a run with the guard came out with zero such lines. A guard that never fires while the crash is gone looks like a fix and is not one — the run simply took a path that did not ask for the 115 target that time. (That also tells me the crash is not deterministic: the same build reached 8,192 frames with the layer on, where a previous one died at 1,024.)

So the design has to change, and here is what I would do instead, in order of how much I trust it:

  1. vendor-aware refusal: keep the view of that format off when the adapter is NVIDIA and the format is one it refuses while claiming support — B4G4R4A4_UNORM today, with the layer text as the evidence. Host does not keep the vendor id yet (it is only read in warp_adapter for a diagnostic), so the change is: store VendorId on Host, and refuse by (vendor, format) in rtv;
  2. do not refuse it on AMD, where that format is a target — this is the card on which the other thread reaches the lit world, and a blanket refusal would take away a working target;
  3. and keep the query for the formats it does answer honestly (BC1 and friends), so the two mechanisms complement each other rather than replacing each other.

What I have not done: that change. I withdrew the branch with the query-based guard instead of opening a pull request that would not act on the case it was written for — a no-op with a green check is worse than no pull request, because it makes the issue look addressed.

If someone is already on VendorId in Host for another reason, this becomes a ten-line change and I will take it; if not, I will write it next, with the run that crashed as the measurement.

No game data is involved: format numbers, support masks and debug-layer text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 09:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7158516609) **Correction to my own suggestion: `CheckFeatureSupport` says format 115 *is* a render target, so a query-based guard would not have caught this** I said in my previous comment that the place for the guard is `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)` without `RENDER_TARGET`, "the shape of #1832 for typed UAVs". I wrote that guard, it compiles, its test passes — and **it does nothing for this case**. Measured, on the same RTX 4090 (`32.0.16.2124`) that removed the device: ``` format 28 (R8G8B8A8_UNORM): Support1=0x33fcd3f3 RENDER_TARGET=true format 115 (B4G4R4A4_UNORM): Support1=0x2e4d3f0 RENDER_TARGET=true ← the query says yes format 71 (BC1_UNORM): Support1=0x9013e0 RENDER_TARGET=false ``` The driver reports `D3D12_FORMAT_SUPPORT1_RENDER_TARGET` for `B4G4R4A4_UNORM` and then refuses `CreateRenderTargetView` of it anyway — the same layer that prints "cannot be used with a RenderTarget view because this particular graphics implementation doesn't support this". So the support query and the view creation **disagree**, and the query is the one we cannot use. I caught it before publishing it because the guard logged nothing: I had added a `null view` warning on the fallback path, and a run with the guard came out with **zero** such lines. A guard that never fires while the crash is gone looks like a fix and is not one — the run simply took a path that did not ask for the 115 target that time. (That also tells me the crash is **not deterministic**: the same build reached 8,192 frames with the layer on, where a previous one died at 1,024.) So the design has to change, and here is what I would do instead, in order of how much I trust it: 1. **vendor-aware refusal**: keep the view of that format off when the adapter is NVIDIA and the format is one it refuses while claiming support — `B4G4R4A4_UNORM` today, with the layer text as the evidence. `Host` does not keep the vendor id yet (it is only read in `warp_adapter` for a diagnostic), so the change is: store `VendorId` on `Host`, and refuse by (vendor, format) in `rtv`; 2. **do not refuse it on AMD**, where that format *is* a target — this is the card on which the other thread reaches the lit world, and a blanket refusal would take away a working target; 3. and keep the query for the formats it does answer honestly (BC1 and friends), so the two mechanisms complement each other rather than replacing each other. What I have not done: that change. I withdrew the branch with the query-based guard instead of opening a pull request that would not act on the case it was written for — a no-op with a green check is worse than no pull request, because it makes the issue look addressed. If someone is already on `VendorId` in `Host` for another reason, this becomes a ten-line change and I will take it; if not, I will write it next, with the run that crashed as the measurement. No game data is involved: format numbers, support masks and debug-layer text. Written with an AI assistant.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-25 09:52 UTC · original

A data point for the vendor-aware design: the query's answer for format 115 differs between NVIDIA generations.

fxceless/victory-fork has a query guard of this shape (resource::target_format): it takes 8-bit RGBA in place of B5G5R5A1 (86) and B4G4R4A4 (115) when CheckFeatureSupport lacks either D3D12_FORMAT_SUPPORT1_RENDER_TARGET or D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW. On an RTX 2080 (Turing) it fires for both formats:

INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=115
INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=86

Your 4090 mask for 115 (0x2e4d3f0) has both bits set (RENDER_TARGET is 0x4000, TYPED_UNORDERED_ACCESS_VIEW is 0x2000000). So the same guard would pass it there, and the query alone can't be trusted on newer cards. That supports keeping a (vendor, format) refusal next to the query, as you propose.

**@⁠NuraadGit** on GitHub · 2026-11-25 09:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7158920775) A data point for the vendor-aware design: the query's answer for format 115 differs between NVIDIA generations. fxceless/victory-fork has a query guard of this shape (`resource::target_format`): it takes 8-bit RGBA in place of B5G5R5A1 (86) and B4G4R4A4 (115) when `CheckFeatureSupport` lacks either `D3D12_FORMAT_SUPPORT1_RENDER_TARGET` or `D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW`. On an RTX 2080 (Turing) it fires for both formats: ``` INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=115 INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=86 ``` Your 4090 mask for 115 (`0x2e4d3f0`) has both bits set (RENDER_TARGET is 0x4000, TYPED_UNORDERED_ACCESS_VIEW is 0x2000000). So the same guard would pass it there, and the query alone can't be trusted on newer cards. That supports keeping a (vendor, format) refusal next to the query, as you propose.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 10:27 UTC · original

Where the format comes from, in code: pc_format has no stand-in for 115, so the host receives it unchanged

I traced the 1440p target back to the mapping that decides what the host is asked for. host_desc in crates/victory-gpu/src/resource.rs ends with:

d.format = pc_format(d.format);

and pc_format maps only three console formats to a PC stand-in:

pub(crate) fn pc_format(format: u32) -> u32 {
    match format {
        118 => 45,
        119 => 46,
        120 => 47,   // the console's 16-bit depth with stencil
        other => other,
    }
}

Format 115 is not one of them, so B4G4R4A4_UNORM is asked for by number, and NVIDIA answers the view creation with "this particular graphics implementation doesn't support this" — the illegal call in my previous comment. The console's 2-byte packed formats (85, 86, 115) are exactly the ones with no stand-in here, which is the same list #904 names as "missing pc_format fallbacks (85/86/115, 67)".

Why this is not a one-line addition, and I would rather write it down than have someone try: a stand-in changes the element size. element(115) is 2 bytes per texel; the obvious PC stand-ins for a packed 4-bit colour target are R8G8_UNORM (49, 2 bytes but half the channels) or R8G8B8A8_UNORM (28, twice the bytes). Either one changes the host texture's footprint and every copy between title memory and host memory for that resource, which is the same problem the texture ladder in #1630 solves for the other formats — so the fix belongs with that machinery, not as a table row.

What can be done cheaply, and what my #2305 does, is keep the device alive: refuse the view of a format the driver refuses, and let the draw go to a null target. That converts a removed device into a missing target, which is progress for the run and not a fix for the picture — a 1440p render target that goes nowhere is a candidate explanation for the black world the operator reports after the intro (audio and subtitles, no image; the black-world issues #904, #1119, #850).

So the order I would land things in: (1) something that stops the device removal, so runs survive long enough to be diagnosed — #2305; (2) a real stand-in format for 115 (and probably 85/86) through the ladder, so the target exists and renders — that is the picture fix, and it needs the memory-sizing work.

I have not written (2). If someone is already in pc_format for 85/86, coordinate here before I do, because the design questions (which stand-in, how the copy sizes change) are the same for all three formats.

No game data is involved: format numbers and source excerpts.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 10:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7159729340) **Where the format comes from, in code: `pc_format` has no stand-in for 115, so the host receives it unchanged** I traced the 1440p target back to the mapping that decides what the host is asked for. `host_desc` in `crates/victory-gpu/src/resource.rs` ends with: ```rust d.format = pc_format(d.format); ``` and `pc_format` maps **only three** console formats to a PC stand-in: ```rust pub(crate) fn pc_format(format: u32) -> u32 { match format { 118 => 45, 119 => 46, 120 => 47, // the console's 16-bit depth with stencil other => other, } } ``` Format 115 is not one of them, so `B4G4R4A4_UNORM` is asked for by number, and NVIDIA answers the view creation with "this particular graphics implementation doesn't support this" — the illegal call in my previous comment. The console's 2-byte packed formats (85, 86, 115) are exactly the ones with no stand-in here, which is the same list #904 names as "missing pc_format fallbacks (85/86/115, 67)". **Why this is not a one-line addition**, and I would rather write it down than have someone try: a stand-in changes the element size. `element(115)` is 2 bytes per texel; the obvious PC stand-ins for a packed 4-bit colour target are `R8G8_UNORM` (49, 2 bytes but half the channels) or `R8G8B8A8_UNORM` (28, twice the bytes). Either one changes the host texture's footprint and every copy between title memory and host memory for that resource, which is the same problem the texture ladder in #1630 solves for the other formats — so the fix belongs with that machinery, not as a table row. What can be done cheaply, and what my #2305 does, is **keep the device alive**: refuse the view of a format the driver refuses, and let the draw go to a null target. That converts a removed device into a missing target, which is progress for the run and **not** a fix for the picture — a 1440p render target that goes nowhere is a candidate explanation for the black world the operator reports after the intro (audio and subtitles, no image; the black-world issues #904, #1119, #850). So the order I would land things in: (1) something that stops the device removal, so runs survive long enough to be diagnosed — #2305; (2) a real stand-in format for 115 (and probably 85/86) through the ladder, so the target exists and renders — that is the picture fix, and it needs the memory-sizing work. I have not written (2). If someone is already in `pc_format` for 85/86, coordinate here before I do, because the design questions (which stand-in, how the copy sizes change) are the same for all three formats. No game data is involved: format numbers and source excerpts. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 10:35 UTC · original

The support query cannot tell a good stand-in from the refused format: all five report "render target"

Before writing the stand-in for format 115, I tried to find which 2-byte format this host accepts as a target, so the stand-in could be chosen by measurement rather than by guessing. The query answers "yes" to everything:

format  49 (R8G8_UNORM):       Support1=0x2f4d3f3   destino=true  muestreo=true
format  85 (B5G6R5_UNORM):     Support1=0x2e4d3f0   destino=true  muestreo=true
format  86 (B5G5R5A1_UNORM):   Support1=0x2e4d3f0   destino=true  muestreo=true
format 115 (B4G4R4A4_UNORM):   Support1=0x2e4d3f0   destino=true  muestreo=true   ← refused on creation
format  28 (R8G8B8A8_UNORM):   Support1=0x33fcd3f3  destino=true  muestreo=true

RTX 4090, 32.0.16.2124, CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT). So CheckFeatureSupport says 115 is a target and CreateRenderTargetView refuses it: the only way to know whether a stand-in works is to create the view and see, which means a GPU test that creates one — not a table populated from the query.

That also decides the shape of the fix, and it is the part I would get wrong if I rushed it:

  • a stand-in must be applied to the resource, not only to the target view. If a 1440p target is made as B5G5R5A1_UNORM (86) and the title's later sampling views still say 115, the mismatch has not gone away — it has moved to whichever call creates the sampling view;
  • so pc_format needs a mapping that is used by every path that names the format (host_desc, view_format, the descriptor tables, the pipeline's format), which is what the existing 118/119/120 mapping already does — and that is why adding 115 there is the clean change, with the element-size question: 115 and 86 are both 2 bytes per texel, so the ladder and the copies keep their sizes. R8G8B8A8_UNORM (4 bytes, the other candidate) would not: it doubles the footprint and every copy of that resource.

That narrows it to 115 → 86: same element size, four channels, and a format PC takes as a target. The cost is a reinterpretation — the title writes 4-4-4-4 and reads 5-5-5-1 — so the picture can be colour-shifted, but it exists, which is the difference between a black world and a wrong-coloured one. If 86 is refused by some other vendor, 85 (B5G6R5, 3 channels) is the next candidate, and the same GPU test tells us.

What I did not do yet: write it. Two things I want in place first — a GPU test that creates a committed 86 target and its view (so the choice is measured, not assumed), and a decision with whoever owns the format table about whether 85/86 need the same treatment for the reasons in #904.

No game data is involved: format numbers and support masks.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 10:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7159907501) **The support query cannot tell a good stand-in from the refused format: all five report "render target"** Before writing the stand-in for format 115, I tried to find which 2-byte format this host accepts as a target, so the stand-in could be chosen by measurement rather than by guessing. The query answers "yes" to everything: ``` format 49 (R8G8_UNORM): Support1=0x2f4d3f3 destino=true muestreo=true format 85 (B5G6R5_UNORM): Support1=0x2e4d3f0 destino=true muestreo=true format 86 (B5G5R5A1_UNORM): Support1=0x2e4d3f0 destino=true muestreo=true format 115 (B4G4R4A4_UNORM): Support1=0x2e4d3f0 destino=true muestreo=true ← refused on creation format 28 (R8G8B8A8_UNORM): Support1=0x33fcd3f3 destino=true muestreo=true ``` RTX 4090, `32.0.16.2124`, `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)`. So `CheckFeatureSupport` says 115 is a target and `CreateRenderTargetView` refuses it: **the only way to know whether a stand-in works is to create the view and see**, which means a GPU test that creates one — not a table populated from the query. That also decides the shape of the fix, and it is the part I would get wrong if I rushed it: - a stand-in must be applied **to the resource, not only to the target view**. If a 1440p target is made as `B5G5R5A1_UNORM` (86) and the title's later sampling views still say 115, the mismatch has not gone away — it has moved to whichever call creates the sampling view; - so `pc_format` needs a mapping that is used by **every** path that names the format (`host_desc`, `view_format`, the descriptor tables, the pipeline's format), which is what the existing 118/119/120 mapping already does — and that is why adding 115 there is the clean change, with the element-size question: 115 and 86 are both **2 bytes per texel**, so the ladder and the copies keep their sizes. `R8G8B8A8_UNORM` (4 bytes, the other candidate) would *not*: it doubles the footprint and every copy of that resource. That narrows it to `115 → 86`: same element size, four channels, and a format PC takes as a target. The cost is a reinterpretation — the title writes 4-4-4-4 and reads 5-5-5-1 — so the picture can be colour-shifted, but it exists, which is the difference between a black world and a wrong-coloured one. If 86 is refused by some other vendor, 85 (`B5G6R5`, 3 channels) is the next candidate, and the same GPU test tells us. What I did **not** do yet: write it. Two things I want in place first — a GPU test that *creates* a committed 86 target and its view (so the choice is measured, not assumed), and a decision with whoever owns the format table about whether 85/86 need the same treatment for the reasons in #904. No game data is involved: format numbers and support masks. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 11:03 UTC · original

With the stand-in for 115 the invalid call is gone, and what is left is a hang — a different failure, at a different place

I ran the same chain with #2332 (pc_format(115) = 86), #1630, #1832 and #1778, --profile diag, session 1, RTX 4090 32.0.16.2124, empty cache, real keystrokes with the window kept in the foreground. The run reached frame 1,024 and died, but not the way the previous ones did:

host GPU device removed after a submission of 16 lists; no breadcrumbs
    (The specified device interface or feature level is not supported on this system. (0x887A0004));
    device removed: The GPU will not respond to more commands, most likely because of an
    invalid command passed by the calling application. (0x887A0006)

0x887A0004 is DXGI_ERROR_UNSUPPORTED and 0x887A0006 is DXGI_ERROR_DEVICE_HUNG. Against the earlier report of the same build family:

before #2332 with #2332
no host texture (the 2560×1440 format-115 target) 1 0
illegal call at CreateRenderTargetView yes gone
the removal it caused (DXGI_ERROR_INVALID_CALL) yes gone
what ends the run now — a hang (DEVICE_HUNG), after 16 lists

So the stand-in does what it says — the target exists, the illegal call is gone — and the failure has moved: it is now a hang, which is a different bug with a different next step, the debug layer on the submission of those 16 lists (and DRED for the breadcrumbs, since none were recorded).

I should also record the operator's observation from the same window, because it is the other half of the picture and it is bad news: the world still does not draw for them — after the intro it stays on the text with a black screen. That is the picture problem, and the format stand-in does not fix it: colours through a null or reinterpreted target can be black, and the world's own targets may be failing for reasons this change does not touch.

Two things I am not claiming:

  • that #2332 makes the world render — it does not appear to;
  • that the hang is caused by #2332. A hang that only appears once the illegal call stops is consistent with the invalid call having been hiding the hang, which is what a crash does. The measurement that settles it is the layer on the hung submission with and without the stand-in, and I have not run the "without" half.

Where I would go next, in order: the layer and DRED on that 16-list submission (name the hung command, or find that it is a long dispatch), then the black world with the world frames captured — the capture hook already writes a frame at every power of two, so a run that reaches the world keeps a file of it, and a mean luminance of 0 on that file is the evidence that separates "black" from "slow".

No game data is involved: HRESULTs, counts and log text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 11:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7160539738) **With the stand-in for 115 the invalid call is gone, and what is left is a hang — a different failure, at a different place** I ran the same chain with #2332 (`pc_format(115) = 86`), #1630, #1832 and #1778, `--profile diag`, session 1, RTX 4090 `32.0.16.2124`, empty cache, real keystrokes with the window kept in the foreground. The run reached frame 1,024 and died, but **not** the way the previous ones did: ``` host GPU device removed after a submission of 16 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006) ``` `0x887A0004` is `DXGI_ERROR_UNSUPPORTED` and `0x887A0006` is `DXGI_ERROR_DEVICE_HUNG`. Against the earlier report of the same build family: | | before #2332 | with #2332 | |---|---|---| | `no host texture` (the 2560×1440 format-115 target) | 1 | **0** | | illegal call at `CreateRenderTargetView` | yes | **gone** | | the removal it caused (`DXGI_ERROR_INVALID_CALL`) | yes | **gone** | | what ends the run now | — | **a hang** (`DEVICE_HUNG`), after 16 lists | So the stand-in does what it says — the target exists, the illegal call is gone — and the failure has moved: it is now a **hang**, which is a different bug with a different next step, the debug layer on the submission of those 16 lists (and DRED for the breadcrumbs, since none were recorded). I should also record the operator's observation from the same window, because it is the other half of the picture and it is bad news: **the world still does not draw** for them — after the intro it stays on the text with a black screen. That is the picture problem, and the format stand-in does not fix it: colours through a null or reinterpreted target can be black, and the world's own targets may be failing for reasons this change does not touch. Two things I am **not** claiming: - that #2332 makes the world render — it does not appear to; - that the hang is caused by #2332. A hang that only appears once the illegal call stops is consistent with the invalid call having been *hiding* the hang, which is what a crash does. The measurement that settles it is the layer on the hung submission with and without the stand-in, and I have not run the "without" half. Where I would go next, in order: the layer and DRED on that 16-list submission (name the hung command, or find that it is a long dispatch), then the black world with the world frames captured — the capture hook already writes a frame at every power of two, so a run that reaches the world keeps a file of it, and a mean luminance of 0 on that file is the evidence that separates "black" from "slow". No game data is involved: HRESULTs, counts and log text. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 11:39 UTC · original

The failure follows the keyboard-driven flow, and it is a device hang right after a 5.25 s pipeline submission — the TDR budgets on this machine were unset

Three runs in a row with real keystrokes (SendInput, window kept in the foreground) died at frame 1,024; two runs of the same build without keys reached 8,192 and 16,384 frames. Whatever this is, it is not a fixed frame number — it correlates with the title taking the interactive path.

What the last of those runs says, in order:

INFO  victory_gpu::pipeline::host: host pipeline shaders=[compute 7ec32976ba4a1227]
WARN  victory_gpu::host: slow host submission ms=5250 lists=12 pipelines={"[compute 00e6aef268b1ef81]", …}
ERROR victory_gpu::host: host GPU device removed after a submission of 12 lists; no breadcrumbs
      (The specified device interface or feature level is not supported (0x887A0004));
      device removed: The GPU will not respond to more commands … (0x887A0006)

A submission of twelve compute pipeline creations took 5,250 ms, then the GPU is hung. Three observations that go together:

  • this machine's TDR values were unset (TdrLevel, TdrDelay, TdrDdiDelay all absent), so Windows used its defaults: 2 s for the GPU and 5 s for a driver call;
  • 5,250 ms is past the 5 s driver-call budget and well past the 2 s GPU budget — which is what 0x887A0006 (DXGI_ERROR_DEVICE_HUNG) means;
  • the runtime's own read of those values says so, and it is the first line in the log that names the subject:
INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=60 ddi_delay=60

I set TdrDelay and TdrDdiDelay to 60 and re-ran — and it failed at frame 1,024 again, because Windows applies these values from the driver at boot: writing them is not enough without a reboot, and I have not rebooted this machine. So the hypothesis is untested, not disproved. The next run after a reboot settles it, and I would rather leave it there than present a correlation as a cause.

Two consequences for whoever reads this:

  • if it is the TDR budget, the fix is not in the repository: it is a machine setting, and this is exactly the "slow frames" case tdr.rs describes ("raising TdrDelay is what gives slow frames room"). It may deserve a sentence in that module about TdrDdiDelay specifically, since pipeline creation is a driver call, not a frame;
  • if it is not the budget, then the number to chase is the 5,250 ms: twelve compute pipelines that take five seconds to compile are worth naming individually, and the log already lists their hashes.

And the picture, separately: the black world is still black — the operator reports it from the interactive path, and none of my runs reached the world long enough to contradict that. The two problems are now clearly different ones: a hang on pipeline creation (this note) and a world that does not draw (the capture at every power of two is the file that will say whether it is black or just slow).

No game data is involved: HRESULTs, timings, counts and log text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 11:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7161322239) **The failure follows the keyboard-driven flow, and it is a device hang right after a 5.25 s pipeline submission — the TDR budgets on this machine were unset** Three runs in a row with real keystrokes (`SendInput`, window kept in the foreground) died at **frame 1,024**; two runs of the same build **without** keys reached 8,192 and 16,384 frames. Whatever this is, it is not a fixed frame number — it correlates with the title taking the interactive path. What the last of those runs says, in order: ``` INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 7ec32976ba4a1227] WARN victory_gpu::host: slow host submission ms=5250 lists=12 pipelines={"[compute 00e6aef268b1ef81]", …} ERROR victory_gpu::host: host GPU device removed after a submission of 12 lists; no breadcrumbs (The specified device interface or feature level is not supported (0x887A0004)); device removed: The GPU will not respond to more commands … (0x887A0006) ``` **A submission of twelve compute pipeline creations took 5,250 ms, then the GPU is hung.** Three observations that go together: - this machine's TDR values were **unset** (`TdrLevel`, `TdrDelay`, `TdrDdiDelay` all absent), so Windows used its defaults: **2 s** for the GPU and **5 s** for a driver call; - 5,250 ms is past the 5 s driver-call budget and well past the 2 s GPU budget — which is what `0x887A0006` (`DXGI_ERROR_DEVICE_HUNG`) means; - the runtime's own read of those values says so, and it is the first line in the log that names the subject: ``` INFO victory_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=60 ddi_delay=60 ``` I set `TdrDelay` and `TdrDdiDelay` to 60 and re-ran — **and it failed at frame 1,024 again**, because **Windows applies these values from the driver at boot**: writing them is not enough without a reboot, and I have not rebooted this machine. So the hypothesis is **untested**, not disproved. The next run after a reboot settles it, and I would rather leave it there than present a correlation as a cause. Two consequences for whoever reads this: - if it is the TDR budget, the fix is **not in the repository**: it is a machine setting, and this is exactly the "slow frames" case `tdr.rs` describes ("raising `TdrDelay` is what gives slow frames room"). It may deserve a sentence in that module about **`TdrDdiDelay`** specifically, since pipeline creation is a driver *call*, not a frame; - if it is not the budget, then the number to chase is the 5,250 ms: twelve compute pipelines that take five seconds to compile are worth naming individually, and the log already lists their hashes. And the picture, separately: the black world is still black — the operator reports it from the interactive path, and none of my runs reached the world long enough to contradict that. The two problems are now clearly different ones: a hang on pipeline creation (this note) and a world that does not draw (the capture at every power of two is the file that will say whether it is black or just slow). No game data is involved: HRESULTs, timings, counts and log text. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 12:03 UTC · original

DRED answered, and its answer is not a hang: every listed list is marked done, and every marker is unnamed

Two runs of the same build and scenario differ only in what is enabled, and between them they settle what the failure is not:

run layer DRED keys outcome
fast — — yes died at frame 1,024 (0x887A0004/0x887A0006)
slow on on yes frame 16,384, no failure at all
fast — on yes died at frame 2,048, with breadcrumbs

So the debug layer does not help here: slowing the run down makes the failure disappear, which is the signature of a timing-sensitive fault rather than a deterministic bad call. DRED alone does not slow anything, and it produced the data:

host GPU device removed after a submission of 20 lists; breadcrumbs (done/count, list)
    ["2/2 None", "2/2 None", … "27/27 None", "2/2 None", …]

Two things to read there, and both are useful:

  • done == count on every list — the GPU finished every command list in that submission. If it had been a hang inside a list (a pathological dispatch or a loop), at least one list would show done < count. It does not, so the TDR-reading of the earlier 0x887A0006 is now the weaker explanation, and the "invalid operation during a completed list" reading is the stronger one — the same shape as the CreateRenderTargetView case, where the removal came from a call rather than from a stall;
  • every marker is None — our breadcrumbs are set, but unnamed. That is why the report cannot say which list or which pass was in flight: DRED gives us the counters and we are not giving it the names.

The next step that pays for itself: give the markers names — the command list and the passes recorded into it (draw/dispatch and the pipeline's hash) — so the breadcrumb line reads 27/27 "frame 4096 draw 3 [compute 7ec32976ba4a1227]" instead of None. That is a diagnostics change, not a fix, and it converts every future device removal from "twenty lists, no idea" into a named suspect. I would do that before another diagnostic run: two sessions have now ended with breadcrumbs that were collected and useless.

I have not written it yet, and I am aware that this is the third measurement in a row that ends in "we need one more instrument". The instruments so far were worth it — each one ruled something out — but the pattern is clear, and the naming is the last one I would add before going back to trying fixes.

No game data is involved: counts, HRESULTs and marker text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 12:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7161859541) **DRED answered, and its answer is not a hang: every listed list is marked done, and every marker is unnamed** Two runs of the same build and scenario differ only in what is enabled, and between them they settle what the failure is *not*: | run | layer | DRED | keys | outcome | |---|---|---|---|---| | fast | — | — | yes | died at frame 1,024 (`0x887A0004`/`0x887A0006`) | | slow | on | on | yes | **frame 16,384, no failure at all** | | fast | — | **on** | yes | died at frame 2,048, **with breadcrumbs** | So the debug layer does not help here: slowing the run down makes the failure disappear, which is the signature of a timing-sensitive fault rather than a deterministic bad call. **DRED alone does not slow anything**, and it produced the data: ``` host GPU device removed after a submission of 20 lists; breadcrumbs (done/count, list) ["2/2 None", "2/2 None", … "27/27 None", "2/2 None", …] ``` Two things to read there, and both are useful: - **`done == count` on every list** — the GPU finished every command list in that submission. If it had been a hang inside a list (a pathological dispatch or a loop), at least one list would show `done < count`. It does not, so the TDR-reading of the earlier `0x887A0006` is now the **weaker** explanation, and the "invalid operation during a completed list" reading is the stronger one — the same shape as the `CreateRenderTargetView` case, where the removal came from a call rather than from a stall; - **every marker is `None`** — our breadcrumbs are set, but unnamed. That is why the report cannot say *which* list or *which* pass was in flight: DRED gives us the counters and we are not giving it the names. **The next step that pays for itself**: give the markers names — the command list and the passes recorded into it (draw/dispatch and the pipeline's hash) — so the breadcrumb line reads `27/27 "frame 4096 draw 3 [compute 7ec32976ba4a1227]"` instead of `None`. That is a diagnostics change, not a fix, and it converts every future device removal from "twenty lists, no idea" into a named suspect. I would do that before another diagnostic run: two sessions have now ended with breadcrumbs that were collected and useless. I have not written it yet, and I am aware that this is the third measurement in a row that ends in "we need one more instrument". The instruments so far were worth it — each one ruled something out — but the pattern is clear, and the naming is the last one I would add before going back to trying fixes. No game data is involved: counts, HRESULTs and marker text. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 12:05 UTC · original

Correction, and it is the useful one: DRED did name the failure — an indirect dispatch, stopped at command 53 of 64

My previous comment said "every listed list is marked done". That was wrong, and the mistake was mine in the reading, not in the tool: I quoted the head of a 5,820-character line and stopped at the first ninety entries. The tail of that same line says this:

… a list stopped at command 53 of 64 (op 5), commands 52..54 between its barriers:
command 53 (op 5): indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0]

So the device removal has a named suspect: an indirect dispatch — indirect kind 2, max 1 — of compute shader f607780aa8e502d0, in the list that stopped at its command 53, between the barriers that bracket it. The 2/2 None entries I quoted are the other lists of the submission (the small ones), not the failing one; several of the larger ones show Some(i) with a progress of 0, which is what a list that never started looks like.

That changes the state of this issue, so let me restate it cleanly:

  • the removal is inside a command list, at a specific command, of a specific shader — DRED breadcrumbs worked, and the report gives the shader hash, the indirect argument buffer address (0xd9358fe80), and the dispatch's kind and maximum;
  • it is not "twenty lists, nothing stopped", which is what I said, and the difference matters: the previous reading pointed away from the shaders, and this one points straight at one;
  • the timing sensitivity still exists (the debug layer makes it vanish), so a race is not excluded — an indirect dispatch reading arguments that are written by an earlier list of the same submission is exactly the shape that fails only when the timing lines up.

What I would do next, and it follows from the breadcrumb rather than from a hunch:

  1. take f607780aa8e502d0 and the argument buffer 0xd9358fe80+0x10 and check what writes the dispatch arguments and what reads them (the barrier between command 52 and 54 is where the ordering is supposed to be established);
  2. look for the max 1 in indirect kind 2: a dispatch whose arguments are read from GPU memory with a bound of one — if the count is written after the dispatch reads it, the GPU runs zero or garbage groups and can fault on the address, which is the classic form of this bug and would explain both the fault and why slowing down hides it;
  3. and then, if it is that, the fix is in the ordering — a barrier or a wait — not in the shader.

I am sorry for the wrong reading in the previous comment: it was one line away from the answer and I stopped at the truncation. It is worth the correction because a "no list stopped" conclusion would have sent the next person looking for a fault outside the command lists.

No game data is involved: a shader hash, an address, a command index and debug-layer text.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 12:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7161910516) **Correction, and it is the useful one: DRED did name the failure — an indirect dispatch, stopped at command 53 of 64** My previous comment said "every listed list is marked done". That was **wrong**, and the mistake was mine in the reading, not in the tool: I quoted the head of a 5,820-character line and stopped at the first ninety entries. The tail of that same line says this: ``` … a list stopped at command 53 of 64 (op 5), commands 52..54 between its barriers: command 53 (op 5): indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] ``` So the device removal has a **named suspect**: an **indirect dispatch** — `indirect kind 2, max 1` — of compute shader `f607780aa8e502d0`, in the list that stopped at its command 53, between the barriers that bracket it. The `2/2 None` entries I quoted are the *other* lists of the submission (the small ones), not the failing one; several of the larger ones show `Some(i)` with a progress of `0`, which is what a list that never started looks like. That changes the state of this issue, so let me restate it cleanly: - the removal is **inside a command list**, at a specific command, of a specific shader — DRED breadcrumbs worked, and the report gives the shader hash, the indirect argument buffer address (`0xd9358fe80`), and the dispatch's kind and maximum; - it is **not** "twenty lists, nothing stopped", which is what I said, and the difference matters: the previous reading pointed away from the shaders, and this one points straight at one; - the timing sensitivity still exists (the debug layer makes it vanish), so a **race** is not excluded — an indirect dispatch reading arguments that are written by an earlier list of the same submission is exactly the shape that fails only when the timing lines up. What I would do next, and it follows from the breadcrumb rather than from a hunch: 1. take `f607780aa8e502d0` and the argument buffer `0xd9358fe80+0x10` and check what writes the dispatch arguments and what reads them (the barrier between command 52 and 54 is where the ordering is supposed to be established); 2. look for the `max 1` in `indirect kind 2`: a dispatch whose arguments are read from GPU memory with a bound of one — if the count is written after the dispatch reads it, the GPU runs zero or garbage groups and can fault on the address, which is the classic form of this bug and would explain both the fault and why slowing down hides it; 3. and then, if it is that, the fix is in the ordering — a barrier or a wait — not in the shader. I am sorry for the wrong reading in the previous comment: it was one line away from the answer and I stopped at the truncation. It is worth the correction because a "no list stopped" conclusion would have sent the next person looking for a fault outside the command lists. No game data is involved: a shader hash, an address, a command index and debug-layer text. Written with an AI assistant.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:46 UTC · original

Automated triage for the maintainers.

Thanks, a complete report: RTX 3060, driver 32.0.16.1060, Windows 11 26200, ccfb029, the order of the warnings and the removal codes. Several later comments reproduce it on 940d32f (RTX 4090, 4070, 3090/2070 SUPER, 3050, 5070).

What is in main (940d32f):

  • The boot-time removal (0x887A0001, DXGI_ERROR_INVALID_CALL) is the one tracked in #1753, the oldest complete report, which started with 70564ae (it fits the comment that earlier builds reached the world). The debug-layer lines posted here name B5G5R5A1_UNORM with unordered access and a render-target view of B4G4R4A4_UNORM (format 115). host_desc / pc_format in crates/victory-gpu/src/resource.rs pass both formats to the host unchanged (pc_format maps only 118, 119 and 120). Open PRs: #1763 and #1832 (unordered access), #2332 (a stand-in for 115), #1630 (texture fallbacks), #2305.
  • The refused 2560x1440 format-115 texture is also #797.
  • The view heap cap and title slot past the host heap lines are expected on NVIDIA (HostHeap::new in crates/victory-gpu/src/descriptor/host.rs); the cap is discussed in #747, with #1779 open (it needs a rebase onto 940d32f).
  • The later world hang named by DRED (indirect kind 2 of compute f607780aa8e502d0) is the one in #1968, part of the NVIDIA world hang in #71; #1906 is the open PR that removes it in the runs reported there.

If you try a build, 940d32f plus #1832 (or #1763) and #2332 is the combination the comments above measured; please post how far it gets.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7162825468) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T12:05:39Z at=2026-11-25T12:45:51Z --> Automated triage for the maintainers. Thanks, a complete report: RTX 3060, driver 32.0.16.1060, Windows 11 26200, `ccfb029`, the order of the warnings and the removal codes. Several later comments reproduce it on `940d32f` (RTX 4090, 4070, 3090/2070 SUPER, 3050, 5070). What is in `main` (`940d32f`): - The boot-time removal (`0x887A0001`, `DXGI_ERROR_INVALID_CALL`) is the one tracked in #1753, the oldest complete report, which started with `70564ae` (it fits the comment that earlier builds reached the world). The debug-layer lines posted here name `B5G5R5A1_UNORM` with unordered access and a render-target view of `B4G4R4A4_UNORM` (format 115). `host_desc` / `pc_format` in `crates/victory-gpu/src/resource.rs` pass both formats to the host unchanged (`pc_format` maps only 118, 119 and 120). Open PRs: #1763 and #1832 (unordered access), #2332 (a stand-in for 115), #1630 (texture fallbacks), #2305. - The refused 2560x1440 format-115 texture is also #797. - The view heap cap and `title slot past the host heap` lines are expected on NVIDIA (`HostHeap::new` in `crates/victory-gpu/src/descriptor/host.rs`); the cap is discussed in #747, with #1779 open (it needs a rebase onto `940d32f`). - The later world hang named by DRED (`indirect kind 2` of compute `f607780aa8e502d0`) is the one in #1968, part of the NVIDIA world hang in #71; #1906 is the open PR that removes it in the runs reported there. If you try a build, `940d32f` plus #1832 (or #1763) and #2332 is the combination the comments above measured; please post how far it gets. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-26 14:11 UTC · original

#1906, named in the triage for the later world hang (indirect kind 2 in compute f607780aa8e502d0), has merged as 2bba792. The format 115 render target is still unhandled on main; #89 and #2767 are the open PRs for it.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1952#issuecomment-7194415106) #1906, named in the triage for the later world hang (`indirect kind 2` in compute `f607780aa8e502d0`), has merged as 2bba792. The format 115 render target is still unhandled on `main`; #89 and #2767 are the open PRs for it. AI-assisted (Claude)
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#1952
No description provided.