[GH #850] Cutscene picture missing while audio/subtitles render: elimination chain down to descriptor sampling (format, viewport, RTV, depth, upload all excluded) #850

Open
opened 2026-11-24 13:01:54 +00:00 by bittertea0323 · 39 comments
bittertea0323 commented 2026-11-24 13:01:54 +00:00 (Migrated from github.com)
Contributor

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% of
texels plus 8 stray pixels). Everything below was measured on this host with a diag build.

What is already ruled out (with the evidence)

suspected cause measurement verdict
packed formats 86/115 (#797) packed 16-bit render targets are R8G8B8A8_UNORM on this GPU format=86/115 excluded — PR #89's core commit fixes it, no host texture count went 2 → 0
viewport too small viewport set x=0 y=0 w=3840 h=2160 min_z=0 max_z=1 excluded — full 4K
render target wrong / missing targets ["3840x2160 f28"] (RGBA8, 4K) excluded — correct target
depth or culling discarding geometry depth=D3D12_DEPTH_STENCIL_DESC { DepthEnable: 0 ... }, cull=1 (NONE) excluded — nothing culled
draws not submitted draw draw 3 from 0 topology 4 pipeline 0x9b0d2e00 ..., drawn=1 excluded — it runs
textures missing entirely textures 2.5 ms 12.7 MB per frame at the menu excluded — uploads happen

Where it actually points

The frames that should show the cutscene reduce to a full-screen triangle whose only input is a
descriptor read:

draw 3 from 0  topology 4  vb 0x0+0 stride 0  targets ["3840x2160 f28"]
     reads ["dfafaf385b2f94e8 Srv s0+0: Descriptor"]

vb 0x0 stride 0 with three vertices is the normal full-screen-triangle form, so the geometry is
not the problem. The triangle samples s0; if the view behind s0 holds no data, the output is
exactly 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 data class (143 of the remaining translation failures in #784). That is
translator/runtime-internal work, and I am stopping here rather than guessing at the fix.

Why this is worth recording

  • It removes format, viewport, render target, depth/culling, submission and upload from the list of
    suspects for the black-cutscene reports (#797, xcl#878), which is most of what those threads
    speculate about.
  • It gives a crisp next probe for anyone with the runtime knowledge: log what the s0+0 descriptor
    resolves 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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6581778659 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850). Originally posted by [bittertea0323](https://github.com/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% of texels plus 8 stray pixels). Everything below was measured on this host with a diag build. ## What is already ruled out (with the evidence) | suspected cause | measurement | verdict | |---|---|---| | packed formats 86/115 (#797) | `packed 16-bit render targets are R8G8B8A8_UNORM on this GPU format=86/115` | **excluded** — PR #89's core commit fixes it, `no host texture` count went 2 → 0 | | viewport too small | `viewport set x=0 y=0 w=3840 h=2160 min_z=0 max_z=1` | **excluded** — full 4K | | render target wrong / missing | `targets ["3840x2160 f28"]` (RGBA8, 4K) | **excluded** — correct target | | depth or culling discarding geometry | `depth=D3D12_DEPTH_STENCIL_DESC { DepthEnable: 0 ... }`, `cull=1` (NONE) | **excluded** — nothing culled | | draws not submitted | `draw draw 3 from 0 topology 4 pipeline 0x9b0d2e00 ...`, `drawn=1` | **excluded** — it runs | | textures missing entirely | `textures 2.5 ms 12.7 MB` per frame at the menu | **excluded** — uploads happen | ## Where it actually points The frames that should show the cutscene reduce to a full-screen triangle whose only input is a descriptor read: ``` draw 3 from 0 topology 4 vb 0x0+0 stride 0 targets ["3840x2160 f28"] reads ["dfafaf385b2f94e8 Srv s0+0: Descriptor"] ``` `vb 0x0 stride 0` with three vertices is the normal full-screen-triangle form, so the geometry is not the problem. The triangle samples `s0`; if the view behind `s0` holds no data, the output is exactly 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 data` class (143 of the remaining translation failures in #784). That is translator/runtime-internal work, and I am stopping here rather than guessing at the fix. ## Why this is worth recording - It removes format, viewport, render target, depth/culling, submission and upload from the list of suspects for the black-cutscene reports (#797, xcl#878), which is most of what those threads speculate about. - It gives a crisp next probe for anyone with the runtime knowledge: log what the `s0+0` descriptor resolves 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.
lucaseddd commented 2026-11-24 13:02:07 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131648039 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131648039). Originally posted by [lucaseddd](https://github.com/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.
lucaseddd commented 2026-11-24 13:02:07 +00:00 (Migrated from github.com)
Author
Contributor

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.

  1. The suffix Descriptor is 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+0 here 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 formatter

  2. The 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131667810 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131667810). Originally posted by [lucaseddd](https://github.com/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. 1. The suffix `Descriptor` is 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+0` here 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 formatter](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/draw.rs#L813-L834) 2. The 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](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/draw.rs#L845-L868) 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](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/draw.rs#L495-L513) Source audit only, AI-assisted. The cause of the missing picture remains open.
lucaseddd commented 2026-11-24 13:02:09 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131728435 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131728435). Originally posted by [lucaseddd](https://github.com/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.
MartinIndra02 commented 2026-11-24 13:02:10 +00:00 (Migrated from github.com)
Author
Contributor

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 out dfafaf385b2f94e8 as the cutscene texture sampler:

  • dfafaf385b2f94e8 is the vertex stage, not a pixel texture sampler (stage="vertex", user_data=0, samplers=0).
  • Its paired pixel shader (06295fb1d1aefb78, bound together as early as frame 2) also has user_data=0, samplers=0, and zero UsedResource entries (which is why reads in the OP only lists the vertex shader's dfafaf385b2f94e8 Srv s0+0: Descriptor and 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's s0+0 descriptor sampling failing.

Log metadata only; no game data posted. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131788718 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131788718). Originally posted by [MartinIndra02](https://github.com/MartinIndra02) on 2026-11-24T12:41:33Z. --- Quick clarification from a local diag run on `main` (`ffe310e`) that answers @lucaseddd's question and rules out `dfafaf385b2f94e8` as the cutscene texture sampler: - **`dfafaf385b2f94e8` is the vertex stage**, not a pixel texture sampler (`stage="vertex"`, `user_data=0`, `samplers=0`). - Its paired pixel shader (`06295fb1d1aefb78`, bound together as early as **frame 2**) also has **`user_data=0`, `samplers=0`**, and **zero `UsedResource` entries** (which is why `reads` in the OP only lists the vertex shader's `dfafaf385b2f94e8 Srv s0+0: Descriptor` and 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`'s `s0+0` descriptor sampling failing. *Log metadata only; no game data posted. AI-assisted.*
Xvania7 commented 2026-11-24 13:02:11 +00:00 (Migrated from github.com)
Author
Contributor

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::View resolution:

Branch: https://github.com/Xvania7/VIctory/tree/diag/issue-850-stage-logging (commit a15266b)

Diagnostic additions in crates/victory-gpu/src/draw.rs:

  1. Stage labeling in draw trace reads:
    reads() now prepends stage.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.
  2. Distinct outcomes at bind time (prepare_for):
    • Missing Root::View: Logs the stage, slot index, and actual slot entry when the title did not supply a root view.
    • Unmapped shadow buffer (root_view returning None): Previously this was dropped silently via continue;. It now logs the stage and address explicitly with a warning.
    • Successful bind: Traces SetGraphicsRootShaderResourceView with 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 warnings
  • cargo xtask policy: 154 files ok

Hopefully this helps pinpoint whether the full-screen triangle sampling s0+0 during cutscenes belongs to the pixel stage and whether the underlying buffer failed allocation or was never bound.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131825940 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131825940). Originally posted by [Xvania7](https://github.com/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::View` resolution: Branch: https://github.com/Xvania7/VIctory/tree/diag/issue-850-stage-logging (commit [`a15266b`](https://github.com/Xvania7/VIctory/commit/a15266b)) ### Diagnostic additions in `crates/victory-gpu/src/draw.rs`: 1. **Stage labeling in draw trace `reads`:** `reads()` now prepends `stage.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. 2. **Distinct outcomes at bind time (`prepare_for`):** - **Missing `Root::View`:** Logs the stage, slot index, and actual slot entry when the title did not supply a root view. - **Unmapped shadow buffer (`root_view` returning `None`):** Previously this was dropped silently via `continue;`. It now logs the stage and address explicitly with a warning. - **Successful bind:** Traces `SetGraphicsRootShaderResourceView` with 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 warnings - `cargo xtask policy`: 154 files ok Hopefully this helps pinpoint whether the full-screen triangle sampling `s0+0` during cutscenes belongs to the pixel stage and whether the underlying buffer failed allocation or was never bound.
lucaseddd commented 2026-11-24 13:02:12 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131833631 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131833631). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-24T12:43:32Z. --- Implemented and tested the trace fix in https://github.com/lucaseddd/VIctory/commit/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.
Xvania7 commented 2026-11-24 13:02:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:45:24Z.


Implemented and tested the trace fix in lucaseddd@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.

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131875969 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131875969). Originally posted by [Xvania7](https://github.com/Xvania7) on 2026-11-24T12:45:24Z. --- > Implemented and tested the trace fix in [lucaseddd@b70fa03e](https://github.com/lucaseddd/VIctory/commit/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. 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.
bittertea0323 commented 2026-11-24 13:02:13 +00:00 (Migrated from github.com)
Author
Contributor

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+0 root descriptor is not empty

I 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 host
copy 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.

measurement value
root SRVs bound over the run 256 distinct addresses, 0 without a host copy
bytes at the address on first use 32 of 32 zero (the copy is refreshed at the next submission)
bytes at the same slot on later draws non-zero; the sampled 32-byte window holds two IEEE-754 ±1.0 constants at fixed offsets
where the copy lives a 4 MiB shadow window over title linear memory, 0x20000 further along per draw
what sits at that address title memory, not a committed or placed texture (no texture resource at the address)

So s0+0 is a root SRV (a raw buffer view) into title memory, not an empty
descriptor, and SetGraphicsRootShaderResourceView runs on every draw. root_view
returning None — which silently skips the call and leaves the argument at 0 — never
happens 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 0
for 7 consecutive frames) are not one full-screen triangle. The 14 draws before that present
are:

  • 3 mesh shader draws (mesh 23 / mesh 52 / mesh 130), each into the same 5-target
    MRT set: 2048×2048 typeless + 4 × 2048×2048 R8G8B8A8;
  • 2 post-process draws (topology 4, 3 vertices) reading Srv s0+8: 2048x2048 f27 — a
    shader-resource view on the typeless MRT;
  • 1 composite draw (topology 4, 3 vertices) into 3840×2160 f28, reading a root SRV.

f27 is R8G8B8A8_TYPELESS. The host refuses a TYPELESS view. In fits() the
typeless-ness of the resource only matters when the view names no format (view == 0); a
view that names the resource's own typeless format passes fits() and then fails
CreateShaderResourceView with E_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:

counter value
shaders that do not translate 214 (series-x, ≈1450 frames)
… lane mask holding lanes elsewhere read as data 48
… descriptor read only as data 38
… address in an SGPR that is no root parameter 31
… structured buffer of unknown stride 25
… address not from a root parameter 15
… scalar memory read as data 15
host pipelines refused (E_INVALIDARG) 97, all compute
no host texture 0
host view heap capped at 1000000 1 per run, count=1245184 (the title asks for 1.24 M views)

Not measured

  • Whether the composite is wrong because of the typeless SRV, the mesh stage, or the 1.24 M
    view request: the patch above is not yet exercised.
  • Pixel content of the 2048×2048 MRTs — I have no readback of them.
  • Anything past the account picker: the runs reach probe level 243–251 and 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/main ffe310e

  • #729 + #89 core; origin/main unchanged as of this run), diag profile, --console series-x.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7131904346 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131904346). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T12:46:38Z. --- ## Answer to the probe at the end of #850: the `s0+0` root descriptor is not empty I 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 host copy 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.** | measurement | value | |---|---| | root SRVs bound over the run | 256 distinct addresses, **0** without a host copy | | bytes at the address on first use | 32 of 32 zero (the copy is refreshed at the *next* submission) | | bytes at the same slot on later draws | non-zero; the sampled 32-byte window holds two IEEE-754 `±1.0` constants at fixed offsets | | where the copy lives | a 4 MiB shadow window over title linear memory, `0x20000` further along per draw | | what sits at that address | title memory, not a committed or placed texture (no texture resource at the address) | So `s0+0` is a **root SRV (a raw buffer view) into title memory**, not an empty descriptor, and `SetGraphicsRootShaderResourceView` runs on every draw. `root_view` returning `None` — which silently skips the call and leaves the argument at 0 — never happens 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 0` for 7 consecutive frames) are not one full-screen triangle. The 14 draws before that present are: - 3 **mesh shader** draws (`mesh 23` / `mesh 52` / `mesh 130`), each into the same 5-target MRT set: `2048×2048` typeless + `4 × 2048×2048 R8G8B8A8`; - 2 post-process draws (topology 4, 3 vertices) reading `Srv s0+8: 2048x2048 f27` — a **shader-resource view on the typeless MRT**; - 1 composite draw (topology 4, 3 vertices) into `3840×2160 f28`, reading a root SRV. `f27` is `R8G8B8A8_TYPELESS`. The host refuses a TYPELESS view. In `fits()` the typeless-ness of the *resource* only matters when the view names no format (`view == 0`); a view that names the resource's own typeless format passes `fits()` and then fails `CreateShaderResourceView` with `E_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: | counter | value | |---|---| | shaders that do not translate | 214 (series-x, ≈1450 frames) | | … lane mask holding lanes elsewhere read as data | 48 | | … descriptor read only as data | 38 | | … address in an SGPR that is no root parameter | 31 | | … structured buffer of unknown stride | 25 | | … address not from a root parameter | 15 | | … scalar memory read as data | 15 | | host pipelines refused (`E_INVALIDARG`) | 97, **all compute** | | `no host texture` | 0 | | `host view heap capped at 1000000` | 1 per run, `count=1245184` (the title asks for 1.24 M views) | ## Not measured - Whether the composite is wrong because of the typeless SRV, the mesh stage, or the 1.24 M view request: the patch above is not yet exercised. - Pixel content of the 2048×2048 MRTs — I have no readback of them. - Anything past the account picker: the runs reach `probe level 243–251` and 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/main` `ffe310e` + #729 + #89 core; `origin/main` unchanged as of this run), diag profile, `--console series-x`.
Xvania7 commented 2026-11-24 13:02:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:47:06Z.


@MartinIndra02 Great catch — that completely reframes the issue. If dfafaf385b2f94e8 is purely a vertex shader without textures, then s0+0: Descriptor was 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 (commit a15266b) will confirm this right in the logs, as reads [...] now explicitly prefixes the shader stage (it will print vertex 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:

  1. 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 \to RGB) failed translation or validation, the draw or dispatch gets silently dropped.

  2. 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) return None when creating host textures. If the video decoder outputs frames to a video-format surface and attempts to create an SRV/RTV, resource creation will return None, preventing any subsequent blit.

  3. 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131914516 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131914516). Originally posted by [Xvania7](https://github.com/Xvania7) on 2026-11-24T12:47:06Z. --- @MartinIndra02 Great catch — that completely reframes the issue. If `dfafaf385b2f94e8` is purely a vertex shader without textures, then `s0+0: Descriptor` was 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`](https://github.com/Xvania7/VIctory/tree/diag/issue-850-stage-logging) (commit `a15266b`) will confirm this right in the logs, as `reads [...]` now explicitly prefixes the shader stage (it will print `vertex 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: 1. **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 $\to$ RGB) failed translation or validation, the draw or dispatch gets silently dropped. 2. **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`) return `None` when creating host textures. If the video decoder outputs frames to a video-format surface and attempts to create an SRV/RTV, resource creation will return `None`, preventing any subsequent blit. 3. **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.
bittertea0323 commented 2026-11-24 13:02:14 +00:00 (Migrated from github.com)
Author
Contributor

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). Three
frames of the pre-world sequence come out complete:

frame saved probe level (brightest probed channel)
512 3.7 MB 231–237
1024 2.0 MB 243–251
1500 2.0 MB 231–244

All three are 1920×1080 presentations of the title's own artwork, drawn through the same
Srv + Sampler bindings an in-world frame uses. On this host the path descriptor → host
view → 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:

frame 931:  level 44 × 11 → 0        (clear colour, then black)
frame 1616: level 231,233,233,235,237,238,240,240,241,243,244 → 0
            draws = 1

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 single
draw turns out to be goes in the next comment rather than a guess here.

Unchanged host: try/pr89 (== origin/main ffe310e + #729 + #89 core), Windows 10 22H2
UBR 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 produces
targets ["3840x2160 ..."] on every draw and the same 11.7 GB peak, so the render targets
are sized from something else.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131987544 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131987544). Originally posted by [bittertea0323](https://github.com/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). Three frames of the pre-world sequence come out complete: | frame | saved | probe level (brightest probed channel) | |---|---|---| | 512 | 3.7 MB | 231–237 | | 1024 | 2.0 MB | 243–251 | | 1500 | 2.0 MB | 231–244 | All three are 1920×1080 presentations of the title's own artwork, drawn through the same `Srv` + `Sampler` bindings an in-world frame uses. On this host the path *descriptor → host view → 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: ``` frame 931: level 44 × 11 → 0 (clear colour, then black) frame 1616: level 231,233,233,235,237,238,240,240,241,243,244 → 0 draws = 1 ``` 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 single draw turns out to be goes in the next comment rather than a guess here. Unchanged host: `try/pr89` (== `origin/main` `ffe310e` + #729 + #89 core), Windows 10 22H2 UBR 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 produces `targets ["3840x2160 ..."]` on every draw and the same 11.7 GB peak, so the render targets are sized from something else.
lucaseddd commented 2026-11-24 13:02:14 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131991599 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7131991599). Originally posted by [lucaseddd](https://github.com/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.
Xvania7 commented 2026-11-24 13:02:17 +00:00 (Migrated from github.com)
Author
Contributor

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 ignored
  • cargo test -p victory-gpu --features diagnostics: 54 passed (including draw::trace_tests::root_view_trace_distinguishes_zero_unset_and_wrong_argument_kinds)
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings
  • cargo xtask policy: 154 files ok

Your implementation of describe_root_view is clean, self-contained, and covers all guest Root variants with a solid unit test.

Our branch (a15266b) had also instrumented prepare_for to catch unmapped shadow buffers (root_view returning None), 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+0 descriptor 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132092344 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7132092344). Originally posted by [Xvania7](https://github.com/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 ignored - `cargo test -p victory-gpu --features diagnostics`: 54 passed (including `draw::trace_tests::root_view_trace_distinguishes_zero_unset_and_wrong_argument_kinds`) - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: 0 warnings - `cargo xtask policy`: 154 files ok Your implementation of `describe_root_view` is clean, self-contained, and covers all guest `Root` variants with a solid unit test. Our branch (`a15266b`) had also instrumented `prepare_for` to catch unmapped shadow buffers (`root_view` returning `None`), 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+0` descriptor 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.
Xvania7 commented 2026-11-24 14:04:37 +00:00 (Migrated from github.com)
Author
Contributor

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!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132417771 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7132417771). Originally posted by [Xvania7](https://github.com/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!
LAKSHYA-cmd-tech commented 2026-11-24 14:04:43 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132779657 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7132779657). Originally posted by [LAKSHYA-cmd-tech](https://github.com/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.
bittertea0323 commented 2026-11-24 14:04:45 +00:00 (Migrated from github.com)
Author
Contributor

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::Shader slots the title binds in
those frames either carry a description or name a non-typeless host texture, so the
E_INVALIDARG path #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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132847966 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7132847966). Originally posted by [bittertea0323](https://github.com/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::Shader` slots the title binds in those frames either carry a description or name a non-typeless host texture, so the `E_INVALIDARG` path #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.
jackewiehose1337-code commented 2026-11-24 14:04:46 +00:00 (Migrated from github.com)
Author
Contributor

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: d2a4bae behaves 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132912989 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7132912989). Originally posted by [jackewiehose1337-code](https://github.com/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-<id>.dll+0x2215c35 (write 0x0) #0 victory-image-<id>.dll+0x2215c35 #1 victory-image-<id>.dll+0x2215eca #2 KERNEL32.DLL+0x2dda7 second run the callee differs (0x23cf683), 0x2215c35 recurs. Not the #847 regression: d2a4bae behaves 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.
rpmaster2 commented 2026-11-24 14:04:50 +00:00 (Migrated from github.com)
Author
Contributor

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

VICTORY_LOG=info,victory_gpu::draw=debug

and every presented frame that comes out black logs each traced draw with the slots it reads, e.g.

black frame 1199: draw 12 from 0 topology 5 pipeline 0x... targets [] vb 0x0+0 stride 0
    reads ["<shader hash> Srv s0+456: buffer Some((..., ...))",
            "<shader hash> Srv s0+552: placed uav=false dim 1 1584x1 f0 layout 0x1 at 0x..."]

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 such vb 0x0+0 stride 0 draws across four black frames, all with targets [], all reading the same program's SRVs.

Two gaps in the present text, for whoever picks this up:

  1. For textures it stops at the view's words (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, or host none): #895.
  2. It fires only when the presented frame is classified black. Your 0x20202C flat colour case is covered, but the frames that alternate black/content/black-white on my host are only sampled at the black ones.

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133170487 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7133170487). Originally posted by [rpmaster2](https://github.com/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 ``` VICTORY_LOG=info,victory_gpu::draw=debug ``` and every presented frame that comes out black logs each traced draw with the slots it reads, e.g. ``` black frame 1199: draw 12 from 0 topology 5 pipeline 0x... targets [] vb 0x0+0 stride 0 reads ["<shader hash> Srv s0+456: buffer Some((..., ...))", "<shader hash> Srv s0+552: placed uav=false dim 1 1584x1 f0 layout 0x1 at 0x..."] ``` 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 such `vb 0x0+0 stride 0` draws across four black frames, all with `targets []`, all reading the same program's SRVs. Two gaps in the present text, for whoever picks this up: 1. For textures it stops at the view's words (`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`, or `host none`): #895. 2. It fires only when the presented frame is classified black. Your 0x20202C flat colour case is covered, but the frames that alternate black/content/black-white on my host are only sampled at the black ones. 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.
rpmaster2 commented 2026-11-24 14:04:58 +00:00 (Migrated from github.com)
Author
Contributor

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, or host 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:

... Srv s0+32: placed uav=false dim 4 1x1 f28 layout 0x105 at 0x... host none
... Srv s0+0:  placed uav=false dim 4 32x32 f61 ...                 host none
... Srv s0+0:  placed uav=false dim 4 128x128 f83 ...               host none

and the log has zero no host texture warnings, so this is not a failed creation - the slot simply holds no host resource, and HostHeap::make_at binds a null view for it (null_for(view, ...) when make returns None). A null texture SRV samples zero everywhere, which is exactly a flat clear colour.

make returns None for a View::Shader when 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 four placed views 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 / 32 where handle is the table address plus the descriptor offset, copied from the same arithmetic op_text uses for user-data tables. I have not proven that mapping against a slot whose host resource is known to exist, so treat host none as a lead, not a conclusion. If you can check one of these on your side (VICTORY_LOG=info,victory_gpu::draw=debug plus the patch from #895), a host 3840x2160 f28 anywhere 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133706839 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7133706839). Originally posted by [rpmaster2](https://github.com/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`, or `host 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`**: ``` ... Srv s0+32: placed uav=false dim 4 1x1 f28 layout 0x105 at 0x... host none ... Srv s0+0: placed uav=false dim 4 32x32 f61 ... host none ... Srv s0+0: placed uav=false dim 4 128x128 f83 ... host none ``` and the log has zero `no host texture` warnings, so this is not a failed creation - the slot simply holds no host resource, and `HostHeap::make_at` binds a null view for it (`null_for(view, ...)` when `make` returns `None`). A null texture SRV samples zero everywhere, which is exactly a flat clear colour. `make` returns `None` for a `View::Shader` when 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 four `placed` views 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 / 32` where `handle` is the table address plus the descriptor offset, copied from the same arithmetic `op_text` uses for user-data tables. I have not proven that mapping against a slot whose host resource is known to exist, so treat `host none` as a lead, not a conclusion. If you can check one of these on your side (`VICTORY_LOG=info,victory_gpu::draw=debug` plus the patch from #895), a `host 3840x2160 f28` anywhere 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.
rpmaster2 commented 2026-11-24 14:04:59 +00:00 (Migrated from github.com)
Author
Contributor

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) with resource[0] != 1 (a texture), i.e. a placed texture view. make sends those through descriptor::host::placed_texture, which does:

let address = desc[10] | desc[11] << 32;
let texture = crate::resource::texture_at(address, resource)?;

and then makes a View::Shader of that texture. When texture_at finds nothing at that address, placed_texture returns None, make_at falls back to null_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:

  • it is not a failed host texture creation: zero no host texture warnings over the whole run;
  • it is not the "unordered placed texture not mirrored" shortcut: that one logs placed unordered texture view not mirrored and my run has none of those (the views are uav=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_at caches 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_at on 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133746886 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7133746886). Originally posted by [rpmaster2](https://github.com/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)` with `resource[0] != 1` (a texture), i.e. a placed *texture* view. `make` sends those through `descriptor::host::placed_texture`, which does: ``` let address = desc[10] | desc[11] << 32; let texture = crate::resource::texture_at(address, resource)?; ``` and then makes a `View::Shader` of that texture. When `texture_at` finds nothing at that address, `placed_texture` returns `None`, `make_at` falls back to `null_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: - it is not a failed host texture creation: zero `no host texture` warnings over the whole run; - it is not the "unordered placed texture not mirrored" shortcut: that one logs `placed unordered texture view not mirrored` and my run has none of those (the views are `uav=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_at` caches 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_at` on 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.
rpmaster2 commented 2026-11-24 15:03:54 +00:00 (Migrated from github.com)
Author
Contributor

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 None returns in descriptor::host::make (fits refused, and "no host texture and not a buffer"), plus the miss in resource::texture_at, and ran 240 s with VICTORY_LOG=info,victory_gpu::draw=debug on the stack from my previous comment.

Result over the run: 15 black frames, and exactly 20 a slot's view was not made lines — all of them why="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 one fits refusal, and not one texture_at miss, so the placement lookup and the format fit are both fine.

Two things make this narrow:

  • victory_gpu::resource logs zero warnings in the whole run, so no host texture creation failed: the resource never had a host copy, or no longer has one.
  • the same run logs 8 a title texture was released while a list not yet reset names its host copy lines, 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 - and make answers 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 Resource at 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134051771 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7134051771). Originally posted by [rpmaster2](https://github.com/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 `None` returns in `descriptor::host::make` (`fits` refused, and "no host texture and not a buffer"), plus the miss in `resource::texture_at`, and ran 240 s with `VICTORY_LOG=info,victory_gpu::draw=debug` on the stack from my previous comment. Result over the run: 15 black frames, and exactly 20 `a slot's view was not made` lines — all of them `why="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 one `fits` refusal, and not one `texture_at` miss, so the placement lookup and the format fit are both fine. Two things make this narrow: - `victory_gpu::resource` logs **zero** warnings in the whole run, so no host texture creation failed: the resource never had a host copy, or no longer has one. - the same run logs 8 `a title texture was released while a list not yet reset names its host copy` lines, 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 - and `make` answers 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 `Resource` at 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.
l0g3n commented 2026-11-24 15:03:57 +00:00 (Migrated from github.com)
Author
Contributor

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 ffe310e built 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134215502 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7134215502). Originally posted by [l0g3n](https://github.com/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 ffe310e built 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.
bittertea0323 commented 2026-11-24 15:03:58 +00:00 (Migrated from github.com)
Author
Contributor

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 0 draws with targets [] across four black frames matches our world-entry picture: 715 of 910 draws in our run had targets [], all mesh.

Both gaps you name are real:

  1. Host resource behind the slot. We added the same information one step earlier — a once-per-power-of-two log when a buffer view finds no host copy at all (that case silently bound null, so shaders read zeroes). #895's host 1584x1 f0 mips 1 / host none in the trace itself is the better place for it; no objection to it landing first.
  2. Only black frames sampled. Our discriminator reads every presented frame: the per-frame probe level, where 44 is the clear colour, 231–251 artwork or a card, 0 black. That is how the draws=1 → 0 transition was caught.

Not measured on our side: pixel content of the 2560×1440 MRTs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134234846 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7134234846). Originally posted by [bittertea0323](https://github.com/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 0` draws with `targets []` across four black frames matches our world-entry picture: 715 of 910 draws in our run had `targets []`, all mesh. Both gaps you name are real: 1. **Host resource behind the slot.** We added the same information one step earlier — a once-per-power-of-two log when a buffer view finds no host copy at all (that case silently bound null, so shaders read zeroes). #895's `host 1584x1 f0 mips 1` / `host none` in the trace itself is the better place for it; no objection to it landing first. 2. **Only black frames sampled.** Our discriminator reads every presented frame: the per-frame probe level, where `44` is the clear colour, `231–251` artwork or a card, `0` black. That is how the `draws=1 → 0` transition was caught. Not measured on our side: pixel content of the 2560×1440 MRTs.
rpmaster2 commented 2026-11-24 15:04:04 +00:00 (Migrated from github.com)
Author
Contributor

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 None path in descriptor::host::make that 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 made lines read:

why="no host texture and not a buffer" view_format=Some(42) resource=0x0 released_ago=None

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134452446 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7134452446). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-24T14:29:11Z. --- @bittertea0323 retracting my previous lead, with the measurement that killed it. I added a probe to the `None` path in `descriptor::host::make` that 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 made` lines read: ``` why="no host texture and not a buffer" view_format=Some(42) resource=0x0 released_ago=None ``` `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.
zhien114514 commented 2026-11-24 15:04:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by zhien114514 on 2026-11-24T14:46:14Z.


Adding an RDNA3 iGPU data point, and one observation that may narrow the remaining case.

**Machine**: Windows 11 build 26340, Ryzen 7 H 255 + Radeon 780M (RDNA3 iGPU, 4 GB UMA),
driver 32.0.13046.2004, page file 16/40 GB (commit limit 43.8 GB).
`VICTORY_SHADER_LOOP_LIMIT=1000`, `--console series-s`, diag build.

**Tree**: `main` + #568 + #211, plus #876's typeless remap ported by hand
(#876 touches `descriptor/host.rs`, which #568 also rewrites, so it does not merge as-is).

**Result**: 220 s with **zero device removals** (#568 does that on this adapter). The loading
key art renders at 1920x1080, the fade-out renders, then the cutscene stays black — same flat
dark frame you captured (`0x20202C` springing to mind).

**The part that may matter**: #876's remap never fires here. `once!` logs at warn level and
`VICTORY_LOG=info` is on, so it would show; it does not appear once in 220 s. Reading `fits()`:

```rust
let view = format.as_ref().map_or(0, |f| f.0 as u32);
if view == 0 {
    return !typeless;          // typeless resource + NO view format -> rejected here
}

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:

  • typeless resource + typeless view format -> #876 fixes it
  • typeless resource + no view format -> still rejected by the view == 0 early return

For the second one, first_concrete(own) as the default view format looks right: D3D12 accepts a
concrete-format view on a typeless resource, it only refuses a _TYPELESS view format. Worth a try
before 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 the
whole story — but the framebuffer value being exactly clear colour is consistent with the view
being null rather than the draws missing.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134918511 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7134918511). Originally posted by [zhien114514](https://github.com/zhien114514) on 2026-11-24T14:46:14Z. --- ```markdown Adding an RDNA3 iGPU data point, and one observation that may narrow the remaining case. **Machine**: Windows 11 build 26340, Ryzen 7 H 255 + Radeon 780M (RDNA3 iGPU, 4 GB UMA), driver 32.0.13046.2004, page file 16/40 GB (commit limit 43.8 GB). `VICTORY_SHADER_LOOP_LIMIT=1000`, `--console series-s`, diag build. **Tree**: `main` + #568 + #211, plus #876's typeless remap ported by hand (#876 touches `descriptor/host.rs`, which #568 also rewrites, so it does not merge as-is). **Result**: 220 s with **zero device removals** (#568 does that on this adapter). The loading key art renders at 1920x1080, the fade-out renders, then the cutscene stays black — same flat dark frame you captured (`0x20202C` springing to mind). **The part that may matter**: #876's remap never fires here. `once!` logs at warn level and `VICTORY_LOG=info` is on, so it would show; it does not appear once in 220 s. Reading `fits()`: ```rust let view = format.as_ref().map_or(0, |f| f.0 as u32); if view == 0 { return !typeless; // typeless resource + NO view format -> rejected here } ``` 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: - typeless resource + typeless view format -> #876 fixes it - typeless resource + no view format -> still rejected by the `view == 0` early return For the second one, `first_concrete(own)` as the default view format looks right: D3D12 accepts a concrete-format view on a typeless resource, it only refuses a `_TYPELESS` view format. Worth a try before 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 the whole story — but the framebuffer value being exactly clear colour is consistent with the view being null rather than the draws missing. ```
andrewpozdnakov7-jpg commented 2026-11-24 15:04:14 +00:00 (Migrated from github.com)
Author
Contributor

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:

  • Before, on ffe310eb2098e52169f4c44db5ffdabf43a72622: the existing slot still read zero after registration. A fresh heap with the same SRV read 1.25.
  • After, on 4efea7c: both slots read 1.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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135126512 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135126512). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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: - Before, on `ffe310eb2098e52169f4c44db5ffdabf43a72622`: the existing slot still read zero after registration. A fresh heap with the same SRV read `1.25`. - After, on `4efea7c`: both slots read `1.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](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/4efea7c9fd3c9f8322b1b4a8649a5c91b93cd390) #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.
Xvania7 commented 2026-11-24 15:04:17 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135206750 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135206750). Originally posted by [Xvania7](https://github.com/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.
Xvania7 commented 2026-11-24 15:04:17 +00:00 (Migrated from github.com)
Author
Contributor

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 in fits() 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:

  1. In adapt_view_format, requests with view == 0 or format.is_none() on typeless resources no longer fail early. Instead, they resolve to the default concrete format for the resource family via first_concrete(own) (e.g. R8G8B8A8_UNORM for R8G8B8A8_TYPELESS). Typed resources retain their original host path.
  2. For typeless textures where the title passes desc = None, we now synthesize a matching default host SRV/UAV description (default_srv_desc / default_uav_desc) using the concrete format, avoiding D3D12's E_INVALIDARG on null pDesc with typeless resources.
  3. Added regression unit test typeless_resource_with_none_or_zero_view_format_maps_to_concrete.

Could you please pull the latest commit and re-test on the 780M?

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135299176 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135299176). Originally posted by [Xvania7](https://github.com/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 in `fits()` 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](https://github.com/Xvania7/VIctory/commit/2be93afa6299c16303d53e5f51f54b91baf3aa01) Changes: 1. In `adapt_view_format`, requests with `view == 0` or `format.is_none()` on typeless resources no longer fail early. Instead, they resolve to the default concrete format for the resource family via `first_concrete(own)` (e.g. `R8G8B8A8_UNORM` for `R8G8B8A8_TYPELESS`). Typed resources retain their original host path. 2. For typeless textures where the title passes `desc = None`, we now synthesize a matching default host SRV/UAV description (`default_srv_desc` / `default_uav_desc`) using the concrete format, avoiding D3D12's `E_INVALIDARG` on null `pDesc` with typeless resources. 3. Added regression unit test `typeless_resource_with_none_or_zero_view_format_maps_to_concrete`. Could you please pull the latest commit and re-test on the 780M?
mkslzk commented 2026-11-24 16:05:00 +00:00 (Migrated from github.com)
Author
Contributor

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 translate over the full retail shaders.rpf (26 503 containers, 26 084 programs) on a
build that has #844, #834's coalescing, #728 (fix/shader-top5) and #878 (mask-dword-joins)
merged. Emission is high:

DXIL  12840 emitted of 14027 vertex and pixel programs
       1473 emitted of  2582 compute programs
       8454 emitted of  8713 mesh programs

and of the 2915 programs that fail, the ranking starts like this:

Count Class
880 a descriptor read only as data
808 a descriptor's address or format read as data
207 I/O: an interpolation with computed barycentrics
... 31 more classes, each under 100

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 output
is 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 not
used as a resource anywhere in the program:

let Some((at, first)) = use_at else {
    return Err("a descriptor read only as data");
};

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135432086 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135432086). Originally posted by [mkslzk](https://github.com/mkslzk) on 2026-11-24T15:05:06Z. --- Number for the elimination chain in this issue, because it confirms your conclusion globally. We ran `victory translate` over the full retail `shaders.rpf` (26 503 containers, 26 084 programs) on a build that has #844, #834's coalescing, #728 (`fix/shader-top5`) and #878 (`mask-dword-joins`) merged. Emission is high: ``` DXIL 12840 emitted of 14027 vertex and pixel programs 1473 emitted of 2582 compute programs 8454 emitted of 8713 mesh programs ``` and of the 2915 programs that fail, the ranking starts like this: | Count | Class | |---|---| | 880 | a descriptor read only as data | | 808 | a descriptor's address or format read as data | | 207 | I/O: an interpolation with computed barycentrics | | ... | 31 more classes, each under 100 | 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 output is 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 not used as a resource anywhere in the program: ```rust let Some((at, first)) = use_at else { return Err("a descriptor read only as data"); }; ``` 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.
bittertea0323 commented 2026-11-24 16:05:00 +00:00 (Migrated from github.com)
Author
Contributor

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:

metric your tree our tree
vertex+pixel emitting DXIL 12840 / 14027 12309 / 14027
compute emitting DXIL 1473 / 2582 1451 / 2582
mesh emitting DXIL 8454 / 8713 8380 / 8713
a descriptor read only as data 880 389
a descriptor's address or format read as data 808 589

Your 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 #979 infers the view from the used-resource entry at both the
no-use-point and scalar-use-point branches, which is what moves a descriptor read only as data. That issue
has 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 26
failures (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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135457043 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135457043). Originally posted by [bittertea0323](https://github.com/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: | metric | your tree | our tree | |---|---|---| | vertex+pixel emitting DXIL | **12840** / 14027 | 12309 / 14027 | | compute emitting DXIL | 1473 / 2582 | 1451 / 2582 | | mesh emitting DXIL | **8454** / 8713 | 8380 / 8713 | | `a descriptor read only as data` | 880 | **389** | | `a descriptor's address or format read as data` | 808 | 589 | Your 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 `#979` infers the view from the used-resource entry at **both** the no-use-point and scalar-use-point branches, which is what moves `a descriptor read only as data`. That issue has 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 26 failures (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.
LooperSalty commented 2026-11-24 16:05:08 +00:00 (Migrated from github.com)
Author
Contributor

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 translate over the retail shaders.rpf (26 084 programs), diag build:

emitted
vertex + pixel 13 480 / 14 038
compute 2 212 / 2 582
mesh 8 654 / 8 765

scalar memory read as data 0, descriptor read only as data 0, structured buffer of unknown stride 0. Top refusals left: lane mask read as data 586, lane mask holding lanes elsewhere read as data 282.

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_load SMEM uses), plus three local translator changes:

  • a v_readfirstlane of a value that is uniform (code-table address built from s_getpc + constant + a wave-uniform index) is traced through, which un-drops ColorDownsampleCS / ColorDownsampleInitCS (exposure);
  • a lane mask spilled to a VGPR lane (v_writelane … v_readlane → exec) is followed back to the mask (−124 "lane-mask join of an untracked mask");
  • a wave prefix in divergent control flow on a 32-lane host, per half of the console wave64 (the InstanceCulling_CS_{Prop,Tree}_* passes), checked by a GPU test that the per-wave allocation (sum, s_ff1/v_mbcnt election, 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135749988 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7135749988). Originally posted by [LooperSalty](https://github.com/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 translate` over the retail `shaders.rpf` (26 084 programs), diag build: | | emitted | |---|---| | vertex + pixel | **13 480** / 14 038 | | compute | **2 212** / 2 582 | | mesh | **8 654** / 8 765 | `scalar memory read as data` 0, `descriptor read only as data` 0, `structured buffer of unknown stride` 0. Top refusals left: `lane mask read as data` 586, `lane mask holding lanes elsewhere read as data` 282. 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_load` SMEM uses), plus three local translator changes: - a `v_readfirstlane` of a value that is uniform (code-table address built from `s_getpc` + constant + a wave-uniform index) is traced through, which un-drops `ColorDownsampleCS` / `ColorDownsampleInitCS` (exposure); - a lane mask spilled to a VGPR lane (`v_writelane` … `v_readlane` → `exec`) is followed back to the mask (−124 "lane-mask join of an untracked mask"); - a wave prefix in divergent control flow on a 32-lane host, per half of the console wave64 (the `InstanceCulling_CS_{Prop,Tree}_*` passes), checked by a GPU test that the per-wave allocation (sum, `s_ff1`/`v_mbcnt` election, 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.
zhien114514 commented 2026-11-24 16:05:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by zhien114514 on 2026-11-24T15:41:42Z.


@zhien114514 Huge thanks for the spot and detailed breakdown on the Radeon 780M! That early check in was indeed discarding view requests whenever the title omitted an explicit view description ( / ).return !typeless;``fits()``view == 0``format == None

We've pushed an update to : Commit: 2be93affix/issue-850-typeless-view

Changes:

  1. In , requests with or on typeless resources no longer fail early. Instead, they resolve to the default concrete format for the resource family via (e.g. for ). Typed resources retain their original host path.adapt_view_format``view == 0``format.is_none()``first_concrete(own)``R8G8B8A8_UNORM``R8G8B8A8_TYPELESS
  2. For typeless textures where the title passes , we now synthesize a matching default host SRV/UAV description ( / ) using the concrete format, avoiding D3D12's on null with typeless resources.desc = None``default_srv_desc``default_uav_desc``E_INVALIDARG``pDesc
  3. Added regression unit test .typeless_resource_with_none_or_zero_view_format_maps_to_concrete

Could you please pull the latest commit and re-test on the 780M?

Pulled 2be93af and 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 + your fix/issue-850-typeless-view @ 2be93af + #211,
merged with git. Your commit applied to main cleanly; the only conflict was in
descriptor/host.rs's mod tests where both sides appended a test (kept both), plus a
comment-only conflict from #211. Builds and runs.

Result: the cutscene is still black on this adapter.

  • run 1: 250 s, zero device removals, loading key art at 1920x1080 renders, but 0.5 fps means
    it only reached frame 2048 — the cutscene was not reached inside the window.
  • run 2: 420 s, reached frame 2200 (captured: flat black, 1080p), then two device removals.

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 0 full-screen triangle (#850). If that triangle's pixel shader is itself in the
untranslated 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) only
leave tracing::debug! traces, which VICTORY_LOG=info hides. Could they log once at warn (the
once! style used elsewhere)? Then a tester's log proves the path was taken, instead of us guessing
from pixels.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7136455781 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7136455781). Originally posted by [zhien114514](https://github.com/zhien114514) on 2026-11-24T15:41:42Z. --- > [@zhien114514](https://github.com/zhien114514) Huge thanks for the spot and detailed breakdown on the Radeon 780M! That early check in was indeed discarding view requests whenever the title omitted an explicit view description ( / ).`return !typeless;``fits()``view == 0``format == None` > > We've pushed an update to : Commit: [2be93af](https://github.com/Xvania7/VIctory/commit/2be93afa6299c16303d53e5f51f54b91baf3aa01)`fix/issue-850-typeless-view` > > Changes: > > 1. In , requests with or on typeless resources no longer fail early. Instead, they resolve to the default concrete format for the resource family via (e.g. for ). Typed resources retain their original host path.`adapt_view_format``view == 0``format.is_none()``first_concrete(own)``R8G8B8A8_UNORM``R8G8B8A8_TYPELESS` > 2. For typeless textures where the title passes , we now synthesize a matching default host SRV/UAV description ( / ) using the concrete format, avoiding D3D12's on null with typeless resources.`desc = None``default_srv_desc``default_uav_desc``E_INVALIDARG``pDesc` > 3. Added regression unit test .`typeless_resource_with_none_or_zero_view_format_maps_to_concrete` > > Could you please pull the latest commit and re-test on the 780M? Pulled `2be93af` and 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 + your `fix/issue-850-typeless-view` @ 2be93af + #211, merged with git. Your commit applied to `main` cleanly; the only conflict was in `descriptor/host.rs`'s `mod tests` where both sides appended a test (kept both), plus a comment-only conflict from #211. Builds and runs. **Result: the cutscene is still black on this adapter.** - run 1: 250 s, **zero device removals**, loading key art at 1920x1080 renders, but 0.5 fps means it only reached frame 2048 — the cutscene was not reached inside the window. - run 2: 420 s, reached frame 2200 (captured: flat black, 1080p), then two device removals. 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 0` full-screen triangle (#850). If that triangle's pixel shader is itself in the untranslated 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) only leave `tracing::debug!` traces, which `VICTORY_LOG=info` hides. Could they log once at warn (the `once!` style used elsewhere)? Then a tester's log proves the path was taken, instead of us guessing from pixels.
Xvania7 commented 2026-11-24 17:04:18 +00:00 (Migrated from github.com)
Author
Contributor

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 use once! at warn level for the synthesized default descriptors and concrete_format_for, so testers can confirm the path was taken directly from the logs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137219157 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7137219157). Originally posted by [Xvania7](https://github.com/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 use `once!` at `warn` level for the synthesized default descriptors and `concrete_format_for`, so testers can confirm the path was taken directly from the logs.
Xvania7 commented 2026-11-24 17:04:19 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137290740 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7137290740). Originally posted by [Xvania7](https://github.com/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.
Xvania7 commented 2026-11-24 17:04:21 +00:00 (Migrated from github.com)
Author
Contributor

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, and default_uav_desc to warn! level, throttled via once! 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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137405399 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7137405399). Originally posted by [Xvania7](https://github.com/Xvania7) on 2026-11-24T16:16:51Z. --- @zhien114514 Thanks for the suggestion! We have switched the logging in `concrete_format_for`, `default_srv_desc`, and `default_uav_desc` to `warn!` level, throttled via `once!` so it reports the fallback format and synthesized dimension without flooding the log stream on hot draw paths. Pushed in commit [442bd60](https://github.com/Xvania7/VIctory/commit/442bd60deaf8a7a58cb33bf57fb1cae770c64bd8). 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).
lucaseddd commented 2026-11-24 21:03:33 +00:00 (Migrated from github.com)
Author
Contributor

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?

<!-- greyfinch-sync:Marvisak/VIctory:comment:7143693586 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7143693586). Originally posted by [lucaseddd](https://github.com/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?
andrewpozdnakov7-jpg commented 2026-11-24 22:02:30 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7145714305 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7145714305). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/c0e69ad422a14505e2636996ffdf3e25700045ee) 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.
andrewpozdnakov7-jpg commented 2026-11-25 02:05:58 +00:00 (Migrated from github.com)
Author
Contributor

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 ccfb029 during verification with a change confined to shader test-adapter selection.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149499973 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7149499973). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T01:23:43Z. --- The placed buffer regression still reproduces on 42363ab6cd5265f0fb3b500ad265f2b84c6b5dbf. After buffer registration, WARP read 0 from the existing descriptor and 1.25 from a fresh descriptor. The identical dispatch on [a862f18](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/a862f18682164ebc23c9064c0279d64a5576efb9), 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 ccfb029 during verification with a change confined to shader test-adapter selection.
andrewpozdnakov7-jpg commented 2026-11-25 07:03:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T06:35:50Z.


I moved the placed-buffer regression onto 940d32f69b and 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7154956999 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7154956999). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T06:35:50Z. --- I moved the placed-buffer regression onto 940d32f69b22265690a0b5a15d6ded572ba33baf and opened #2158 with [1bccc4f](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/1bccc4fa051ddc10f5d13877b0da62256af561eb). 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.
Marvisak commented 2026-11-25 07:03:30 +00:00 (Migrated from github.com)
Author
Contributor

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 with s0+0 is 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 main with 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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155346200 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/850#issuecomment-7155346200). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T06:58:07Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T06:35:50Z at=2026-11-25T06:58:06Z --> 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 with `s0+0` is 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 `main` with 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](https://claude.ai/code)_
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#850
No description provided.