Windows 10 needs the Agility SDK; with it, a console-format UAV removes the host device #2307
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#2307
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@gabrielfriasw on GitHub · 2026-11-25 10:15 UTC · original
Two findings from a fresh machine (RTX 3070, Windows 10 22H2) on
main940d32f.pipeline's root signature is refused and nothing draws. PR #175 fixed this but was
closed without merge, so
mainstill has no path for Windows 10 users.no UAV form for removes the device. The title reaches the account selector and
runs at a steady 30 fps, but the screen content stays black.
Both are reproducible from a clean checkout. I ran them on one machine only; the
second one is the reason for this report.
Machine
940d32f,--profile diag --features diagnosticsb99f876b…)Descriptor heap probe on this adapter:
CreateDescriptorHeapaccepts up to2^19 = 524,288 shader-visible CBV/SRV/UAV descriptors (2^20 fails with
E_OUTOFMEMORY); sampler heap of 2048 is fine.1. Agility SDK on Windows 10: 0 of 27,044 pipelines
victory translate --cache --pipelineson a warmed shader cache (25,985 containers,25,678 translated, 307 refused):
Every refusal is
D3D12SerializeVersionedRootSignature. The pre-build silences thelog (
tracing::Dispatch::none()inpipeline::Pipeline::make), so I added atemporary
eprintln!at the four refusal points inpipeline/host.rsand one forthe serialiser's error blob. Both were reverted;
git statusis clean.0xc00=D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED(0x400) |D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED(0x800). Windows 10'sin-box
d3d12.dllrefuses them; this is the same failure PR #175 describes.With the Agility runtime app-local (package
Microsoft.Direct3D.D3D121.620.2,SHA-512
d683ff7f…693032735as nuget publishes it,D3D12Core.dllin<target>/<profile>/D3D12/, andD3D12SDKVersion = 620/D3D12SDKPath = ".\\D3D12\\"exported from
victory.exe), the same command gives:So the Agility runtime turns 0 into 26,641 pipelines. Without it, Windows 10 users
see no world at all. Since #175 is closed, I reproduced its essential parts on a
local branch (not proposed here as a patch, since the maintainer closed it
deliberately — I'd rather ask what the preferred shape is:
cargo xtask agility, aVICTORY_D3D12_RUNTIMEvariable, or something else).Note the pre-build is not deterministic in its "shader not found" count: 8 on the
first run and 23 on the second, same pack, same machine, because a pipeline that
wants a shader another record provides is skipped depending on order.
2. A console format without a host UAV form removes the device
With the Agility runtime in place,
victory run <exe> --executegets through load(4 title DLLs mapped,
0 missing, both devices created, pipelines from the library)and dies 39 s in, on the first submission with draws:
VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1names the call:With the allocation path patched (below), the next call to fail is the view:
What the formats are on this host
Measured with
CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT):R8G8B8A8_UNORMR8G8B8A8_TYPELESSB5G5R5A1_UNORMB4G4R4A4_UNORMTwo things follow.
often does (
27→28).host_desc()already does this for sRGB(
resource.rs, "The host has no sRGB unordered access"), but not for the generalcase.
victory-gpupasses console format numbers straight through (
pc_format()only remaps 118-120),and
element()lists 85, 86 and 115 as console formats of two bytes per texel —so the numbers arriving here are console numbers that happen to be valid DXGI
formats with different meanings. That is how a texture ends up asking the host for
ALLOW_UNORDERED_ACCESSin a format the host cannot store to.Patch that removed the crash
In
crates/victory-gpu/src/resource.rs,host_desc(), after the sRGB substitution:typed_store()(descriptor/host.rs) already asked the device whether a format hasD3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW; it is nowpub(crate), and it nolonger caches its answer when no host device exists yet (a query before device
creation used to cache
falsefor the rest of the process, which silently dropped theflag from textures created later).
fits()already refuses a UAV view whose texture lacks the flag, so the"no typeless" branch degrades to a refused view rather than a device removal.
Result
Device removals 0, and the run reaches the account selector and presents frames:
VICTORY_CAPTUREconfirms the presented frame is what the window shows: thedark background and the "SELETOR DE CONTA … PLAYER" strip, and nothing else.
Still broken: the menu draws almost nothing
The screen content that should be there (logo, art, list entries) is missing, and
1 root-view slot/framelooks far too low for 13 draws. I have not chased thisfurther; it may or may not be related. Worth noting for whoever picks it up:
VICTORY_D3D12_DEBUG=1reports1 root-view slots/frameand the run logsrefused buffer viewonce.Unrelated, but seen in the same runs
host view heap capped at 1000000, count=1245184with 310,720 ×title slot past the host heap. The title asks for 1,245,184 descriptors;PORTABLE_VIEWSis1,000,000 while translated shaders clamp heap indices below
HEAP_VIEWS= 2^21 =2,097,152, so indices between 1,000,000 and 2,097,152 point past the end of the heap
(
descriptor/host.rscalls this a shortcut: "a title that reaches them needsremapping"). This adapter takes 2^19 and fails 2^20, so 1,000,000 is not a limit of
the hardware. The 310,720 warnings also make
VICTORY_LOG=infoproduce 622,034lines, most of them the same line; the highest-slot diagnostic could be a counter
per frame instead.
Reproduce
No game data is in this report: formats, offsets, hashes and counts only.
Happy to split this into two issues (Agility on Windows 10; the UAV format removal) if
that suits the tracker better — say which and I'll re-file them separately.
@Marvisak on GitHub · 2026-11-25 18:48 UTC · original
Automated triage for the maintainers.
Both parts check out against main.
D3D12\D3D12Core.dllwhen it is present, but it needs a rebase. The shape you asked about (xtask, variable or other) is the maintainer's call, so it belongs on #84.host_descincrates/victory-gpu/src/resource.rs. It removesUNORDEREDonly for depth textures, and changes the format to the typeless family only for sRGB ones. SoB5G5R5A1_UNORMkeeps the flag and the device is removed. Open PR #2319 drops the flag for formats with no typed UAV and no family to fall back on, and logs the format. Your patch also changes non-sRGB formats to their typeless family when that family has a typed UAV, which #2319 does not do. #2291 is the same failure on an RTX 5070 Ti.The heap cap you mention (
host view heap capped at 1000000, slots past it) is a separate subject. Please keep it to its own issue if one is not already open.Generated by Claude Code
@potatoe0100 on GitHub · 2026-11-26 14:12 UTC · original
An update on where this stands on current
main(63bcca4). TheB5G5R5A1_UNORMunordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops theGetResourceAllocationInfoquery from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080.The
B4G4R4A4_UNORM(format 115) render target still has no stand-in onmain; #89 and #2767 are the open PRs for it. A rerun on63bcca4would show whether anything fatal is left.AI-assisted (Claude)