Repository navigation
GPU: refuse typed UAVs in unsupported formats regardless of family or castability - #1763
n-romanovich wants to merge 4 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. Needs work. Thanks for rebasing; it merges cleanly now. After the rebase, though, the fix itself is no longer in this diff: To make it mergeable as what it now is: retitle it and rewrite the description as tests for CI: passing ( 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. |
…support # Conflicts: # crates/victory-gpu/src/descriptor/host.rs
|
Confirmed startup fix on an RTX 5080 (NVIDIA driver 621.40). On unmodified main With PR #1763 at |
|
RTX 4060 Laptop (610.47), merged onto main 13f91ca: B5G5R5A1 UAV half fixed (views refused, both with and without a description), B4G4R4A4 target half still removes the device; no new failures. Also tested together with #2626 (small conflict in |
…support # Conflicts: # crates/victory-gpu/src/descriptor/host.rs
…ess of family or castability) descriptor/host.rs tests: main's image-descriptor size test and Marvisak#1763's typed-UAV format tests both kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream main merged Marvisak#2143, Marvisak#2162, Marvisak#158, Marvisak#1906 and Marvisak#1152 and took up what Marvisak#1769 (LDS bounds, Marvisak#1949) and Marvisak#1763 (typed UAV formats, Marvisak#2462) did; main's code is kept for those. - emit/lower.rs: ds_bpermute within each half (main's Marvisak#573, same as Marvisak#439's); LDS bounds as main's Marvisak#1949 (Marvisak#1769's test-only counter kept, its and_guard dropped); title-memory marks: main's straddling-write lookup (Marvisak#2484) with Marvisak#2167's current head (3cb308d, rebased on 63bcca4): guarded dirty atomics, raw_dword2, memory_null, synthetic_mark_dxil in lower/mark_tests.rs; the old Marvisak#2167 head taken out first. - emit/host.rs: main's shared WARP device and lock (Marvisak#244) with Marvisak#439's adapter list and Host::on (create_device takes an optional adapter). - descriptor/host.rs: main's Marvisak#2462 format checks; Marvisak#1763's tests kept. - gpu host.rs: main's multi-plane present with Marvisak#2310's crumbed copy. - pipeline.rs: Marvisak#2118/Marvisak#2311's builder and BVH checks with main's skip hashes (Marvisak#1320); draw.rs, shadow.rs, main.rs: both sides. - Tests main added since get Marvisak#439's Parts fields and emit's Target. - README: base 63bcca4; rows of PRs merged upstream, superseded or closed taken out, with a note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous renderer (old upstream base 940d32f) is the first parent and is also kept as the branch renderer-2026-11-25-oldbase; the second parent is the rebuild: fork main (upstream main 63bcca4 + our pull requests) with the renderer stack merged on it: Marvisak#439 (on main: update/439-main's resolution), Marvisak#2309, Marvisak#2167, Marvisak#2118, Marvisak#2311, Marvisak#1722, Marvisak#1751, Marvisak#688, Marvisak#1872, Marvisak#2292, Marvisak#2310, Marvisak#2112 (opt-in), Marvisak#2230 (latch on by default), Marvisak#2389, Marvisak#2088 (small windows opt-in), Marvisak#2099's new head, and tonight's Marvisak#491 journal fixes. Merged upstream since: Marvisak#2143, Marvisak#2162, Marvisak#158, Marvisak#1906, Marvisak#1152; superseded by main: Marvisak#1769, Marvisak#1763, Marvisak#2366. The picture on this base still shows the overlay that plain upstream main shows too; that is being looked into. 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.