Repository navigation
GPU: check every unordered texture view against the host's typed-store support (#1754) - #1780
LarryBebou wants to merge 1 commit into
Conversation
…e support fits() refused an unordered view the host cannot store to only when the view was cast to another format family. A texture viewed in its own format was never checked, so a B5G5R5A1_UNORM texture with unordered access got a typed UAV of that format, which NVIDIA does not support: the debug layer reports id 342 and the device is removed with DXGI_ERROR_INVALID_CALL before the menus (Marvisak#1754). Each unordered view is now checked in the format it is made in: the view's on a typeless or castable texture, the texture's otherwise. Such a view stays null, so the title's writes to that texture are lost; packed 16-bit formats need their own unordered path.
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
|
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060:
|
|
Automated triage for the maintainers. Proposed close: duplicate of #1763. 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: the B5G5R5A1 UAV half crashes the process (access violation 0xc0000005) on a UAV without a description, because |
Fixes the
DXGI_ERROR_INVALID_CALL(0x887A0001) removal before the menus on NVIDIA reported in #1754.Why
descriptor::host::fitsrefuses an unordered view the host cannot store to, but only when the view is cast to another format family (cast && family(view) != family(own)). A texture viewed in its own format is never checked. The title has a 2560x1440B5G5R5A1_UNORMtexture with unordered access; NVIDIA has noD3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEWfor that format, so creating the view is an invalid call. With the debug layer,CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View(id 342) is followed 1 ms later by the removal (id 232). Details and the time order in #1754.What
typed_storein the format it is made in: the view's on a typeless or castable texture, the texture's otherwise (viewed_format, pure).once!warning names it.unordered_views_are_checked_in_the_format_they_are_made_in.shortcut, also in the code: the title's writes to such a texture are lost. Packed 16-bit formats need their own unordered path (a
R16_UINTalias or similar) to keep them.Tested
RTX 5060 8 GB, driver 32.0.16.2124, Windows 11 26300; title 1.0.2.1, Series X profile; diag build,
VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, shader cache warmed withtranslate --cache.70564ae70564ae+ this PRINVALID_CALLremovalan unordered view in a format the host cannot storeThe run then stops on two known NVIDIA problems this PR does not touch:
no dynamic slots for its tableson the capped view heap (#747, #1349) and, later,DXGI_ERROR_DEVICE_HUNGin the world (#71).Checks:
cargo clippy --workspace --all-targets --locked -- -D warnings: passedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passedcargo xtask policy: passed (174 files)cargo test --workspace --locked: 472 passed, 5 failed. The 5 fail the same way on70564aewithout this change on this machine:victory-gpudynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views(checked on an untouched checkout), andvictory-shadera_heap_buffer_read_by_element_takes_the_views_stride,a_heap_buffer_read_where_no_buffer_view_is_reads_zerosandgathers_at_a_level_match_the_hardware(a crate this PR does not change).Not run on AMD or Intel; on a host that supports typed UAVs of
B5G5R5A1_UNORMnothing changes, sincetyped_storereturns true there.