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#904
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?
@DavHsiao on GitHub · 2026-11-24 13:50 UTC · original
[RTX 5060 Laptop 8 GB] Series S + #211 + #578: menus and loading art render, world stays black; missing
pc_formatfallbacks (85/86/115, 67) andhost view heapcappedKind: reproduction data + two PR verifications + one format-fallback finding. No game files, no dumps attached.
Environment
main@c7a5f49; patches applied locally as described belowcargo build --profile diag -p victory --features diagnosticsgame_scarlett_master.exe, BLAKE3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93Run line:
with
VICTORY_LOG=info VICTORY_CAPTURE=<dir> VICTORY_KEYS=20:Enter,35:Enter.Result summary
0x80070006E_OUTOFMEMORYon pipeline creationpc_formatfallbacksno host texture= 01. #211 fixes the Series S black screen (confirmed working)
Unpatched
queue::presentreads onlyplane_parameters[0]. In Series S mode the title presents two planes, and the picture lives in plane 1 (3840×2160 UI/scene overlay), so the window shows only the 1080p plane 0, which is black during menus.With #211 applied:
Before #211 every captured frame was a 1,586-byte all-black PNG. So the PR does what it says on this GPU.
2. #578 removes the TDR, the world then renders black (matches #778)
With #211 + #578, Series S runs 8 minutes in the world without a device removal:
with exactly the two refusals the PR intends:
The picture is still black, as #778 predicted. On this card 8 minutes is the longest stable world run we could get; the earlier 100–133 s failures were all
DXGI_ERROR_DEVICE_HUNG.3. "Under the black frame": there is no displayable target (Series S, 8 GB)
With the diagnostics subset of #638 (
VICTORY_SHOW_TARGET=busiest,VICTORY_CAPTURE_BUSY=150,4; both unmerged, somainalone cannot reproduce this section — the underlying driver refusals are section 4 and do reproduce onmain), the frames the title's own presented plane is black on have no displayable render target at all:World frames (2,378–2,396, 1,300–6,300 draws each) capture as 640×360, every sampled pixel
(0,0,0)— i.e.shown()found no target that is ≥1280 wide, 16:9 and displayable, and the present fell back to the title's own (black) plane 0.That is not "the world is dark": the world's colour targets did not exist on the host, because of section 4.
4.
pc_formathas no fallback for three formats this driver refuses as render targetsThe world asks for two 2560×1440 targets that the driver rejects with
E_INVALIDARG:(format 86 =
B5G5R5A1_UNORM, format 115 =B4G4R4A4_UNORM; #778 reports the same two on an RTX 3070.)host_texture()callsCreateCommittedResourceonce and gives up. A stand-in table inpc_format()— which both the resource and the views go through — removes every refusal. This is proposed separately as its own pull request, since it is independent of both PRs above.Measured effect, same run line:
no host texturelines85|86|115 -> 28+ 67 -> 10So all three targets now exist, and the world is still black — the remaining cause is the dropped wave64 mesh/compute work from #578, not the formats. But the fallback is still worth having: without it these targets silently never exist, which makes every later stage of the frame meaningless.
Colours from the stand-in formats are wrong by construction (16-bit packed and shared-exponent data read as 8-bit/16-float); these are only for looking at frames, not for correctness.
5.
host view heapis capped below what the title asks for (Series X)Series X mode dies about 133 s in with a 34 MB host allocation failure, right after:
The title wants 1,245,184 descriptors, the cap is 1,000,000 (20% short). Series S stays under it, which is one reason it survives longer.
6. A TDR still happens ~225–240 s into the world with #578 applied
Every patched run ends the same way, well after #578's refusal messages:
TdrDelay/TdrDdiDelaywere raised from 10 to 60 in the registry for the later runs (not yet rebooted, so not in effect); the failing submission is 377–504 ms, so it is not a timeout being reported.Reproduction
Series S is the mode that gets furthest on an 8 GB card; Series X dies earlier (section 5).
Suggested split for review
DXGI_ERROR_DEVICE_HUNGwe saw, at the cost of the black world it documents.pc_formatstand-in formats for 85/86/115 (→28) and 67 (→10), so those render targets exist at all. Independent of 1 and 2;no host texturegoes from 2 to 0 in world frames.host view heapcap 1,000,000 vs 1,245,184 requested — needs the cap raised or the descriptor table path reworked before Series X can get past the world load.Attachments
rockstar-splash.png— Series S, #211 applied, frame 1024 (captured, not a window grab)world-loading-art.png— Series S, #211 applied, frame 2048world-frame-showtarget.png— Series S, #638 show mode, frame 2378: pure black 640×360world-loading-art-jason.png— Series X, frame 2048 (the second loading art)Related
#578turns the hang into a black world).DXGI_ERROR_DEVICE_HUNG), #233 (wave64 compute on 32-lane hosts).@MichaelSmithAI on GitHub · 2026-11-24 13:54 UTC · original
Could you share the original format-67
no host textureline from the run with just the packed-format fallback, including the fullResourceDescand HRESULT? If a completed-frame trace already identifies a view or a draw, dispatch or copy that writes that 1920×1080 resource, that would also help. Section 4 gives the flags for formats 86 and 115, and only the dimensions for 67.On an RTX 4090 under Wine/vkd3d-proton 3.2, ordinary 1920×1080 format-67 texture creation succeeded. The device reported shader sampling support, with render-target and typed-UAV support both clear. Format 10 reported all three capabilities. The probe queried support and created textures; it didn't execute a shader. A global 67→10 mapping would also change valid sampled textures from four bytes per texel (packed RGB with a shared exponent) to eight (RGBA16F), so guest uploads and copies would need conversion. The original flags will help distinguish an unsupported write usage from another creation failure. Microsoft’s format support table
Your same-host comparison also gives a useful boundary: the creation warnings fell to zero while the world capture stayed black. That leaves the producer of the presented image open.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 14:01 UTC · original
Integrated the suggested pc_format fallbacks (85, 86, 115 -> 28; 67 -> 10) in downstream PR #29, eliminating render target creation refusals.
@DavHsiao on GitHub · 2026-11-24 14:12 UTC · original
Thanks — the flags question has a clean answer on this host, because we have three format-67 creation attempts that differ only in flags.
Same host throughout (RTX 5060 Laptop 8 GB, driver 32.0.16.2124, Windows 11 build 26300,
main@c7a5f49plus the packed-format fallback):and, from a run that was short on memory at the time:
0x80070057isE_INVALIDARG.Read together, the three line up as:
0E_OUTOFMEMORY)4E_INVALIDARG5E_INVALIDARGSo on this driver format 67 as an ordinary texture is fine and as a render target or typed UAV is not. That looks like the unsupported write usage you were distinguishing from a creation failure, rather than the format being unusable at all. For completeness, the same pattern holds for the packed formats on this host: format 86 at 1280×720
flags: 5and format 115 at 1280×720flags: 1are both refused withE_INVALIDARG.You are right about the 4 → 8 bytes per texel problem, and it applies to the packed formats too (8 bits per channel standing in for 16). A global mapping in
pc_format()is the wrong shape: it also rewrites textures the title only ever samples. Better three ways, in order of preference:pc_format()pure and retryCreateCommittedResourceonce on failure with the stand-in, so only the resources that actually need it change.The downstream PR #29 integrated the global form of the mapping; it would be worth narrowing it there rather than propagating it.
On the completed-frame trace: I do not have one, and the reason is worth recording.
VICTORY_PRODUCERSlives in #638, whosedraw.rschange callsState::clear_vertex_buffers(), which is not onmain; applying that PR to a cleanmainfails to compile (error[E0599]: no method named clear_vertex_buffers), so I had to drop theproducersmodule and keep only the show-target part of #638. I can port the missing helper and rerun withVICTORY_PRODUCERS=1if that trace is what you need next.One more piece for "leaves the producer of the presented image open", in case it helps someone reading later: with #211 applied the presented plane on Series S is the 3840×2160 overlay, and the black captures in the show-target run came from
shown()returningNone— no target at least 1280 wide, 16:9 and displayable — so the present fell back to the title's own plane 0. That is a different statement from "the frame was rendered and is black", and I should have said so more carefully in the report.@DavHsiao on GitHub · 2026-11-24 14:13 UTC · original
Thanks for picking this up in #29. One thing worth folding in before it spreads: the mapping is broader than it needs to be, and the flags in the original reports say why.
On my host the same format is refused only for write uses, not in general:
R9G9B9E5_SHAREDEXP), 1920×10800(2560×1440 copy in a low-memory run)0x8007000E)4E_INVALIDARG(0x80070057)5E_INVALIDARGSo a global substitution in
pc_format()also rewrites textures the title only ever samples, and for 67 → 10 that doubles the bytes per texel (4 → 8), for 86/115 → 28 it doubles them again in the other direction (16-bit packed → 32-bit). Any upload or copy path that assumes the console's layout then needs a conversion that this change does not do.Two narrower shapes that fix the same refusals without touching sampled textures:
pc_format()alone and retryCreateCommittedResourcewith the stand-in only after the first attempt fails, recording the substitution per resource.Either keeps the "
no host texturecount goes to 0" result while leaving ordinary textures byte-identical to what the title expects.For reference, the runs behind those lines are in the main report above: Series S,
main@c7a5f49, RTX 5060 Laptop 8 GB, driver 32.0.16.2124.@Marvisak on GitHub · 2026-11-25 06:50 UTC · original
Automated triage for the maintainers.
Thanks for the careful A/B runs (RTX 5060 Laptop 8 GB, Series S,
c7a5f49). Where the pieces are tracked:main,pc_formatincrates/victory-gpu/src/resource.rsonly remaps 118–120, so formats 86/115/67 go to the host unchanged. Note that the format 86 resource also asks for unordered access (flags 5); open PRs #1843 and #1787 drop unordered access for formats the host cannot write, which may be the cleaner fix for that one. Your stand-in table would be welcome as its own pull request against currentmain.Generated by Claude Code
@potatoe0100 on GitHub · 2026-11-26 14:11 UTC · original
The Series S part (only plane 0 presented) now has a fix on
main: #1997 merged as0736f8band composites the extra PresentX planes. The world-side items here are still open.AI-assisted (Claude)