GPU: a render or depth view description with an unknown format names the resource's on a typeless host copy #2279
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!2279
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2279"
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?
@denkencar-sketch on GitHub · 2026-11-25 09:29 UTC · original
denkencar-sketch:fix/desc-002→main· +36 −12 · 1 files · 1 commits · openSummary
A render or depth view description with an unknown format was passed to a typeless host copy with that format, which the host refuses. Only descriptionless views were given the format; a described view with an unknown format now takes the resource's.
Testing
Test
an_unknown_format_in_a_view_description_is_the_resourcesfails without the substitution and passes with this change.cargo test --workspace --lockedpasses apart from the known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).Not tried: a real typeless depth view, and a run in the game.
AI-assisted.
@DesertGamer on GitHub · 2026-11-25 09:37 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.
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:14 UTC · original · edited 2026-11-25 10:22 UTC
I tested the real typeless-depth case called out in the PR. 9b1a21f adds one test directly on 132472838c090346c18b3af5dd1df4c04ba33689.
A guest D32_FLOAT resource creates an R32_TYPELESS host texture. With the main descriptor code from
940d32f69b, the same test receives DXGI_FORMAT_UNKNOWN from the view decoder and stops before creating the DSV. On this PR it receives D32_FLOAT, records a host clear and reads back 0.375 from all 16 depth values on WARP. The full GPU suite on WARP passed with 148 passed and 2 ignored. Strict Clippy in both modes and the repository policy check passed.Please preserve the test's Git author if you take it. If you fold it into another commit, please add:
Co-authored-by: andrewpozdnakov7-jpg [email protected]
AI-assisted. Synthetic tests only.
@Marvisak on GitHub · 2026-11-25 13:32 UTC · original · edited 2026-11-26 01:22 UTC
Automated triage for the maintainers.
Merge candidate. Rebased; it merges cleanly again. In
crates/victory-gpu/src/descriptor.rs,RtvRecord::host_descnow goes throughhost_words: a view that has a description but names the unknown format (0) gets the format fromresource::view_format, just as a view without a description already did. A typeless host copy cannot take an RTV/DSV with an unknown format. Views with a typed host copy, and views that name a format, are unchanged. The new testan_unknown_format_in_a_view_description_is_the_resourcescovers those cases and thepc_formatmapping (118 -> 20).CI: passing (
check).Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.