Repository navigation
GPU: refuse typed UAVs in unsupported formats regardless of family or castability - #1763
n-romanovich wants to merge 2 commits into
Conversation
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. |
catminou4
left a comment
There was a problem hiding this comment.
Static review only: Windows-only code (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; source review of the diff.
Typed UAVs in unsupported formats are refused regardless of family or castable-ness: unsupported_typed_uav_format_is_refused pins the refusal. This tightens view validation — please confirm the format list matches what the hardware tests cover, since over-refusal breaks titles that worked.
|
Tested on an RTX 4090 (Ada, 32-lane waves, driver 621.01), Windows 11 build 26300, 32 GB RAM.
So on this card it fixes the #1753 / #1754 removal. What stops it next, about 13 s into the world: 1.2 then 0.4 fps with 2,587 to 3,013 draws dropped per frame, then Run and written up with Claude Code. |
|
Overlap for the reviewers: #1775 (22:20) and #1780 (22:25) make the same change as this PR (22:09). In AI-assisted (Claude Code). |
|
Tested
So the startup INVALID_CALL from #1753 is gone on this card. The later failures look like the existing NVIDIA problems rather than this PR: the diag run still logs 185 One remaining debug-layer note on the same texture: |
|
All review feedback has been addressed in
Verified on Windows (
|
|
Tested in the title on an RTX 3050 6 GB Laptop (driver 32.0.16.2124, Windows 11 26300):
One run. Details and the comparison with a sampler-heap change: #1754 (comment) AI use: Claude Code (Claude Opus 5.5) ran the build and wrote this; the results are from the run described. |
|
Another NVIDIA data point for this problem: RTX 3070 Ti Laptop 8 GB (driver 596.36, 32-lane waves), 16 GB RAM, Windows 11 26300, Series X mode, I tested my own local equivalent, not this PR's commit: in
Some of the runs also had local diagnostics (probes, per-list submission, reserved textures), so this is not a clean A/B beyond the view check itself. Where the device goes. The debug layer is not installed here, so I checked So it is the view in the texture's own family that gets past What this does not fix: later, as the world loads, this machine still loses the device with AI use: Claude Code (Claude Opus 5.5) did the diagnosis and wrote this; posted at the request of the person whose machine ran the tests. |
Backport Marvisak#1763 (related to issues Marvisak#1753 and Marvisak#1754). The integrated host.rs is byte-identical to the independently tested PR head. Windows MSVC-target GPU test compilation passed with blake3/pure only in a disposable Linux check. The source PR records one RTX 3050 Laptop Windows 11 menu run with no early removal; no exact target machine run here.
|
I tested this on a Blackwell card, and it clears the boot-time removal reported in #1754 and #1753. Setup
main
This PR (
The No retail data, logs or screenshots are attached. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Recommended for a maintainer's look. Generated by Claude Code |
dbd4fc2 to
65c4b32
Compare
|
@Marvisak, rebased onto the current main and resolved the conflict in crates/victory-gpu/src/descriptor/host.rs. |
|
Windows 10, RTX 3070, rebased head Setup: RTX 3070 8 GB, driver 621.14, Windows 10 22H2 (19045).
With this PR the two 15-minute runs match within run-to-run noise (122 vs 121 submissions over 250 ms, 0.85 vs 0.9 fps at the end). Since #1775 is proposed for close as a duplicate of this PR: on this card and Windows 10 I see no case #1775 covers that this one doesn't. Not checked: the removal with the debug layer on (so not shown that it is the same No game data attached. I'm testing with Claude's help, and Claude drafted this comment. |
|
RTX 3080 Ti Laptop 16 GB (Ampere, 32-lane waves, driver 621.40), i7-12700H, 32 GB RAM, hybrid graphics (Iris Xe), Windows 11 26300. Diag build,
So it does what it says on this machine too. What came next is the world-entry problem (#71), not this change, but one detail may be useful: about 3 s into world loading Windows reset the GPU ( AI-assisted (Claude Code). |
|
One more NVIDIA data point for RTX 5070 (non-Ti), driver 616.92, Windows 11, diagnostics build (
Not fixed by this PR, and not expected to be: the host view heap is still capped at 1,000,000 of the 1,245,184 descriptors asked for, and the frame is still unlit on These were runs of the title with my own local copy of its data on my PC; only the logged messages and counts are quoted. AI-assisted |
|
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at |
Xvania7
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, head 50d91b1, Windows 10 x64 19045, NVIDIA GeForce RTX 5060, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib -- --test-threads=1 descriptor::— 11 passed, 1 failed (unrelated baseline #1835 NVIDIA 1M heap limit indynamic_slots_are_held_until_released; newsupported_typed_uav_formats_are_acceptedandunsupported_typed_uav_format_is_refusedpassed)cargo test -p victory-gpu --lib -- --test-threads=1 draw::tests::— 4 passed, 1 failed (unrelated baseline #1999 Win10 in-boxID3D12Device10failure ina_texture_written_in_one_format_reads_in_another_through_a_placed_view)cargo clippy -p victory-gpu --all-targets -- -D warnings— 0 warnings
Clean typed-UAV format validation (addresses NVIDIA 0x887A0001 on B5G5R5A1_UNORM / unsupported formats).
…evice removal, head 50d91b1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in game, 0 programs lost Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #1753
Fixes #1754
Related: #1755, #1758
fits()incrates/victory-gpu/src/descriptor/host.rspreviously checkedtyped_store()only whencast && family(view) != family(own). When a typed UAV used the texture's own format, a default view (view == 0), or a same-family cast (such asB5G5R5A1_UNORM),CreateUnorderedAccessViewwas still called on formats withoutD3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW, triggeringDXGI_ERROR_INVALID_CALL(0x887A0001) on NVIDIA.typed_store()forunordered == trueinfits(), includingview == 0and same-family/non-castable targets.unsupported_typed_uav_format_is_refused.AI-assisted; verified with
cargo test -p victory-gpu --locked -- unsupported_typed_uav_format_is_refusedandcargo build --release --locked -p victoryon Windows 11 / RTX 5060 Ti.