Descriptors: null UAV for packed 16-bit formats D3D12 refuses #1944
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by Biewlhenrique on 2026-11-25T01:34:56Z.
CreateUnorderedAccessViewon 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
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:28Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Descriptors: null UAV for packed 16-bit…: null-UAV descriptor handling for packed formats.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:21:24Z.
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
Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-25T19:36:12Z.
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: https://github.com/Marvisak/VIctory/issues/1753#issuecomment-7172510623. Tested with the help of an AI assistant (Claude Code).Imported from Marvisak/VIctory. Originally posted by artor410 on 2026-11-25T21:53:21Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.