Cutscene: audio + subtitles work, the video frame does not — two 2560x1440 textures fail CreateCommittedResource (E_INVALIDARG) #797
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#797
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?
@bittertea0323 on GitHub · 2026-11-24 11:08 UTC · original
Cutscene: audio + subtitles work, the video frame does not — two 2560x1440 textures fail
CreateCommittedResource(E_INVALIDARG)This is a separate blocker from the shader translation issues in #784. It explains "background music and
subtitles play, the picture is black" during the intro cutscene.
Evidence
The cutscene opens
G:\\movies.rpfand connects the audio decoder (256 streams), i.e. it is Binkvideo, not a realtime 3D scene:
Immediately after, its two frame textures fail to be created:
(
dimension: 3is correct here —texture_layout()maps 3 toTex2d, matchingTEXTURE_2D = 3.)Where it comes from
crates/victory-gpu/src/resource.rs:The description then goes straight into
CreateCommittedResource, which rejects it. So on this titlethe console formats 86 and 115 have no valid D3D12 equivalent as they are currently emitted.
What I would like to know / propose
element()'s table(
48..=59 | 68 | 69 | 85 | 86 | 115 => (2, 1)), and they are used for 2560x1440 video frames —so they look like 16-bit-per-channel or 16-bit-two-channel video formats rather than ordinary
colour. If the console's format table says what they are, the right PC mapping is probably a
two-channel 16-bit UNORM/FLOAT format rather than the B8G8R8X8-like number the DXGI enum happens
to give 86.
dimension: 3+flags: 5+format: 86a known combination (a video plane as aTexture2Dwithout RTV/DSV flags)? Ifflags: 5implies some view the host refuses, that wouldfail the call even with a legal format.
no host texture, log theformat with its
element()bytes-per-texel and the fullflagsword, then retry once withR16G16_UNORM/R16G16_FLOATso the cutscene has a chance to show something and we learnwhether the format was the only obstacle.
This path is worth fixing on its own: it does not depend on any of the shader work, and the intro
movie is the first thing a user sees after the start screen.
Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, VIctory
main+ #729 exports.@lucaseddd on GitHub · 2026-11-24 11:17 UTC · original
PR #89 already handles these exact packed formats on devices that cannot expose the requested render-target or typed-UAV support: DXGI 86 is B5G5R5A1_UNORM, and 115 is B4G4R4A4_UNORM. The patch widens those textures to RGBA8 and includes packed transfer conversion. This addresses the allocation failure without guessing a different channel layout.
On a Windows 10 + RTX 3060 test with #89 adapted onto
ffe310e, both formats took the RGBA8 fallback, but the first mission cutscene still played with audio and subtitles over a black image. That confirms the fallback was exercised and leaves the remaining cause open; the two allocation failures alone did not account for the black image on this setup. AI-assisted testing and write-up.@bittertea0323 on GitHub · 2026-11-24 13:09 UTC · original
The format 86/115 failures were not the black-image cause — agreed, and here is what moved it
@lucaseddd's RTX 3060 result matches what we now measure on a 4070 SUPER: #89's RGBA8 fallback
fires,
no host texturedrops to 0, and the video/cutscene picture is still missing.The probe this issue was left at — "is the sampled descriptor empty?" — is now answered:
draws=1→ 0The pipeline descriptor → host view → sampler → composite → present works end to end for the
artwork and text. The picture is lost at exactly one draw after entering the world, not at
texture creation. The two
CreateCommittedResourcefailures in the title are real but are notwhat blackens the frame.
How to reproduce the discriminator
A diag build logs each present as the brightest probed channel of the last frames
(
victory_gpu::queue: a black frame after ...).44is the clear colour,231–251is theartwork/card,
0is black. On both our hosts the world never produces anything above44after the entry draw, so the next probe is that single draw and what its mesh outputs write.
Not measured yet: pixel content of the 2560×1440 MRTs the world's 72 mesh draws render into.
@x3ero0 on GitHub · 2026-11-24 19:13 UTC · original
A side-by-side of the five open PRs that touch these two textures (#55, #1040, #581, #968, #89), on one machine. Short version: all five get both textures created, none regressed anything I could see, and in the part of the title I can reach nothing ever renders into them, which agrees with the comments above that 86/115 are not the cause of the missing picture.
Setup: RTX 5080, driver 620.70, CachyOS (kernel 7.3.5), GE-Proton11-6's Wine, diagnostics builds cross-built with
cargo xwin, Series X 1.0.2.1, network off, menus driven byVICTORY_KEYS. Each PR was cherry-picked ontomainffe310e.To get past pipeline creation into the world on this card I needed three things under every variant:
d3d12.dll/d3d12core.dllbuilt from vkd3d-proton30b0eb9, #177 and #259.mainalone exits during world load here, with the Proton-bundled vkd3d-proton and with the newer one.no host textureffe310e+ #177 + #259Limits of this test
VICTORY_DUMP_TARGETS=1at frames from the menus through the first minute of the world, the only render targets bound are the three 3840x2160 ones, in every tree including the baseline. Neither 2560x1440 texture is bound as a render target in that window, so these runs cannot tell the four approaches apart by what ends up in them.+0x23cf683stop (#1118, #1286). Two of the five runs did not reach it within 150 s; with one run per tree I would not attribute that to the PRs.#89 needs a rebase. Onto
ffe310eit conflicts incrates/victory-gpu/src/list.rs:copy_resourceandcopy_texture_regionhave since gained thetitle_writtenuploads and thedefer_fillstaging path, in the lines #89 moves intoprepare_footprint_upload. I tested it as written, on its own base, and did not resolve the conflict myself.Reading the five diffs (not measured, since the textures are never used here):
Host::rtv.R16_TYPELESSwithR16_UNORM/R16_UINTviews, which keeps the size but not the channels.pc_formatfor every texture, including ones that are only sampled and uploaded at 2 bytes per texel, and does not convert those uploads. It also carries an unrelated Agility SDK change.CheckFeatureSupportlacks the use, and converts on uploads and copies.@aef200 on GitHub · 2026-11-24 19:31 UTC · original
On an RTX 4060 Ti (Windows 11 26200, native, no Wine) I get a picture where this issue reports a black one - with
fxceless/victory-gta6at6a2d9f9(that fork's shadow/trace commits on top offfe310eb),--features diagnostics,VICTORY_CAPTURE_FRAMESover 1000-1400.That is frame 1145: a man leaning on a car in the foreground, a woman behind it with her hands on the roof, a palm trunk, a lit window, and the Chinese subtitles drawn correctly. Frames 512 and 1024 (loading art) render clean too; 40+ of the 52 captured frames have content. The run reaches roughly frame 1400 and then stops at
+0x23cf683(#1118, #1286).I cannot tell from the logs whether 1145 is the Bink video or realtime geometry - you would know that from how the frame is produced, not from its looks. Either way the picture exists on this card, so whatever makes it work is somewhere in that fork's diff:
copystat.rs+1159,draw.rs+1573,descriptor/host.rs+1522,descriptor.rs+433, plus smaller changes intexture.rs,bcpack.rs,capture.rs, and one added dependency inCargo.toml.Two caveats so this is not oversold: the frame carries a strong red cast over the whole image (which is what made me think it is the lighting path, not the video path), and I have not diffed the fork against the five PRs above, so I cannot say which of them it subsumes or whether it fixes the same thing differently.
If a capture from a run with
VICTORY_DUMP_TARGETSon this card would help pin down whether anything renders into the two 2560x1440 textures, say what to look for and I will run it.@lucaseddd on GitHub · 2026-11-24 20:32 UTC · original
Thanks for the side-by-side comparison and the separate fork result. The texture-creation fixes and the rendered cutscene are distinct observations. Comparing the first frame with visible video against the same frame on main would help identify which fork change is needed.
@aef200 on GitHub · 2026-11-24 21:21 UTC · original
Same-frame comparison on one machine (RTX 4060 Ti 8 GB, Windows 11 26200, native D3D12,
VICTORY_CAPTURE_FRAMES=512,1024,1145,1200, no Wine), so this is the discriminator you asked for:ffe310eb1684989host pipeline refusedSo the first frame with a visible picture is not where main differs: main draws the loading art and the poster correctly, and its colours are actually better than the fork's (the fork's frame carries a red cast that main does not). The fork is not "rendering better" here - it renders worse in colour and it separately gets much further.
What separates them is pipeline creation: 143 refusals on main against 0-2 in the fork, and main then stops during the cutscene while the fork reaches the prologue gameplay and only stops much later. That matches your reading that texture creation is a distinct issue from the picture being lost - on this card the picture is not lost at all until after the pipelines start being refused.
If it helps narrow the fork change: the fork's own README lists its rendering fixes, and the two that look most relevant to a count of 143 refusals are "meshlet culling read its scene buffers as the wrong kind of view" and "implicit-level samples outside pixel shaders produced invalid DXIL in 730 compute programs". I have not bisected them.
@lucaseddd on GitHub · 2026-11-24 21:22 UTC · original
Thanks for running the two builds on the same machine. Since the upstream run stops before the matching 3D shot, the next comparison I would make is by the first shared rejected pipeline: shader stages, creation error and the D3D12 debug reason. That would distinguish pipeline fixes from the separate colour regression you observed.
@aef200 on GitHub · 2026-11-24 21:29 UTC · original
The shared rejected pipeline is easy to name:
compute 02384a60fda6f2d0. It is refused on both the upstreamffe310erun and the fork1684989run, same machine, same switches.For that one, and for every other refusal in the fork (five in total), the detail is identical:
The five hashes in the fork are
2da4beb386509b77,369cbe906ea72764,02384a60fda6f2d0,2cc4c197ee29e291,6b82bc7d22016cb5. Upstream rejects 143; every debug line I read among those is the same wave-lane error.This is with
VICTORY_WAVE64_EMULATE=emulateset on both runs, so it is not mode selection: these programs still emit a 64-lane wave after the emulation path runs. That matches the class #1132 describes - #439 leaves programs whose groups are larger than 64 threads refused, and #189's multi-wave exchange is what covers those.So on this card the two observations separate cleanly:
I have not bisected which fork change causes either - both statements come from logs of whole runs, not from single-change builds.
@Marvisak on GitHub · 2026-11-25 03:53 UTC · original · edited 2026-11-25 15:45 UTC
Automated triage for the maintainers.
Still present on
main(da82e44).pc_formatandhost_descincrates/victory-gpu/src/resource.rspass formats 86 (B5G5R5A1_UNORM) and 115 (B4G4R4A4_UNORM) through unchanged and keep the render-target or unordered-access use (flags 5 and 1 here). Hosts that lack that support refuse the texture, andno host textureis logged.Open PRs that address it:
Later reports of the same two textures: #904, #1600 and #1952. The NVIDIA device removal on B5G5R5A1 typed unordered access is tracked in #1753.
The comments show that these two textures are not why the cutscene picture is black. With them created, the picture is still missing. The runs that do get a picture differ in compute pipelines refused for 64-lane waves on 32-lane hosts, which is tracked in #71 (#1132 compares the wave64 PRs). The latest comment adds a data point from a fork with several changes: a partly visible cutscene on an RTX 3060 Laptop while some of those wave64 refusals remain. That is not a test of
main. This issue covers only the texture-creation failure.Generated by Claude Code
@lucaseddd on GitHub · 2026-11-25 13:40 UTC · original
One comparison point for the #850 follow-up and the Wave64 investigation in #71. On native Windows 10 22H2, RTX 3060 Laptop 6 GB, NVIDIA 591.59, I saw the opening 3D image with audio and subtitles on the fxceless fork (
310c6eb6plus the VIcky integer-target blend fix and fxceless #610, one mip dropped). Some geometry was visible while parts of the character and terrain remained black. That run still logged E_INVALIDARG on compute hashes 02384a60fda6f2d0, 2cc4c197ee29e291, 369cbe906ea72764, 5dc3b25986622949 and 6f225b641c5b0708, including after the compile queue drained. Their presence in the refusal log can therefore coexist with a partially visible cutscene on this fork.This is a fork result with several changes and a different rendering path. It does not test #876 or #2158 against current VIctory main, and it does not attribute the remaining dark surfaces to any one shader or to the two texture descriptions tracked here. The build and performance details are in https://github.com/fxceless/victory-fork/pull/610#issuecomment-7152690966.