NVIDIA: device removed — B5G5R5A1_UNORM texture created with ALLOW_UNORDERED_ACCESS flag #2258

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

@⁠user2472194366 on GitHub · 2026-11-25 09:10 UTC · original

Environment

  • GPU: NVIDIA GeForce RTX 4060 Laptop (8GB), driver 32.0.16.2124
  • OS: Windows 11 (10.0.26300)
  • CPU: Intel Core i7-13700H
  • Build: diagnostics (--profile diag --features diagnostics), VICTORY_D3D12_DEBUG=1

Repro

Run the game into the world. It crashes at frame ~116-120 in a compute stage.

Error (debug layer)

host GPU device removed after a submission of 1 lists.
GetDeviceRemovedReason: DXGI_ERROR_INVALID_CALL (0x887A0001)

ID3D12Device::GetResourceAllocationInfo: A texture that has
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set 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.

Analysis

B5G5R5A1_UNORM is not UAV-compatible under D3D12. On AMD this combination is
silently tolerated, but NVIDIA (strictly, with the debug layer) removes the
device. Likely fix: drop the UAV flag on this texture, or use a castable format
for its UAV view.

pipeline hash at crash: 4c0ac499ad613809

**@⁠user2472194366** on GitHub · 2026-11-25 09:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258) ## Environment - GPU: NVIDIA GeForce RTX 4060 Laptop (8GB), driver 32.0.16.2124 - OS: Windows 11 (10.0.26300) - CPU: Intel Core i7-13700H - Build: diagnostics (--profile diag --features diagnostics), VICTORY_D3D12_DEBUG=1 ## Repro Run the game into the world. It crashes at frame ~116-120 in a compute stage. ## Error (debug layer) host GPU device removed after a submission of 1 lists. GetDeviceRemovedReason: DXGI_ERROR_INVALID_CALL (0x887A0001) ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set 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. ## Analysis B5G5R5A1_UNORM is not UAV-compatible under D3D12. On AMD this combination is silently tolerated, but NVIDIA (strictly, with the debug layer) removes the device. Likely fix: drop the UAV flag on this texture, or use a castable format for its UAV view. pipeline hash at crash: 4c0ac499ad613809
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:05 +00:00
Author
Owner

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

This is the same failure as #1753 (DXGI format 86, B5G5R5A1_UNORM: NVIDIA has no typed UAV for it).

  • PR #1763 refuses the unordered view in that format. In #2204, @⁠nic0manz tested the equivalent change on an RTX 3060 Laptop: the device is no longer removed at that point.
  • PR #89 makes such targets R8G8B8A8_UNORM where the GPU can't render to or store them.

fxceless/victory-fork already does the #89 substitution. On an RTX 2080 its log shows the host does not render to this format: 8-bit RGBA stands in format=86 (and format=115), and the run goes on into the world.

**@⁠NuraadGit** on GitHub · 2026-11-25 09:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7158310890) This is the same failure as #1753 (DXGI format 86, B5G5R5A1_UNORM: NVIDIA has no typed UAV for it). - PR #1763 refuses the unordered view in that format. In #2204, @⁠nic0manz tested the equivalent change on an RTX 3060 Laptop: the device is no longer removed at that point. - PR #89 makes such targets R8G8B8A8_UNORM where the GPU can't render to or store them. fxceless/victory-fork already does the #89 substitution. On an RTX 2080 its log shows `the host does not render to this format: 8-bit RGBA stands in format=86` (and `format=115`), and the run goes on into the world.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:53 UTC · original · edited 2026-11-25 18:48 UTC

Automated triage for the maintainers.

Run report (RTX 4060 Laptop, driver 621.24, Windows 11 build 26300). This is the known NVIDIA failure for B5G5R5A1_UNORM (format 86) with unordered access, discussed in #1753. It is still in main (13f91ca): host_desc in crates/victory-gpu/src/resource.rs keeps ALLOW_UNORDERED_ACCESS whether or not the host can store to the format. The open PRs are:

  • #2459 and #2442 drop the flag where the format cannot be a UAV
  • #1763 refuses the typed view
  • #89 substitutes R8G8B8A8_UNORM

New data points:

  • 940d32f: the removal reproduces on every run at about frame 116–120, in compute pipeline 4c0ac499ad613809 (another tester).
  • GTX 1660 SUPER, driver 610.88, da82e44: a guard that drops the flag for format 86 stops the removal, and the run keeps rendering at 30 fps. The tester first suspected a second removal on a B4G4R4A4_UNORM (115) render target but retracted it. The no host texture ... format: 115 warning shows up on earlier commits too and is not fatal on its own. A B4G4R4A4_UNORM render-target clear value that the debug layer does flag is reported in #97.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7167407141) · edited 2026-11-25 18:48 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T16:56:59Z at=2026-11-25T19:31:00Z --> Automated triage for the maintainers. Run report (RTX 4060 Laptop, driver 621.24, Windows 11 build 26300). This is the known NVIDIA failure for `B5G5R5A1_UNORM` (format 86) with unordered access, discussed in #1753. It is still in `main` (`13f91ca`): `host_desc` in `crates/victory-gpu/src/resource.rs` keeps `ALLOW_UNORDERED_ACCESS` whether or not the host can store to the format. The open PRs are: - #2459 and #2442 drop the flag where the format cannot be a UAV - #1763 refuses the typed view - #89 substitutes `R8G8B8A8_UNORM` New data points: - `940d32f`: the removal reproduces on every run at about frame 116–120, in compute pipeline `4c0ac499ad613809` (another tester). - GTX 1660 SUPER, driver 610.88, `da82e44`: a guard that drops the flag for format 86 stops the removal, and the run keeps rendering at 30 fps. The tester first suspected a second removal on a `B4G4R4A4_UNORM` (115) render target but retracted it. The `no host texture ... format: 115` warning shows up on earlier commits too and is not fatal on its own. A `B4G4R4A4_UNORM` render-target clear value that the debug layer does flag is reported in #97. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠roon9e on GitHub · 2026-11-25 15:55 UTC · original

A second, different device removal on main (da82e44, 81 commits past 940d32f), on the same machine (GTX 1660 SUPER, driver 610.88, Turing, FL 12.1). It is not the B5G5R5A1_UNORM + ALLOW_UNORDERED_ACCESS case this issue is about — the texture here has no unordered access — and it is reproduced with and without a host_desc guard (plain origin/main).

It happens during the load, before any frame is presented:

WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in
  other formats get their own host texture error=The parameter is incorrect. (0x80070057)
  desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, depth_or_array_size: 1,
  mip_levels: 1, format: 115, sample_count: 1, flags: 1 }
WARN victory_gpu::resource: no host texture error=0x80070057 desc=ResourceDesc { … format: 115 … flags: 1 }
INFO victory_gpu::twin: an unordered view of a depth texture, made on its writable twin console=118 view=56 plane=0
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs
  (… (0x887A0004)); device removed: … (0x887A0001)
  • The texture is a 2560×1440 DXGI_FORMAT_B4G4R4A4_UNORM (115) render target (flags: 1). CreateCommittedResource3 with the cast list is refused 0x80070057, and the plain CreateCommittedResource fallback then fails too; the device is removed right after the depth twins.
  • 940d32f + the UAV guard (PR #2459) is the last build I have that is stable past this (25 min, reaches the account picker → Game Running → the codec stop of #1063). On da82e44 the run dies ~40 s in, before the menu.
  • Restoring or removing the Agility export makes no difference; the D3D12 debug layer cannot name the exact call in a main build (it is gated behind the diagnostics feature, which main lacks), so the offending call is inferred from the two creation failures above.

Looks like it is in the newer texture-creation path (placement heaps / cast list / committed fallback) for a render target in an unusual format on FL 12.1. I can bisect the 81 commits if that helps.

AI-assisted; measured on the physical GTX 1660 SUPER above.

**@⁠roon9e** on GitHub · 2026-11-25 15:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7167432146) A **second, different** device removal on `main` (`da82e44`, 81 commits past `940d32f`), on the same machine (GTX 1660 SUPER, driver **610.88**, Turing, FL 12.1). It is *not* the `B5G5R5A1_UNORM` + `ALLOW_UNORDERED_ACCESS` case this issue is about — the texture here has no unordered access — and it is reproduced **with and without** a `host_desc` guard (plain `origin/main`). It happens during the load, **before any frame is presented**: ``` WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in other formats get their own host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, flags: 1 } WARN victory_gpu::resource: no host texture error=0x80070057 desc=ResourceDesc { … format: 115 … flags: 1 } INFO victory_gpu::twin: an unordered view of a depth texture, made on its writable twin console=118 view=56 plane=0 ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (… (0x887A0004)); device removed: … (0x887A0001) ``` - The texture is a **2560×1440 `DXGI_FORMAT_B4G4R4A4_UNORM` (115) render target** (`flags: 1`). `CreateCommittedResource3` with the cast list is refused `0x80070057`, and the plain `CreateCommittedResource` fallback then fails too; the device is removed right after the depth twins. - `940d32f` + the UAV guard (PR #2459) is the last build I have that is stable past this (25 min, reaches the account picker → `Game Running` → the codec stop of #1063). On `da82e44` the run dies ~40 s in, before the menu. - Restoring or removing the Agility export makes no difference; the D3D12 debug layer cannot name the exact call in a `main` build (it is gated behind the `diagnostics` feature, which `main` lacks), so the offending call is inferred from the two creation failures above. Looks like it is in the newer texture-creation path (placement heaps / cast list / committed fallback) for a render target in an unusual format on FL 12.1. I can bisect the 81 commits if that helps. AI-assisted; measured on the physical GTX 1660 SUPER above.
Author
Owner

@⁠user2472194366 on GitHub · 2026-11-25 16:29 UTC · original

Ran on commit 940d32f (VIctory main, pulled from ffe310e — the 514-commit update
on 2026-11-25).

For the record: the B5G5R5A1_UNORM + UAV device-removed crash reproduced on every
run at frame ~116-120, compute stage, pipeline hash 4c0ac499ad613809.

**@⁠user2472194366** on GitHub · 2026-11-25 16:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7168076429) Ran on commit 940d32f (VIctory main, pulled from ffe310e — the 514-commit update on 2026-11-25). For the record: the B5G5R5A1_UNORM + UAV device-removed crash reproduced on every run at frame ~116-120, compute stage, pipeline hash 4c0ac499ad613809.
Author
Owner

@⁠roon9e on GitHub · 2026-11-25 16:56 UTC · original

Correction to my comment above — I misattributed this. Re-tested on da82e44:

  • The format: 115 line is a pre-existing, non-fatal create warning: it appears on 940d32f too, and the run continues past it.
  • With a guard that drops ALLOW_UNORDERED_ACCESS for a format whose own family takes no typed UAV (B5G5R5A1_UNORM = 86), da82e44 no longer removes — it runs on (30 fps, stable) instead of dying ~40 s in. So this is the same B5G5R5A1 case as the issue, not a separate format-115 bug. My "second, different removal" was wrong; apologies.

So there is no new regression in da82e44 — the removal is the one this issue tracks, and a host_desc fix that actually drops the flag for 86 clears it on both 940d32f and da82e44. (On 940d32f + that guard the run reaches the codec stop of #1063; on da82e44 + the guard it does not hit that stop and keeps rendering — the 80 commits since may have changed the streaming path — which I'm still checking with captures.)

AI-assisted; measured on the physical GTX 1660 SUPER.

**@⁠roon9e** on GitHub · 2026-11-25 16:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7168773773) Correction to my comment above — I misattributed this. Re-tested on `da82e44`: - The `format: 115` line is a **pre-existing, non-fatal** create warning: it appears on `940d32f` too, and the run continues past it. - With a guard that drops `ALLOW_UNORDERED_ACCESS` for a format whose own family takes no typed UAV (`B5G5R5A1_UNORM = 86`), **`da82e44` no longer removes** — it runs on (30 fps, stable) instead of dying ~40 s in. So this is the **same `B5G5R5A1` case as the issue**, not a separate `format-115` bug. My "second, different removal" was wrong; apologies. So there is **no new regression in `da82e44`** — the removal is the one this issue tracks, and a `host_desc` fix that actually drops the flag for 86 clears it on both `940d32f` and `da82e44`. (On `940d32f` + that guard the run reaches the codec stop of #1063; on `da82e44` + the guard it does **not** hit that stop and keeps rendering — the 80 commits since may have changed the streaming path — which I'm still checking with captures.) AI-assisted; measured on the physical GTX 1660 SUPER.
Author
Owner

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

This should be fixed on current main (63bcca4). The GetResourceAllocationInfo rejection quoted here came from shared_texture() querying with the title's description; #2286 (bac1364) now queries the live host texture's description instead. The typed view in that format is refused since #2462 (ea488a9). The tracking issue #1753 was closed as fixed after a debug-layer run on an RTX 5080 at 63bcca4, so this looks like a duplicate of it.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/2258#issuecomment-7194418653) This should be fixed on current `main` (`63bcca4`). The `GetResourceAllocationInfo` rejection quoted here came from `shared_texture()` querying with the title's description; #2286 (bac1364) now queries the live host texture's description instead. The typed view in that format is refused since #2462 (ea488a9). The tracking issue #1753 was closed as fixed after a debug-layer run on an RTX 5080 at `63bcca4`, so this looks like a duplicate of 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#2258
No description provided.