Repository navigation
GPU: unordered views only in formats the host stores to (NVIDIA device removal on B5G5R5A1) - #1843
KevinPratap wants to merge 1 commit into
Conversation
fits() checked typed-store support only for views cast to another family, so an unordered view in the texture's own format went to CreateUnorderedAccessView regardless. On an RTX 4050 Laptop, main removed the device a few seconds into the menus: the D3D12 debug layer reports 'The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View' and DXGI_ERROR_INVALID_CALL. Every unordered view now needs typed stores in its final format; without them it is null (its writes dropped, logged once). With this the same run kept going through the menus with no device removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Overlap for the reviewers: the same AI-assisted (Claude Code). |
|
Tested commit Can confirm this completely resolves the D3D12 device removal crash on Turing: Context & ReproductionOn Results with PR #1843
LGTM! Thanks for the fix, @KevinPratap. |
|
Automated triage for the maintainers. Proposed close: duplicate of #1763. The new If this PR covers a case #1763 misses, say which one and this verdict can be revisited. CI: no check runs on the head commit. This pull request will be closed in 48 hours unless the author pushes a change or a maintainer removes the Generated by Claude Code |
|
RTX 4060 Laptop (610.47), merged onto main 13f91ca (test-only conflict, kept both): B5G5R5A1 UAV half fixed (views refused), B4G4R4A4 target half still removes the device; no new failures. With #1832 too: same, and also fixes the UAV half on Intel UHD. Details and the side-by-side table with the other #1753 PRs: #1753 (comment). Tested with the help of an AI assistant (Claude Code). |
|
Tested #1843 + #1832 together on 940d32f: RTX 3070, driver 32.0.16.1714, Windows 10 22H2 (19045), with a local Agility SDK 1.620.2 export (needed on Windows 10, see #2563). No more device removal from the B5G5R5A1 typed UAV. It ran ~5 min 40 s at a steady 30 fps until an unrelated GPU hang at world load. Debug layer on (VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1). |
Problem
On NVIDIA (RTX 4050 Laptop, driver 621.24), current
mainremoves the device a few seconds into the menus. The D3D12 debug layer names the call:fits()askstyped_store()only when a view is cast to another format family. An unordered view in the texture's own format skips the check. AMD supports typed stores to this format; NVIDIA does not.Fix
Every unordered view now needs typed stores in its final format (
stores()). Without them the view is null: its writes are dropped, and that's logged once.Verified
unordered_views_need_typed_storespasses.cargo clippy -p victory-gpu --all-targets -- -D warningsis clean.Only
crates/victory-gpu/src/descriptor/host.rschanges.AI-assisted.
🤖 Generated with Claude Code