Repository navigation
Conversation
An RTX 3070 lost the device 17 s into the first-boot screens with DXGI_ERROR_INVALID_CALL. The debug layer names the call: CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View. View creation returns nothing, so D3D12 removes the device for an invalid one. typed_store() (FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW, cached per format) guarded only castable views of another family; views in the texture's own family, typed buffer views and the depth twins' views went to the device unchecked. Every typed unordered view now asks it first: fits() checks the format the view ends up with, buffer_uav() checks typed (not raw, not structured) buffer views, and twin::uav() checks the twin plane's format. A refused view leaves make() with nothing, so the slot gets a null view of the title's kind (writes dropped), and the refused format is logged once. fits()'s narrower cross-family check is folded into the new one. Hosts that store to every format the title uses (AMD) make the same views as before. On the RTX 3070 (driver 32.0.16.1088) format 86 is refused once, the debug layer reports no typed-view errors, and the title boots into the world (frame 1695, 11,178 draws) instead of losing the device at boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Overlap for the reviewers: this is the fourth open fix for the same AI-assisted (Claude Code). |
This was referenced Nov 24, 2026
catminou4
reviewed
Nov 24, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title: GPU: no unordered views in formats the host cannot store (NVIDIA boot crash)
Summary
On NVIDIA,
mainloses the device about 17 s into the first-boot screens(
DXGI_ERROR_INVALID_CALL). The cause is a typed unordered access view inB5G5R5A1_UNORM, a format NVIDIA cannot store to through typed UAVs. Thischange asks the device before making any typed UAV and leaves the slot a
null view when the format is refused. With it, an RTX 3070 boots into the
world again.
Hosts that store to every format the title uses (AMD) make exactly the same
views as before.
The failure
RTX 3070, driver 32.0.16.1088,
mainat70564ae, diagnostics build withVICTORY_D3D12_DEBUG=1:Create*Viewreturns nothing, so D3D12 removes the device for an invalidone. The same machine reached the world on
8e79c80; the views appearedwith the texture changes since then (
13bbd6fand others).Cause
typed_store()already queriesD3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW(cached per format), but it only guarded castable views of another format
family. Three paths made typed UAVs without it:
fits(): a view in the texture's own family (or a castable one of thesame family);
buffer_uav(): typed buffer views (not raw, not structured);twin::uav(): views of a depth texture's writable twin.The change
fits()checks the format the view ends up with (the title's view format,or the texture's own when the view takes it). This subsumes the old
cross-family check, which is removed.
buffer_uav()checks typed buffer views; raw and structured views usefixed formats and are unchanged.
twin::uav()checks the twin plane's format.make(), so the slot gets the existingnull_for()null view of the title's kind (writes dropped, reads zero),as for any view the host cannot make.
typed_store()logs each refused format once:the host cannot store to unordered views in this format: they are null format=86.34 lines added, 7 removed, in
descriptor/host.rsandtwin.rs.Testing
is refused once, the debug layer reports no typed-UAV errors, and the title
boots into the world (first world frame 1695, 11,178 draws). Before: device
removed at boot in 2 of 2 runs.
typed_unordered_views_only_in_formats_the_device_stores:R32_UINT(required on every device) is accepted,UNKNOWNis not.cargo clippy --workspace --all-targets -- -D warnings, with and without--all-features: clean.cargo test --workspace: passes except twovictory-gputests that alreadyfail on
mainon NVIDIA (see below).it cannot make, so an AMD host that supports these formats takes the same
path as before.
Known NVIDIA issues this does not fix
Found while testing, left for separate changes:
(
DXGI_ERROR_DEVICE_HUNG, a dispatch with no marker).at exactly 1,000,000 descriptors (measured on the RTX 3070, binding tier 3).
Translated shaders clamp heap indices below
HEAP_VIEWS(2^21) and readNULL_BUFFER_VIEW(2^21 − 2) for a missing buffer view. On a 1,000,000-slotheap that null view is always out of bounds.
ran out 2 s into the world in earlier runs, dropping about 800 indirect mesh
draws per frame.
main:dynamic_slots_are_held_until_released(asserts a heap of at leastHEAP_VIEWS) andlists_share_a_table_and_copies_keep_their_views(asserts2^18 dynamic slots).
🤖 Generated with Claude Code