[GH #850] Cutscene picture missing while audio/subtitles render: elimination chain down to descriptor sampling (format, viewport, RTV, depth, upload all excluded) #850
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?
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T12:27:46Z.
Upstream labels: area: gpu, run report, gpu: nvidia
The cutscene picture is missing but audio and subtitles render: here is the elimination chain down to descriptor sampling
Posting the full chain so nobody re-runs these steps. Audio, subtitles and the menu UI render; the
cutscene picture and the 3D scene come out as flat clear colour (
0x20202C, captured, 99.8% oftexels plus 8 stray pixels). Everything below was measured on this host with a diag build.
What is already ruled out (with the evidence)
packed 16-bit render targets are R8G8B8A8_UNORM on this GPU format=86/115no host texturecount went 2 → 0viewport set x=0 y=0 w=3840 h=2160 min_z=0 max_z=1targets ["3840x2160 f28"](RGBA8, 4K)depth=D3D12_DEPTH_STENCIL_DESC { DepthEnable: 0 ... },cull=1(NONE)draw draw 3 from 0 topology 4 pipeline 0x9b0d2e00 ...,drawn=1textures 2.5 ms 12.7 MBper frame at the menuWhere it actually points
The frames that should show the cutscene reduce to a full-screen triangle whose only input is a
descriptor read:
vb 0x0 stride 0with three vertices is the normal full-screen-triangle form, so the geometry isnot the problem. The triangle samples
s0; if the view behinds0holds no data, the output isexactly the flat clear colour we captured.
So the remaining suspect is descriptor binding for sampled textures — the same family as the
a descriptor read only as dataclass (143 of the remaining translation failures in #784). That istranslator/runtime-internal work, and I am stopping here rather than guessing at the fix.
Why this is worth recording
suspects for the black-cutscene reports (#797, xcl#878), which is most of what those threads
speculate about.
s0+0descriptorresolves to (resource, format, and whether the resource has been written) at the draw that should
paint the cutscene.
Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, VIctory
main@ffe310e+ #729 exports +#89 core, diag profile.
Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T12:35:19Z.
Claiming a narrow diagnostic task: verify what the draw trace's reads field actually records and whether it identifies a pixel-stage texture sample. I'll document the source path and the smallest follow-up measurement here.
Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T12:36:11Z.
I finished the source check on the reported base
ffe310e. Two details change how I would probe this draw.The suffix
Descriptoris printed by the fallback that formats the translated root type. Only the table branch looks up a view. A populated direct descriptor and an unset one therefore produce the same suffix. Also,s0+0here is the guest user-data slot and table offset in dwords. The trace loops over every stage and prints the shader hash but omits the stage name. This line alone cannot identify a pixel texture or tell whether its contents are zero. Trace formatterThe draw trace is emitted before prepare. A successful DrawInstanced increments a global counter afterwards. To establish that this particular draw ran, correlate its pipeline with a successful prepare and the actual draw on the same list. Ordering
The smallest follow-up is to label the stage for this pipeline and check whether slot 0 appears in its root SRV bindings. If it does, distinguish three outcomes at bind time: missing Root::View, root_view returning None, or SetGraphicsRootShaderResourceView reached. This distinguishes two skipped-bind paths from a real bind without having to dump resource contents. If the slot belongs to the vertex stage, inspect the pixel stage separately before attributing the black image to sampled texture contents. Binding code
Source audit only, AI-assisted. The cause of the missing picture remains open.
Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T12:38:51Z.
I am implementing the trace formatter fix on current main: identify the shader stage and distinguish an unset direct root descriptor from a supplied guest address. This is scoped to diagnostics.
Imported from Marvisak/VIctory. Originally posted by MartinIndra02 on 2026-11-24T12:41:33Z.
Quick clarification from a local diag run on
main(ffe310e) that answers @lucaseddd's question and rules outdfafaf385b2f94e8as the cutscene texture sampler:dfafaf385b2f94e8is the vertex stage, not a pixel texture sampler (stage="vertex",user_data=0,samplers=0).06295fb1d1aefb78, bound together as early as frame 2) also hasuser_data=0,samplers=0, and zeroUsedResourceentries (which is whyreadsin the OP only lists the vertex shader'sdfafaf385b2f94e8 Srv s0+0: Descriptorand nothing from the pixel stage).So that 3-vertex draw is just a constant-color / background full-screen pass, not a broken texture-sampling video blit. The flat clear color means the actual cutscene video pass isn't drawing on top of it (dropped pipeline/dispatch or video decode path), rather than
dfafaf385b2f94e8'ss0+0descriptor sampling failing.Log metadata only; no game data posted. AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:43:11Z.
Following up on the elimination chain from @bittertea0323 and the source inspection by @lucaseddd, I put together a lightweight diagnostic patch to give full visibility into shader stages and
Root::Viewresolution:Branch: https://github.com/Xvania7/VIctory/tree/diag/issue-850-stage-logging (commit
a15266b)Diagnostic additions in
crates/victory-gpu/src/draw.rs:reads:reads()now prependsstage.shader.stage(pixel,vertex,compute, etc.) alongside the shader hash. This transforms the ambiguous line:reads ["dfafaf385b2f94e8 Srv s0+0: Descriptor"]into:
reads ["pixel dfafaf385b2f94e8 Srv s0+0: Descriptor(view 0x..., [no shadow])"]It also explicitly checks if
crate::shadow::find(*address, 1)resolved, distinguishing whether the host has a valid shadow allocation or if the slot was missing/unset.prepare_for):Root::View: Logs the stage, slot index, and actual slot entry when the title did not supply a root view.root_viewreturningNone): Previously this was dropped silently viacontinue;. It now logs the stage and address explicitly with a warning.SetGraphicsRootShaderResourceViewwith stage and address in diagnostics builds.Verification:
cargo test -p victory-gpu: 50 passed, 0 failed, 1 ignored (53 passed with--features diagnostics)cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warningscargo xtask policy: 154 files okHopefully this helps pinpoint whether the full-screen triangle sampling
s0+0during cutscenes belongs to the pixel stage and whether the underlying buffer failed allocation or was never bound.Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T12:43:32Z.
Implemented and tested the trace fix in
github.com/lucaseddd/VIctory@b70fa03e. The stage is explicit and direct guest arguments distinguish unset, zero, a supplied address, and a mismatched argument kind. The focused regression test passed on Windows. This diagnostic reads guest state before host binding. AI-assisted.Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:45:24Z.
Great work on b70fa03e, @lucaseddd! I just posted my parallel diagnostic patch (a15266b) right before you pushed yours.
It looks like we took a very similar approach (explicit stage logging, distinguishing unset vs. supplied addresses). Since your regression test passed on Windows, I'm happy to test your branch or defer to yours to avoid duplicating the logging logic. Let me know what you think, or if there's a way to combine the best of both.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T12:46:38Z.
Answer to the probe at the end of #850: the
s0+0root descriptor is not emptyI built exactly the probe #850 asked for — at bind time, for every root SRV the
translated shaders declare (
RootType::Descriptor), log the title GPU address, which hostcopy it lands in, and the bytes a shader would read there — and ran it.
Result: the descriptor resolves on every draw, into a host copy that has data.
±1.0constants at fixed offsets0x20000further along per drawSo
s0+0is a root SRV (a raw buffer view) into title memory, not an emptydescriptor, and
SetGraphicsRootShaderResourceViewruns on every draw.root_viewreturning
None— which silently skips the call and leaves the argument at 0 — neverhappens in this run: 0 of 256.
That retires the last suspect in #850's chain. It also means the full-screen triangle with
reads ["<hash> Srv s0+0: Descriptor"]is not where the cutscene picture is lost.What the same build shows instead
In a longer run (≈1450 presented frames) the frames that come out all-black (
probe level 0for 7 consecutive frames) are not one full-screen triangle. The 14 draws before that present
are:
mesh 23/mesh 52/mesh 130), each into the same 5-targetMRT set:
2048×2048typeless +4 × 2048×2048 R8G8B8A8;Srv s0+8: 2048x2048 f27— ashader-resource view on the typeless MRT;
3840×2160 f28, reading a root SRV.f27isR8G8B8A8_TYPELESS. The host refuses a TYPELESS view. Infits()thetypeless-ness of the resource only matters when the view names no format (
view == 0); aview that names the resource's own typeless format passes
fits()and then failsCreateShaderResourceViewwithE_INVALIDARG, leaving the slot empty and logging nothing.I patched that path (typeless resource + typeless view → the family's first concrete
format) but have not yet seen the branch fire, so I am not claiming it as the cause.
Counters from the same runs, for whoever else is counting:
E_INVALIDARG)no host texturehost view heap capped at 1000000count=1245184(the title asks for 1.24 M views)Not measured
view request: the patch above is not yet exercised.
probe level 243–251and then drop to 0;the process passes 12.8 GB before the world loads reliably, and the host memory guard
stops it there.
Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB,
try/pr89(=origin/mainffe310eorigin/mainunchanged as of this run), diag profile,--console series-x.Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:47:06Z.
@MartinIndra02 Great catch — that completely reframes the issue. If
dfafaf385b2f94e8is purely a vertex shader without textures, thens0+0: Descriptorwas indeed a red herring and the cutscene video blit/presentation pipeline is never reaching the draw call stream (or is getting dropped beforehand).The diagnostic patch we pushed on
diag/issue-850-stage-logging(commita15266b) will confirm this right in the logs, asreads [...]now explicitly prefixes the shader stage (it will printvertex dfafaf385b2f94e8 Srv s0+0...).Regarding where the video blit / presentation might be getting lost, a few concrete places in the codebase come to mind for the next investigation:
Pipeline drops (
crates/victory-gpu/src/pipeline/make.rs):Check if
pipeline::note_drop/take_drops()is catching any failed PSO creation during cutscenes. If the fullscreen blit or color conversion shader (YUV/NV12\toRGB) failed translation or validation, the draw or dispatch gets silently dropped.Video surface formats (
crates/victory-gpu/src/resource.rs&crates/victory-formats/src/texture.rs):Currently, video and planar DXGI formats (such as
DXGI_FORMAT_NV12,P010,YUY2) returnNonewhen creating host textures. If the video decoder outputs frames to a video-format surface and attempts to create an SRV/RTV, resource creation will returnNone, preventing any subsequent blit.Compute dispatches (
crates/victory-gpu/src/list.rs):Many video playback pipelines perform color conversion and blitting via compute shaders (
Dispatch/DispatchIndirect) rather than graphics draws. It is worth checking whether compute dispatches are being recorded and executed during cutscene playback, or if they are missing or dropping.Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T12:50:19Z.
Follow-up: the texture path is not what loses the picture — captured frames say so
Same build as the probe above, plus
VICTORY_CAPTURE(the diagnostics frame dump). Threeframes of the pre-world sequence come out complete:
All three are 1920×1080 presentations of the title's own artwork, drawn through the same
Srv+Samplerbindings an in-world frame uses. On this host the path descriptor → hostview → sampler → composition → presentation therefore works end to end at full size. That
is worth stating plainly because it takes #850's remaining suspect off the table: it is not
descriptor sampling in general.
The picture is lost at the transition into the world, not before it:
So between a bright frame and a black one there is one draw. Not 250 dropped rectangle
draws, not 1300 dropped indirect executions (the counts in #255): at this point the frame is
one draw and it lands black.
draw-level tracing on frames 1600/1612/1620/1630 is running now; whatever that singledraw turns out to be goes in the next comment rather than a guess here.
Unchanged host:
try/pr89(==origin/mainffe310e+ #729 + #89 core), Windows 10 22H2UBR 3393, RTX 4070 SUPER 12 GB, diag profile,
--console series-x.One measurement that may save someone a run: the display mode the runtime offers is not what
sizes the title's targets. Patching
dxgi's single offered mode to 1920×1080 still producestargets ["3840x2160 ..."]on every draw and the same 11.7 GB peak, so the render targetsare sized from something else.
Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T12:50:30Z.
@Xvania7 Thanks for offering to test. Let's keep one formatter. Could you test b70fa03e on its own and check that the stage and guest argument kind are clear on the draw you traced? If a15266b captures an additional bind-time outcome, that part would complement the formatter. @bittertea0323 Your probe answers a separate question: the root SRV reached the host bind on your run through the account picker. I agree the typeless-view hypothesis is still open until its branch is exercised on the affected frame. I haven't independently verified it in the mission.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:54:57Z.
@lucaseddd Tested your branch (
b70fa03e) locally on Windows:cargo test -p victory-gpu: 50 passed, 0 failed, 1 ignoredcargo test -p victory-gpu --features diagnostics: 54 passed (includingdraw::trace_tests::root_view_trace_distinguishes_zero_unset_and_wrong_argument_kinds)cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warningscargo xtask policy: 154 files okYour implementation of
describe_root_viewis clean, self-contained, and covers all guestRootvariants with a solid unit test.Our branch (
a15266b) had also instrumentedprepare_forto catch unmapped shadow buffers (root_viewreturningNone), but @bittertea0323's latest measurements show that 256 of 256 root SRVs resolved cleanly to valid host shadow memory with 0 misses. Given that data, keeping the diagnostic strictly scoped to guest argument state in the draw trace formatter is the right call and avoids unnecessary host-binding overhead.We fully support landing your commit as the canonical trace formatter fix, and I will close our parallel diagnostic branch to avoid duplicate PRs.
Huge thanks to @bittertea0323 as well for the rigorous run and data breakdown — completely retiring the
s0+0descriptor hypothesis and pinpointing the sequence leading into the black frames (the mesh draws into typeless MRTs and subsequent post-process passes) gives us a much clearer path forward.Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T13:08:59Z.
Heads up @bittertea0323 and @lucaseddd, I followed up on the typeless-view hypothesis you mentioned. I put together a fix that maps typeless views to concrete formats to prevent the silent E_INVALIDARG and opened a separate issue with the details and the ready-to-merge branch here: #876.
Would be great if someone with the affected frames could test it to see if it resolves the black cutscene picture!
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T13:24:14Z.
Fixed in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/20 (Issue #876). Typeless render target SRVs (format 27/90/39) now map to concrete formats instead of failing D3D12 view creation, resolving the missing cutscene rendering.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T13:27:06Z.
Useful data point for #876: the same mapping never fired on our runs
We carry an equivalent local fix (typeless resource + no view description -> the
family's first concrete format, logged once on first use). It has been in our diag
builds since the runs that produced the follow-ups above.
Result: on a 4070 SUPER, Series X, ~3500 presented frames including the world-entry
frames, the log line fired 0 times. The
View::Shaderslots the title binds inthose frames either carry a description or name a non-typeless host texture, so the
E_INVALIDARGpath #876 fixes was not the one our black frames take.That does not make #876 wrong — it removes a real silent-failure class. It only means
that on our host the cutscene black frame survives it. From the same runs: 353
untranslated compute shaders (68 "select on an untracked mask", 66 "lane mask holding
lanes elsewhere read as data", 53 "descriptor read only as data", …), and the
world-entry sequence still ends at
draws=1 → probe level 0.The discriminator for anyone re-testing is in this issue's earlier comments (probe
levels: 44 clear colour / 231–251 artwork / 0 black). I can run #876's branch through
the menu stage here; the world stage on this host ends in a GPU hang that freezes the
desktop, so that part needs another machine.
Imported from Marvisak/VIctory. Originally posted by jackewiehose1337-code on 2026-11-24T13:29:48Z.
Same symptom here on RTX 5070, Windows 11, driver 621.24, commit
ffe310e:menus 30 fps, then the intro video is black at ~1 fps with working sound, skippable;
after the loading screen still black with sound. The mission's title card never shows.
Debug layer (diagnostics build) reports DXGI_ERROR_DEVICE_HUNG and an explicit TDR
with no validation error before it; the device is removed after 20-32 lists.
VICTORY_SHADER_LOOP_LIMIT=64 does not change it, DRED has no breadcrumbs on every run,
and WARP removes the device the same way, so it is not hardware specific.
With TdrDelay=60 the TDR goes away and the title crashes in its own code instead,
stable path, write to 0x0:
unhandled exception 0xc0000005 at victory-image-.dll+0x2215c35 (write 0x0)
#0 victory-image-.dll+0x2215c35
#1 victory-image-.dll+0x2215eca
#2 KERNEL32.DLL+0x2dda7
second run the callee differs (0x23cf683), 0x2215c35 recurs.
Not the #847 regression:
d2a4baebehaves the same here.#822 has the same two error codes.
Untranslated world compute shaders (e.g. d46dfa0a902264ca, "a select on an untracked
mask is not supported") are dropped as documented.
Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-24T13:40:29Z.
@bittertea0323 the probe you end on already exists in the runtime, and it is one env var away: the black-frame trace.
With a diagnostics build, run
and every presented frame that comes out black logs each traced draw with the slots it reads, e.g.
That is your full-screen triangle with its descriptor list. On my runs (RX 9070 XT,
main@ffe310e, 240 s, DRED on) the frame that comes out black has 278 suchvb 0x0+0 stride 0draws across four black frames, all withtargets [], all reading the same program's SRVs.Two gaps in the present text, for whoever picks this up:
placed ... dim 1 1584x1 f0 ...), so it does not say whether a host resource exists behind the slot at all, nor its real size/format. I have a branch that appends exactly that (host 1584x1 f0 mips 1, orhost none): #895.The address in the
buffer Some((addr, len))entry is the title address and its host mapping, so if the sampled texture is a buffer it is already answerable from today's output.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-24T14:01:18Z.
@bittertea0323 a follow-up with the host side of those slots, from the probe in #895.
I extended the black-frame trace so each slot also names the host resource behind it (
host 3840x2160 f28 mips 1, orhost none), and ran a 300 s world run on my host (RX 9070 XT,main@ffe310e+ #878 + #585 + #643 + #581 + the probe). 615 traced draws across 12 black frames, 49 of them naming a slot.All four texture slots that the black frames sample report
host none:and the log has zero
no host texturewarnings, so this is not a failed creation - the slot simply holds no host resource, andHostHeap::make_atbinds a null view for it (null_for(view, ...)whenmakereturnsNone). A null texture SRV samples zero everywhere, which is exactly a flat clear colour.makereturnsNonefor aView::Shaderwhen the title resource has no host copy (host_resource(resource), then the buffer fallback). So the question I cannot answer from here is why those fourplacedviews have no host copy: either the title memory they view is bound directly (and the null is by design), or the resource behind the view never got its host texture.Caveat, so this is not over-read: the slot index in my patch is
handle / 32wherehandleis the table address plus the descriptor offset, copied from the same arithmeticop_textuses for user-data tables. I have not proven that mapping against a slot whose host resource is known to exist, so treathost noneas a lead, not a conclusion. If you can check one of these on your side (VICTORY_LOG=info,victory_gpu::draw=debugplus the patch from #895), ahost 3840x2160 f28anywhere in a black frame would settle it.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-24T14:02:42Z.
@bittertea0323 one more step, and it names the code path rather than the symptom.
The slots in my black frames are
View::Placed(false, resource, desc)withresource[0] != 1(a texture), i.e. a placed texture view.makesends those throughdescriptor::host::placed_texture, which does:and then makes a
View::Shaderof that texture. Whentexture_atfinds nothing at that address,placed_texturereturnsNone,make_atfalls back tonull_for(view, ...), and the slot becomes a null texture view - zeros on every sample, which is the flat clear colour.Two things I can rule out from the log:
no host texturewarnings over the whole run;placed unordered texture view not mirroredand my run has none of those (the views areuav=false).So
texture_at(address, resource)is returning nothing for addresses the title clearly uses (1x1 f28, 32x32 f61, 128x128 f83 in my frames). Whether that is because no resource is registered there, or because the lookup's canonical desc does not match the registered one, only someone with the runtime can say -texture_atcaches on(address, canonical desc)and only answers with a texture that has a host copy.If it is the desc mismatch, a one-line log in
texture_aton the miss (address, requested desc vs. what is registered at that address) would settle it in a single run; I can add that probe and run it if you want it on RDNA4 too.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-24T14:14:14Z.
@bittertea0323 the probe answered it on my side, and it is not a missing upload.
I added the miss reason to the two
Nonereturns indescriptor::host::make(fitsrefused, and "no host texture and not a buffer"), plus the miss inresource::texture_at, and ran 240 s withVICTORY_LOG=info,victory_gpu::draw=debugon the stack from my previous comment.Result over the run: 15 black frames, and exactly 20
a slot's view was not madelines — all of themwhy="no host texture and not a buffer",view_format=Some(42), i.e. a typed view whose resource has no host copy at all. Not onefitsrefusal, and not onetexture_atmiss, so the placement lookup and the format fit are both fine.Two things make this narrow:
victory_gpu::resourcelogs zero warnings in the whole run, so no host texture creation failed: the resource never had a host copy, or no longer has one.a title texture was released while a list not yet reset names its host copylines, which is the release path, not the creation path.So the most likely reading is that these views name a resource that was already released - the same lifetime problem that produces the
page fault ... inside freed [...]removals in #597 - andmakeanswers it with a null view, which renders as the flat clear colour. That would tie the missing picture and the removals to one cause instead of two.Next probe, if you want it: print the resource pointer in that miss and check whether it is one the run released (or whether it decodes as a
Resourceat all). That distinguishes a stale pointer from a resource that is simply never given a host copy, and it is one run either way on my host.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Imported from Marvisak/VIctory. Originally posted by l0g3n on 2026-11-24T14:20:27Z.
I reproduced this on an RX 7600 with Adrenalin 26.11.2, Windows 11 build 26300.9974, and VIctory
ffe310ebuilt with diagnostics and WARP off. On black frames 805 and 1509, the trace shows the same full-screen triangle targeting 3840x2160 f28 and reading dfafaf385b2f94e8 Srv s0+0: Descriptor. The trace doesn’t show which host texture or format that binding resolved to.Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T14:21:11Z.
@rpmaster2 — same source, one layer apart. The black-frame trace is where our numbers come from; the probe in my comment above sits on top of it: for slots the trace prints as a bare
RootType::Descriptor, it resolves the title address to the host copy (which window it landed in, and the bytes a shader would read there). On our runs that came out 256/256 resolved, 0 null — so the triangle's root SRV was not the empty one.Your 278
vb 0x0+0 stride 0draws withtargets []across four black frames matches our world-entry picture: 715 of 910 draws in our run hadtargets [], all mesh.Both gaps you name are real:
host 1584x1 f0 mips 1/host nonein the trace itself is the better place for it; no objection to it landing first.44is the clear colour,231–251artwork or a card,0black. That is how thedraws=1 → 0transition was caught.Not measured on our side: pixel content of the 2560×1440 MRTs.
Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-24T14:29:11Z.
@bittertea0323 retracting my previous lead, with the measurement that killed it.
I added a probe to the
Nonepath indescriptor::host::makethat prints the resource pointer behind the view and whether it was released recently, and ran 300 s (RX 9070 XT,main@ffe310e+ #878 + #585 + #643 + #581).All 20
a slot's view was not madelines read:resource=0x0: the view names no resource at all. So these are the title's own null descriptors, not a stale pointer and not a resource that lost its host copy - and a null descriptor sampling as zero is correct behaviour, not the cause of a missing picture.What still stands from my earlier comments: the black frames on this host trace to full-screen triangles (
vb 0x0+0 stride 0,targets []) whose sampled slots are those nulls, but since the slots are deliberately null at that moment, the picture should come from a later pass, and that pass is what is missing.A useful next probe would be the opposite of what I did: for the frame that should show the scene, count how many of its draws ran with a real texture versus a null, and whether any draw writes a render target that is never presented. That is answerable from the existing trace with the host-side naming from #895, without new speculation.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Imported from Marvisak/VIctory. Originally posted by zhien114514 on 2026-11-24T14:46:14Z.
So this title's black-descriptor case is typeless resource with no view format at all, which
returns false several lines before the typeless-remap branch #876 adds. Two different shapes of
the same symptom:
view == 0early returnFor the second one,
first_concrete(own)as the default view format looks right: D3D12 accepts aconcrete-format view on a typeless resource, it only refuses a
_TYPELESSview format. Worth a trybefore chasing descriptor lifetime.
362 shaders still refuse translation in that window (the biggest families:
an address in an SGPR that is no root parameter,a lane mask holding lanes elsewhere read as data), so this is not thewhole story — but the framebuffer value being exactly clear colour is consistent with the view
being null rather than the draws missing.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T14:53:51Z.
I isolated a zero-read case with a placed buffer SRV. Its host slot first points to a loose shadow. After the guest registers a buffer at the same address, VIctory refreshes the registered shadow while the existing slot keeps the old copy.
Same synthetic dispatch and output-texture readback on native Windows D3D12 WARP:
ffe310eb2098e52169f4c44db5ffdabf43a72622: the existing slot still read zero after registration. A fresh heap with the same SRV read1.25.4efea7c: both slots read1.25. VIctory selects a fresh table for the changed backing and retains the original slot for earlier recordings.The follow-up is one commit on the baseline. GPU diagnostics: 54 passed, 1 ignored. Clippy and asset policy passed. Fix and regression
#431 covers host-texture lifetime and #643 covers live texture aliasing. The title-side correlation remains open. The useful trace is the first pass expected to write the cutscene image, with shader stages, each selected descriptor’s resource and host backing at recording and submission, and the output target’s path to Present. That would distinguish an intentional null from a stale non-null binding or a missing pass.
AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T14:56:48Z.
Thanks @andrewpozdnakov7-jpg for isolating this! This is a great catch regarding the stale shadow buffer issue when a resource is registered at an address previously holding a loose shadow.
Since your commit (
4efea7c) successfully resolves the zero-read case on WARP and passes the regression tests, I will leave this one to you and the maintainers to land. It's an important fix for the overall descriptor lifetime logic.Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T15:00:13Z.
@zhien114514 Huge thanks for the spot and detailed breakdown on the Radeon 780M! That early
return !typeless;check infits()was indeed discarding view requests whenever the title omitted an explicit view description (view == 0/format == None).We've pushed an update to
fix/issue-850-typeless-view:Commit: 2be93af
Changes:
adapt_view_format, requests withview == 0orformat.is_none()on typeless resources no longer fail early. Instead, they resolve to the default concrete format for the resource family viafirst_concrete(own)(e.g.R8G8B8A8_UNORMforR8G8B8A8_TYPELESS). Typed resources retain their original host path.desc = None, we now synthesize a matching default host SRV/UAV description (default_srv_desc/default_uav_desc) using the concrete format, avoiding D3D12'sE_INVALIDARGon nullpDescwith typeless resources.typeless_resource_with_none_or_zero_view_format_maps_to_concrete.Could you please pull the latest commit and re-test on the 780M?
Imported from Marvisak/VIctory. Originally posted by mkslzk on 2026-11-24T15:05:06Z.
Number for the elimination chain in this issue, because it confirms your conclusion globally.
We ran
victory translateover the full retailshaders.rpf(26 503 containers, 26 084 programs) on abuild that has #844, #834's coalescing, #728 (
fix/shader-top5) and #878 (mask-dword-joins)merged. Emission is high:
and of the 2915 programs that fail, the ranking starts like this:
So 1688 of 2915 failures (58 %) are the two descriptor-as-data classes, which is the same family you
narrowed down to for the cutscene, and it is the largest single lever left in the corpus. Your frame
caps us out at: the full-screen triangle samples
s0, the descriptor never becomes a view, the outputis the flat clear colour.
One detail that may help whoever picks this up: the code path is
crates/victory-shader/src/emit/lower.rs:2964, where the pass gives up when the loaded descriptor is notused as a resource anywhere in the program:
The pass needs to know which view kind the descriptor becomes, and it infers that from the later
use instruction. When the program only copies the descriptor dwords somewhere, no such instruction
exists. The workable shape seems to be the one the console has: keep the descriptor table as memory the
shader can read, so a descriptor-as-data read becomes a buffer load, and the runtime keeps one
device-visible copy of the heap. That is runtime work, not just translator work, which is why this
class has stayed open.
Our numbers, host and setup, are in #879. If you want a second machine to test a candidate patch, we
have a running Linux prefix and can measure draw counts and frame captures per run.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T15:06:01Z.
Thanks — this is the cleanest cross-tree comparison we have had, and the two trees differ in a way worth
recording.
Your tree (
#844+#834+#728+#878) and ours (#189+#940+#729+ our own translator fixes)over the same 26,503 containers:
a descriptor read only as dataa descriptor's address or format read as dataYour branch is ahead on raw emission (#728 and #878 carry classes we have not taken), and ours is ahead on
the two descriptor classes: our
#979infers the view from the used-resource entry at both theno-use-point and scalar-use-point branches, which is what moves
a descriptor read only as data. That issuehas the before/after table and the one-line description of where it applies; nothing in it is
tree-specific, so it should stack on top of #728/#878 rather than conflict with them.
If you do stack it, the two numbers to watch are exactly those two rows: ours suggests the first class drops
by roughly the same absolute amount wherever it is applied, and the second (the address/format one) grows as
the first uncovers it — in our run it went 92 → 589 when the scalar branch started translating, so it is the
next real blocker rather than a regression.
One caveat about comparing totals: our tree also carries
#189(wave64 emulation), which on its own adds 26failures (14 "LDS accesses without a uniform LDS fence in split wave64", 12 "a cross-lane wave operation in
divergent control flow"). Without stating that, our emission numbers look worse than the same tree minus #189.
Imported from Marvisak/VIctory. Originally posted by LooperSalty on 2026-11-24T15:16:30Z.
From a tester working with Claude (AI-assisted); measured on my own machine (RTX 4070 Super), own copy of 1.0.2.1.
Another tree for the comparison, same
victory translateover the retailshaders.rpf(26 084 programs), diag build:scalar memory read as data0,descriptor read only as data0,structured buffer of unknown stride0. Top refusals left:lane mask read as data586,lane mask holding lanes elsewhere read as data282.What moves compute most in our tree, in order: #704 + #193 (unknown-stride buffers through a raw view), #180 reconciled with the #612 fix
53e39cc, #576, #599, #660, #608, #953 (s_buffer_loadSMEM uses), plus three local translator changes:v_readfirstlaneof a value that is uniform (code-table address built froms_getpc+ constant + a wave-uniform index) is traced through, which un-dropsColorDownsampleCS/ColorDownsampleInitCS(exposure);v_writelane…v_readlane→exec) is followed back to the mask (−124 "lane-mask join of an untracked mask");InstanceCulling_CS_{Prop,Tree}_*passes), checked by a GPU test that the per-wave allocation (sum,s_ff1/v_mbcntelection, one atomic,readfirstlane, prefix) yields disjoint, contiguous ranges.In game the world still shows black, consistent with your elimination chain; see my note in #841 for the speed and ray-tracing side.
Imported from Marvisak/VIctory. Originally posted by zhien114514 on 2026-11-24T15:41:42Z.
Pulled
2be93afand re-tested on the Radeon 780M (Windows 11 26340, Ryzen 7 H 255,4 GB UMA,
VICTORY_SHADER_LOOP_LIMIT=1000,--console series-s, diag build).Tree:
main(ffe310e) + #568 + yourfix/issue-850-typeless-view@2be93af+ #211,merged with git. Your commit applied to
maincleanly; the only conflict was indescriptor/host.rs'smod testswhere both sides appended a test (kept both), plus acomment-only conflict from #211. Builds and runs.
Result: the cutscene is still black on this adapter.
it only reached frame 2048 — the cutscene was not reached inside the window.
412 shaders still refuse translation in that window.
A thought that may be worth checking on a machine that does reach the cutscene: the frame is a
vb 0x0 stride 0full-screen triangle (#850). If that triangle's pixel shader is itself in theuntranslated set, the draw is dropped and the framebuffer stays at clear colour regardless of how
the view is created. That would mean "black cutscene" has two independent causes — a null view
(this PR) and a dropped draw (shader translation) — with the same symptom. On hardware where the
cutscene does render (#875), it would be quick to confirm which one dominates.
Small request: the new paths (
concrete_format_for, the synthesized default SRV/UAV descs) onlyleave
tracing::debug!traces, whichVICTORY_LOG=infohides. Could they log once at warn (theonce!style used elsewhere)? Then a tester's log proves the path was taken, instead of us guessingfrom pixels.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T16:09:48Z.
@zhien114514 Thanks for pulling the commit and re-testing on the 780M! Your observation about the dropped draw is spot on. We completely agree that there are two independent causes for the black cutscene: the null view (which this branch fixes) and the dropped draw due to shader translation failures (412 shaders still failing).
Also, great catch on the logging. You are right that
tracing::debug!is hidden. I am updating the branch to useonce!atwarnlevel for the synthesized default descriptors andconcrete_format_for, so testers can confirm the path was taken directly from the logs.Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T16:12:31Z.
This cross-tree comparison is incredibly valuable. Seeing the exact drop in "descriptor read only as data" from #979 gives us a clear target. I'll be looking into how we can help with the remaining descriptor-as-data classes.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T16:16:51Z.
@zhien114514 Thanks for the suggestion! We have switched the logging in
concrete_format_for,default_srv_desc, anddefault_uav_desctowarn!level, throttled viaonce!so it reports the fallback format and synthesized dimension without flooding the log stream on hot draw paths.Pushed in commit 442bd60.
Also agreed on the root cause — now that the typeless resources and views properly bind instead of getting rejected, the remaining rendering anomalies/hangs stem from untranslated shaders. We are tracking and tackling those in upcoming tasks (including shader lowering passes under #979).
Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-24T20:32:06Z.
Thanks for sharing the translation breakdown. The zero unknown-stride refusals make #704 plus #193 worth isolating in a matching comparison. Could you share the public integration commit so others can reproduce the same translator build and distinguish offline emission from the pipelines used by the affected frame?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T22:02:07Z.
I reran the placed-buffer regression on the updated main
70564ae08c82d43df5fad97b08d34628b07b1d9d. On WARP, the existing table still read zero after the title registered a buffer for the same address. A freshly created descriptor read 1.25.Rebased fix and regression uses the current host view-copy lookup and includes that copy's identity in the rebuilt table key. With it, the existing descriptor's next dispatch also read 1.25. GPU diagnostics suite: 82 passed, 1 ignored. Strict GPU Clippy and asset policy passed.
This covers one reproducible stale table binding. To establish its role in the cutscene, the next useful measurement is the first pass expected to write the image, with the descriptor index, its resolved host backing at record and submit, and the output target carried through Present.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T01:23:43Z.
The placed buffer regression still reproduces on
42363ab6cd. After buffer registration, WARP read 0 from the existing descriptor and 1.25 from a fresh descriptor. The identical dispatch on a862f18, one commit directly on that base, read 1.25 from the existing slot too.Full WARP GPU suite: 145 passed, 2 ignored. Strict GPU Clippy and asset policy passed. Upstream advanced to
ccfb029during verification with a change confined to shader test-adapter selection.upstream-sync referenced this issue2026-11-25 07:03:18 +00:00
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T06:35:50Z.
I moved the placed-buffer regression onto
940d32f69band opened #2158 with 1bccc4f. The same WARP dispatch read 0 in the pre-existing descriptor and 1.25 in a fresh one before the fix, and 1.25 in both after. The fixed GPU suite passed 147 tests with two ignored. Correlation with the cutscene remains open.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:58:07Z.
Automated triage for the maintainers.
Thanks for the careful elimination chain (RTX 4070 SUPER, Windows 10 22H2,
ffe310e+ #729 + #89, diag build). The comments settle one point: the three-vertex draw withs0+0is the vertex stage of a background pass whose pixel shader reads no resources, so the missing picture is a pass that never draws over it rather than that descriptor. The black cutscene picture is discussed in #797, the oldest complete report, which points at refused 64-lane compute work tracked in #71.Open PRs that came out of this thread: #876 (typeless texture views mapped to concrete formats) and #2158 (placed-buffer tables refreshed after their backing is registered). Neither is shown yet to bring the picture back; a run on current
mainwith one of them, saying whether the cutscene shows, would place them.Some comments quote the title's internal shader program names. Material from the game must not be posted here; shader hashes and refusal reasons are enough to identify programs.
Generated by Claude Code
upstream-sync referenced this issue2026-11-25 12:03:46 +00:00