[D3D12] GPU Device Removed (0x887A0001): Invalid ALLOW_UNORDERED_ACCESS flag on B5G5R5A1_UNORM texture #2291

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

@⁠mikebigboots-web on GitHub · 2026-11-25 10:02 UTC · original

The application crashes on startup/runtime with a DirectX 12 device removal error (0x887A0001).
According to the D3D12 debug layer output, victory_gpu::host attempts to create a texture with the B5G5R5A1_UNORM format while simultaneously setting the D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS flag. Direct3D 12 does not support Unordered Access Views (UAVs) or typeless UAV casting for 16-bit packed formats like B5G5R5A1_UNORM, causing the runtime to reject the call and drop the GPU device.

error log:

severity=1
2026-11-25T09:57:57.299283Z ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []; device removed: The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
Enable the D3D debug layer in order to see details via debug messages. (0x887A0001); debug layer: 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.

Environment

• OS: Windows 10.0.26200 (Windows 11)
• CPU: AMD Ryzen 5 9600X 6-Core Processor
• Graphics API: Direct3D 12 (D3D_FEATURE_LEVEL_12_2)
• Module: victory_gpu::host
rtx5070 ti

**@⁠mikebigboots-web** on GitHub · 2026-11-25 10:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/2291) The application crashes on startup/runtime with a DirectX 12 device removal error (0x887A0001). According to the D3D12 debug layer output, victory_gpu::host attempts to create a texture with the B5G5R5A1_UNORM format while simultaneously setting the D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS flag. Direct3D 12 does not support Unordered Access Views (UAVs) or typeless UAV casting for 16-bit packed formats like B5G5R5A1_UNORM, causing the runtime to reject the call and drop the GPU device. error log: severity=1 2026-11-25T09:57:57.299283Z ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []; device removed: The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. Enable the D3D debug layer in order to see details via debug messages. (0x887A0001); debug layer: 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. Environment • OS: Windows 10.0.26200 (Windows 11) • CPU: AMD Ryzen 5 9600X 6-Core Processor • Graphics API: Direct3D 12 (D3D_FEATURE_LEVEL_12_2) • Module: victory_gpu::host rtx5070 ti
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:14 +00:00
Author
Owner

@⁠mikebigboots-web on GitHub · 2026-11-25 10:11 UTC · original

crashes.log

**@⁠mikebigboots-web** on GitHub · 2026-11-25 10:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/2291#issuecomment-7159364088) [crashes.log](https://github.com/user-attachments/files/35405947/crashes.log)
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 10:33 UTC · original

The same path as #2307's second half, and #2319 is the fix for it: D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS is now dropped in host_desc when the format has no typeless family to stand in and the device reports no typed UAV for it, with a one-time warning naming the format. The texture is created, the device stays alive, and an unordered view of it is refused in fits instead (#1763).

Two corrections for the record, since they shape what a fix has to cover:

  • It is not the 16-bit packed-ness that decides it — R8_UINT is a fine typed UAV and R8G8B8A8_UNORM is not, while its typeless R8G8B8A8_TYPELESS is. The rule the runtime applies is "the format, or a format it can be cast to, supports typed UAV stores", so the general fix keyed on family() + CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT) covers B5G5R5A1 and the console's two-byte formats that pass through as DXGI numbers.
  • On the AMD card here typed_store answers true for 85/86/115, so the drop is not exercised locally; it is exercised by the NVIDIA report. If you can rerun 2319's branch on the 5070 Ti, the log line no unordered access for this format with format=86 before the account selector is the confirmation, and a run that reaches the selector without device removed is the check.
**@⁠Calvix2k** on GitHub · 2026-11-25 10:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/2291#issuecomment-7159857285) The same path as #2307's second half, and #2319 is the fix for it: `D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS` is now dropped in `host_desc` when the format has no typeless family to stand in and the device reports no typed UAV for it, with a one-time warning naming the format. The texture is created, the device stays alive, and an unordered view of it is refused in `fits` instead (#1763). Two corrections for the record, since they shape what a fix has to cover: - It is not the 16-bit packed-ness that decides it — `R8_UINT` is a fine typed UAV and `R8G8B8A8_UNORM` is not, while its typeless `R8G8B8A8_TYPELESS` is. The rule the runtime applies is "the format, or a format it can be cast to, supports typed UAV stores", so the general fix keyed on `family()` + `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)` covers B5G5R5A1 and the console's two-byte formats that pass through as DXGI numbers. - On the AMD card here `typed_store` answers true for 85/86/115, so the drop is not exercised locally; it is exercised by the NVIDIA report. If you can rerun `2319`'s branch on the 5070 Ti, the log line `no unordered access for this format` with `format=86` before the account selector is the confirmation, and a run that reaches the selector without `device removed` is the check.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:47 UTC · original

Automated triage for the maintainers.

Thanks, this is a useful data point. The cause is in main. host_desc in crates/victory-gpu/src/resource.rs drops ALLOW_UNORDERED_ACCESS only for depth textures, and changes the format to the typeless family only for sRGB ones. A B5G5R5A1_UNORM texture with the flag is therefore passed to the device as it is. An NVIDIA device rejects it in GetResourceAllocationInfo and the device is removed.

The same failure, with the full environment and a measured format table, is in #2307 (RTX 3070), so the cause is tracked there. Open PR #2319 drops the flag for formats that have no typed UAV and no typeless family to fall back on. Once it is merged, a run on current main with it should show the warning no unordered access for this format and no device removal. If you test the PR before then, please give the commit you ran.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/2291#issuecomment-7171412408) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T10:33:22Z at=2026-11-25T18:51:00Z --> Automated triage for the maintainers. Thanks, this is a useful data point. The cause is in main. `host_desc` in `crates/victory-gpu/src/resource.rs` drops `ALLOW_UNORDERED_ACCESS` only for depth textures, and changes the format to the typeless family only for sRGB ones. A `B5G5R5A1_UNORM` texture with the flag is therefore passed to the device as it is. An NVIDIA device rejects it in `GetResourceAllocationInfo` and the device is removed. The same failure, with the full environment and a measured format table, is in #2307 (RTX 3070), so the cause is tracked there. Open PR #2319 drops the flag for formats that have no typed UAV and no typeless family to fall back on. Once it is merged, a run on current main with it should show the warning `no unordered access for this format` and no device removal. If you test the PR before then, please give the commit you ran. --- _Generated by [Claude Code](https://claude.ai/code)_
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/2291#issuecomment-7194421461) 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#2291
No description provided.