GPU: unordered views only in formats the host can store (#1753) #1775
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!1775
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1775/head"
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?
@JurajSimicevic on GitHub · 2026-11-24 22:20 UTC · original
JurajSimicevic:gpu/uav-typed-store→main· +88 −2 · 1 files · 2 commits · closed without mergingFixes #1753.
What
fitschecked the host's typed-store support (typed_store) only for an unordered view cast to a format of another family. An unordered view in the texture's own format, with or without a description, skipped it. The title makes one on aB5G5R5A1_UNORMtexture a few seconds after start; NVIDIA has no typed UAVs of that format, andCreateUnorderedAccessViewthere removes the device (DXGI_ERROR_INVALID_CALL). Somainstopped at boot on every NVIDIA host.Now every unordered texture view is checked in the format it is actually made in: the requested one, or the texture's own where the view takes it (a typed texture's view in another format of its family it isn't castable to). A view the host can't store leaves the slot null, as the other refusals in
fitsdo, logged once ("an unordered view in a format the host cannot store"). Shader views and buffer views are unchanged.Tests
New
descriptor::host::tests::unordered_views_only_in_formats_the_host_stores: anR8G8B8A8_UNORMtexture allowing unordered access takes unordered views; aB5G5R5A1_UNORMone (made castable, asresourcemakes it) takes them only iftyped_storesays the host stores the format, with and without a description, and still takes shader views. With the old check put back, the test fails on the RTX 5080 (left: true, right: false); it skips where the host refuses such a texture. It also passes with--features diagnosticsandVICTORY_D3D12_DEBUG=1.cargo clippy --workspace --all-targets [--all-features] --locked -- -D warningsis clean.cargo test -p victory-gpu --locked: 78 passed; the 2 failures are theHEAP_VIEWStests fixed by #1751 (failing onmainon NVIDIA too).In the game
RTX 5080 (driver 32.0.16.1742), Windows 11 26200, diag build with the debug layer and DRED,
mainat70564aeplus this change, two runs:view=86 own=86) and the boot goes on: menus and loading at 30 fps, then into the world, where the title card of the first mission renders. Plainmainstops ~6 s after start on the same machine.DXGI_ERROR_DEVICE_HUNG) after 1.5 to 5 minutes in the world.Worth knowing, not from this change: in the world, GPU time per frame is now 4.8 to 6.9 s (median of the last six frame lines), against about 170 ms on
ffe310eon the same machine. This change only leaves one view null; something in tonight's merges (betweenffe310eand70564ae) costs it, and on NVIDIA it wasn't visible before because the boot stopped first.AI-assisted (Claude Code).
🤖 Generated with Claude Code
4118f33) into gpu/uav-typed-store b0799091b4@DesertGamer on GitHub · 2026-11-24 22:23 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.
@JurajSimicevic on GitHub · 2026-11-24 22:50 UTC · original
For the reviewers: #1763 makes the same change and was opened 11 minutes before this one (this one follows the claim in #1633 at 22:02). Either fixes #1753; this one adds the in-game check on the RTX 5080 and the reviews above (RTX 5090, RTX 3080). Happy for whichever reads better to go in.
AI-assisted.
call [r9+0x30]at the account-picker → world transition; a second crash overruns a 24-byte-stride table; crash-log appends interleave #2025@Marvisak on GitHub · 2026-11-25 06:17 UTC · original
Automated triage for the maintainers.
Proposed close: duplicate of #1763. This changes
fitsincrates/victory-gpu/src/descriptor/host.rsso that every unordered view, not only a cast one, is checked withtyped_storein the format the view is actually made in. That is the right fix for theB5G5R5A1_UNORMdevice removal in #1753. #1763 makes the same change to the same lines: theview == 0arm andtarget = if !typeless && !cast { own } else { view }. It merges cleanly and was triaged first, with host tests for the typeless and castable cases.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
@JurajSimicevic on GitHub · 2026-11-25 07:08 UTC · original
Closing as a duplicate of #1763, which makes the same change to the same lines and came first (as the triage above says).
AI-assisted.
Pull request closed