Device removed on NVIDIA: typed UAV created in B5G5R5A1_UNORM, which the host cannot store #2204
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#2204
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?
@nic0manz on GitHub · 2026-11-25 07:55 UTC · original
Problem
On an NVIDIA RTX 3060 (Windows 10), the host GPU is removed shortly after start
(DXGI_ERROR_INVALID_CALL). With VICTORY_D3D12_DEBUG=1 the debug layer names the cause:
ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be
used with a Typed Unordered Access View. This is because the current graphics
implementation does not even support this Format. id=342
ID3D12Device::RemoveDevice: Device removal has been triggered (DXGI_ERROR_INVALID_CALL)
Probably works on the RX 6700 XT, which may support typed UAV stores for 16-bit formats.
Cause
fits()in crates/victory-gpu/src/descriptor/host.rs only checkstyped_storewhen theview is in a castable format of another family. When the view format is the texture's
own format (here 86 on an 86 texture), or the view has no description, the check is
skipped and an invalid UAV is created.
Fix that works for me
Check
typed_storeon the final view format for every unordered view:With this, the view is left null (writes dropped) and the title runs past this point.
(A proper fix might emulate the store through R16_UINT, since castable formats
are refused here too.)
Related, not fixed
On the same machine the host also refuses a B4G4R4A4_UNORM render target:
CreateCommittedResource: ALLOW_RENDER_TARGET ... Format is B4G4R4A4_UNORM. id=599
That texture ends up with no host copy ("no host texture"), but it does not remove the device.
System
@Dathinel on GitHub · 2026-11-25 08:02 UTC · original
This matches #1753 down to DXGI format 86 and the same-format/default-view path in
descriptor::host::fits. Open PR #1763 already changes both branches and adds a test for the B5G5R5A1 case, so this report can help validate that patch.On a second adapter (RTX 3050 Laptop, Windows driver 32.0.16.1062),
CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)returned:This confirms the capability distinction. R16_UINT support alone does not establish that a view cast or emulation preserves the original texture's values. AI-assisted capability query only; no title run.
@nic0manz on GitHub · 2026-11-25 08:05 UTC · original
Thanks! Closing as a duplicate of #1753.
For validation of #1763: I applied the equivalent change to
fits()locally(typed_store check on the final format and on default views) and ran the title
on an RTX 3060 Laptop / Windows 10 22H2 / Agility SDK 1.620.2. The
B5G5R5A1 UAV is now refused ("an unordered view in a format the host cannot
store made=86 own=86") and the device is no longer removed at that point.
The title then runs further and hits a separate GPU hang (DXGI_ERROR_DEVICE_HUNG
after a 10 s submission, TdrDelay=10), with ~60 compute pipelines refused by the
host ("host pipeline refused", E_INVALIDARG). I'm looking into that separately.