[D3D12] GPU Device Removed (0x887A0001): Invalid ALLOW_UNORDERED_ACCESS flag on B5G5R5A1_UNORM texture #2291
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2291
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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:11 UTC · original
crashes.log
@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_ACCESSis now dropped inhost_descwhen 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 infitsinstead (#1763).Two corrections for the record, since they shape what a fix has to cover:
R8_UINTis a fine typed UAV andR8G8B8A8_UNORMis not, while its typelessR8G8B8A8_TYPELESSis. 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 onfamily()+CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)covers B5G5R5A1 and the console's two-byte formats that pass through as DXGI numbers.typed_storeanswers true for 85/86/115, so the drop is not exercised locally; it is exercised by the NVIDIA report. If you can rerun2319's branch on the 5070 Ti, the log lineno unordered access for this formatwithformat=86before the account selector is the confirmation, and a run that reaches the selector withoutdevice removedis the check.@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_descincrates/victory-gpu/src/resource.rsdropsALLOW_UNORDERED_ACCESSonly for depth textures, and changes the format to the typeless family only for sRGB ones. AB5G5R5A1_UNORMtexture with the flag is therefore passed to the device as it is. An NVIDIA device rejects it inGetResourceAllocationInfoand 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 formatand no device removal. If you test the PR before then, please give the commit you ran.Generated by Claude Code
@potatoe0100 on GitHub · 2026-11-26 14:12 UTC · original
This should be fixed on current
main(63bcca4). TheGetResourceAllocationInforejection quoted here came fromshared_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 at63bcca4, so this looks like a duplicate of it.AI-assisted (Claude)