victory-gpu: verify typed UAV format support in descriptor fits #554
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!554
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-554"
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?
@SalmanBarkat on GitHub · 2026-11-27 11:16 UTC · original
SalmanBarkat:fix/typed-uav-format-support→a-publier· +136 −8 · 1 files · 2 commits · openSummary
D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEWviaID3D12Device::CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT) infits()for unordered access views, cached per DXGI format insupports_typed_uav.unorderedis true (view == 0->own,target_format(view) == ownstand-ins, typedown, and typeless-castview) so unsupported typed UAV formats log once and fall back to a null descriptor before callingCreateUnorderedAccessView.unsupported_typed_uav_format_is_rejectedunit test incrates/victory-gpu/src/descriptor/host.rs.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(passed)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(passed)cargo test --locked -p victory-gpu descriptor::host::tests::unsupported_typed_uav_format_is_rejected -- --exact --nocapture(1 passed, 0 failed)cargo test --locked -p victory-gpu --lib -- --test-threads=1(397 passed, 0 failed, 34 ignored)cargo test --locked -p victory-gpu --all-features --lib -- --test-threads=1(446 passed, 0 failed, 34 ignored)cargo test -p xtask --locked(9 passed, 0 failed)@lvndrpup on GitHub · 2026-11-27 14:15 UTC · original · reviewed
Tested on an RTX 3060 Ti (Windows 11, debug build), base
4eb6cfdagainst heade57d565.I called
fits(texture, view, true)on the card for 4×4 textures made withALLOW_UNORDERED_ACCESS. Wherefitsallowed the view, I created it and readGetDeviceRemovedReason. The debug layer isn't installed here, so the removed reason is all I can see.4eb6cfde57d5650x887A0001, DXGI_ERROR_INVALID_CALL)0x887A0001)unsupported_typed_uav_format_is_rejectedmake_tex(92)succeeds on this card, so the B8G8R8X8 part runs toocargo test -p victory-gpu --lib descriptor::cargo test -p victory-gpu --lib, one runno_write_is_lost_with_port_7(watch.rs:5917), the #534 race between tests, which #539 fixes; nothing this PR touchescargo clippy -p victory-gpu --all-targets -- -D warnings, with and without--all-featuresSo on NVIDIA this prevents two device removals, and none of the other formats I tried is refused.
One thing to fix:
supports_typed_uavwent in betweenfitsand its doc comment. Thefitsdoc ("Whether the host can make a shader (or unordered access) view oftexture…", with itsshortcut:line) now documentssupports_typed_uav, andfitshas none. Moving the new function above that comment fixes it.It merges cleanly with the 14 other open PRs on
descriptor/host.rsthat still merge witha-publier.@MamaLeVrai on GitHub · 2026-11-27 15:56 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
e57d565:victory-gpu397 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
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.