GPU: unordered views only in formats the host stores to (NVIDIA device removal on B5G5R5A1) #1843
No reviewers
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!1843
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1843"
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?
@KevinPratap on GitHub · 2026-11-24 23:16 UTC · original
KevinPratap:gpu/typed-uav-format-support→main· +25 −6 · 1 files · 1 commits · openProblem
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
@upipibi on GitHub · 2026-11-24 23:16 UTC · original
Overlap for the reviewers: the same
B5G5R5A1_UNORMtyped-UAV removal on NVIDIA (#1753 / #1754) has open fixes on the view side indescriptor/host.rs(#1763, #1775, #1780, #1801) and on the texture side inresource.rs(#1787, #1832). From reading the file lists; nothing built.AI-assisted (Claude Code).
@0xSAW on GitHub · 2026-11-25 01:44 UTC · original
Tested commit
3502e6con NVIDIA GeForce RTX 2060 6GB (Turing / TU106, Driver 566.14, Windows 11 x64).Can confirm this completely resolves the D3D12 device removal crash on Turing:
Context & Reproduction
On
mainprior to this PR, running withVICTORY_D3D12_DEBUG=1consistently produced a device removal immediately after the first command list submission:Results with PR #1843
crates/victory-gpu/src/descriptor/host.rs::tests::unordered_views_need_typed_storespassed cleanly.diagprofile (features = ["diagnostics"]) and executed withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1:B5G5R5A1_UNORMallocation.(The execution later encountered an unrelated CPU-side
0xc0000005null-pointer write in image loading, which is expected on this branch and unrelated to D3D12/GPU views).LGTM! Thanks for the fix, @KevinPratap.
@Marvisak on GitHub · 2026-11-25 06:18 UTC · original
Automated triage for the maintainers.
Proposed close: duplicate of #1763. The new
storeshelper infits(crates/victory-gpu/src/descriptor/host.rs) refuses an unordered view in a format without typed stores, in all three arms. That fixes theB5G5R5A1_UNORMdevice removal in #1753. #1763 makes the same change to the same function, merges cleanly and was triaged first. Its tests make a real host texture and check the castable case.unordered_views_need_typed_storeshere only comparesstoreswithtyped_store, so it does not exercisefits.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
triage: proposed closelabel.Generated by Claude Code
@KainanP on GitHub · 2026-11-25 19:35 UTC · original
RTX 4060 Laptop (610.47), merged onto main
13f91cae(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. Tested with the help of an AI assistant (Claude Code).@krcenov on GitHub · 2026-11-25 21:52 UTC · original
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).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.