GPU: check every unordered texture view against the host's typed-store support (#1754) #1780
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1780
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1780"
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?
@LarryBebou on GitHub · 2026-11-24 22:25 UTC · original
LarryBebou:fix/unordered-view-host-format→main· +29 −1 · 1 files · 1 commits · openFixes 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.@DesertGamer on GitHub · 2026-11-24 22:34 UTC · original
VIctory V2: community PRs, merged and tested
Open 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).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
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:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@Vedoxdev123 on GitHub · 2026-11-24 22:56 UTC · original
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060:
cargo test -p victory-gpu --lib-> 77 passed; 2 failed; 1 ignored (up from 76 passed onmain; the new test passes, and the 2 failures are the known 1,000,000 view heap cap tests tracked in #1744).@Marvisak on GitHub · 2026-11-25 06:18 UTC · original
Automated triage for the maintainers.
Proposed close: duplicate of #1763.
viewed_formatand the widenedtyped_storecheck infits(crates/victory-gpu/src/descriptor/host.rs) check every unordered view in the format it is made in. That fixes theB5G5R5A1_UNORMdevice removal in #1753/#1754. #1763 makes the same change to the same function (itstargetis yourviewed_format). It merges cleanly, was triaged first, and also covers theview == 0arm, which this PR leaves returning!typelesswithout a store check.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
triage: proposed closelabel.Generated by Claude Code
@KainanP on GitHub · 2026-11-25 19:36 UTC · original
RTX 4060 Laptop (610.47), merged onto main
13f91cae: the B5G5R5A1 UAV half crashes the process (access violation 0xc0000005) on a UAV without a description, becauseview == 0returns before the new check; the B4G4R4A4 half still removes the device; no new failures otherwise. Details and the side-by-side table with the other #1753 PRs: #1753. Tested with the help of an AI assistant (Claude Code).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.