Descriptors: null UAV for packed 16-bit formats D3D12 refuses #1946
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!1946
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1946"
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?
@Biewlhenrique on GitHub · 2026-11-25 01:34 UTC · original
Biewlhenrique:fix/null-uav-packed-16bit→main· +13 −0 · 1 files · 1 commits · openCreateUnorderedAccessViewon a texture whose final format the host cannot store to (the packed 16-bit B5G5R5A1 / B4G4R4A4 formats) is refused and, on NVIDIA, removes the device. This checks the format withtyped_store(), like the other typed views, and makes such a view null instead.Seen running GTA VI on an RTX 5060 Ti.
cargo check -p victory-gpupasses.🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 08:21 UTC · original
Automated triage for the maintainers.
Needs work.
In
crates/victory-gpu/src/descriptor/host.rs, theView::Unorderedarm ofmakenow leaves a texture UAV null when its final format (the view's, else the texture's) failstyped_store. The check itself is cheap and harmless, becausetyped_storecaches per format. Two things are missing before it can go in:main,fitsalready refuses a UAV whose format is not of the texture's family. It also refuses a castable cross-family format that failstyped_store, and the texture must carryALLOW_UNORDERED_ACCESS. So the failing case has to be a host texture created with UAV access in B5G5R5A1/B4G4R4A4 itself, or a same-family view. Please attach the D3D12 debug-layer message, or thevictorylog line with the format and resource that took the device down, so the maintainers can see which case it is. That case may be better fixed where the host texture is described (resource::host_desc).fits(..., unordered = true)is where the unordered view's format is settled. It already holds atyped_storecheck, limited to castable views of another family. Widening that condition to every unordered view would cover this case in one place instead of re-deriving the format inmake.CI:
checkpasses. There is no test, but a host-format support check is hard to test without the specific GPU, so that is not a blocker.Generated by Claude Code
@KainanP on GitHub · 2026-11-25 19:36 UTC · original
RTX 4060 Laptop (610.47), merged onto main
13f91cae: B5G5R5A1 UAV half fixed (views refused), B4G4R4A4 target half still removes the device; no new failures. Details and the side-by-side table with the other #1753 PRs: #1753. Tested with the help of an AI assistant (Claude Code).@artor410 on GitHub · 2026-11-25 21:53 UTC · original
Tested on RTX 3070 Ti, driver 610.88, Windows 11 26300, rustc 1.98.1. main
13f91ca. Merged into main cleanly (4b62b91).cargo test -p victory-gpu(main: 193 passed, 2 failed: the known heap-cap pairdynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views). With this PR: 193 passed, same 2 failed. No new test.create_placedwith the UAV and/or RT flag, thendescriptor::host::make_view(View::Unordered(..))andHost::rtv(texture, None), thenGetDeviceRemovedReason, one process per case. On main: UAV view of 86 or 115 crashes the test process (0xc0000005 inside the driver); RTV of 115 removes the device (0x887A0001); 115 with RT|UAV gets no host texture.CheckFeatureSupporthere: 86 RT yes, typed UAV no; 115 RT no, typed UAV no.UAV only, same effect as #2462; the B4G4R4A4 render-target half of #735 is not covered.
(Claude Code, Claude Opus 5.5.)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.