World: ~250 indirect rectangle-list draws per frame are dropped (topology 17), and the world stays black behind the cutscene #255

Open
opened 2026-11-26 03:56:49 +00:00 by github-bot · 13 comments
Owner

@⁠gw1337x on GitHub · 2026-11-24 01:51 UTC · original

Summary

With indirect execution on, every world frame drops about 246 ExecuteIndirect draws per frame whose topology is the console's rectangle list (17). State::execute_indirect refuses DRAW | INDEXED when self.topology == RECTANGLES, because rectangles are expanded on the CPU (primitive::expand_rects) and an indirect draw's vertex count is only known on the GPU.

The opening cutscene then shows its intro card and subtitles, with audio, but the picture behind them stays black. As the primitive module notes, the title draws its full-screen passes as rectangles, so these dropped draws are a likely cause of the black picture. That is not proven.

Setup

  • RX 7800 XT 16 GB, driver 32.0.32015.7029, Windows 11 26200, 31.6 GB RAM
  • diag build of main d2a4bae + #135 + #242 + #230 + #124 + #130, Series X mode, v1.0.2.1

Data (diagnostics drop summary, world frames)

dropped 256.0/frame without a host pipeline: indirect kind 0: pipeline mismatch (compute false, mesh false, topology 17)

That reason averages 246 per frame over the run, and it is the only indirect drop reason the summary names. For scale, a typical world frame line:

1.2 fps, 864.9 ms/frame (...), 3348 draws/frame, dropped 783 without a host pipeline (0 being made) and 1294 indirect

So the rectangles are about 250 of the 1,300–2,600 indirect executions dropped per frame. The rest belong to pipelines that have no host pipeline: shaders that don't translate, or that the host refuses.

Possible directions (not tried)

  • Expand rectangle indirect draws on the GPU. Clamp the record to 6 * (vertexCount / 3) vertices, and fetch the fourth corner in the vertex shader (v0 + v2 - v1) when the pipeline's inputs allow it.
  • For pipelines without per-vertex inputs (vertex ID only), a vertex-ID remap pass.

I can rerun with a diagnostics switch if that helps narrow it, e.g. counting which pipelines the dropped rectangle draws use.

**@⁠gw1337x** on GitHub · 2026-11-24 01:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/255) ### Summary With indirect execution on, every world frame drops about **246 `ExecuteIndirect` draws per frame whose topology is the console's rectangle list** (17). `State::execute_indirect` refuses `DRAW | INDEXED` when `self.topology == RECTANGLES`, because rectangles are expanded on the CPU (`primitive::expand_rects`) and an indirect draw's vertex count is only known on the GPU. The opening cutscene then shows its intro card and subtitles, with audio, but the picture behind them stays black. As the `primitive` module notes, the title draws its full-screen passes as rectangles, so these dropped draws are a likely cause of the black picture. That is not proven. ### Setup - RX 7800 XT 16 GB, driver 32.0.32015.7029, Windows 11 26200, 31.6 GB RAM - `diag` build of `main` `d2a4bae` + #135 + #242 + #230 + #124 + #130, Series X mode, v1.0.2.1 ### Data (diagnostics drop summary, world frames) ``` dropped 256.0/frame without a host pipeline: indirect kind 0: pipeline mismatch (compute false, mesh false, topology 17) ``` That reason averages **246 per frame** over the run, and it is the only indirect drop reason the summary names. For scale, a typical world frame line: ``` 1.2 fps, 864.9 ms/frame (...), 3348 draws/frame, dropped 783 without a host pipeline (0 being made) and 1294 indirect ``` So the rectangles are about 250 of the 1,300–2,600 indirect executions dropped per frame. The rest belong to pipelines that have no host pipeline: shaders that don't translate, or that the host refuses. ### Possible directions (not tried) - Expand rectangle indirect draws on the GPU. Clamp the record to `6 * (vertexCount / 3)` vertices, and fetch the fourth corner in the vertex shader (`v0 + v2 - v1`) when the pipeline's inputs allow it. - For pipelines without per-vertex inputs (vertex ID only), a vertex-ID remap pass. I can rerun with a diagnostics switch if that helps narrow it, e.g. counting which pipelines the dropped rectangle draws use.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:56:49 +00:00
Author
Owner

@⁠artor410 on GitHub · 2026-11-24 01:55 UTC · original

I'm working on this: non-indexed indirect rectangle draws, with the vertices expanded as the direct path does and the arguments rewritten on the GPU to 6 * (count / 3) vertices in a buffer of their own (the title's records stay untouched). PR soon. It will be tested with synthetic data only, not against the game.

**@⁠artor410** on GitHub · 2026-11-24 01:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7119585727) I'm working on this: non-indexed indirect rectangle draws, with the vertices expanded as the direct path does and the arguments rewritten on the GPU to 6 * (count / 3) vertices in a buffer of their own (the title's records stay untouched). PR soon. It will be tested with synthetic data only, not against the game.
Author
Owner

@⁠BastienRodz on GitHub · 2026-11-24 02:07 UTC · original

I'm working on this: non-indexed indirect draws with the rectangle-list topology, expanded on the GPU after the argument clamp. A compute pass of ours writes (v0, v1, v2, v0, v2, v3) per rectangle into list-owned scratch, the fourth corner computed as primitive::expand_rects does, and rewrites a copy of each record (the title's arguments are not touched). Indexed rectangles stay unsupported, as for direct draws. I'll open a PR when it's tested. No game data used.

AI-assisted (Claude Code, Gemini).

**@⁠BastienRodz** on GitHub · 2026-11-24 02:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7119770519) I'm working on this: non-indexed indirect draws with the rectangle-list topology, expanded on the GPU after the argument clamp. A compute pass of ours writes (v0, v1, v2, v0, v2, v3) per rectangle into list-owned scratch, the fourth corner computed as `primitive::expand_rects` does, and rewrites a copy of each record (the title's arguments are not touched). Indexed rectangles stay unsupported, as for direct draws. I'll open a PR when it's tested. No game data used. AI-assisted (Claude Code, Gemini).
Author
Owner

@⁠louketa on GitHub · 2026-11-24 03:22 UTC · original

With #346 merged, the topology-17 indirect drops are gone in the world, but the picture behind the opening cutscene stays black (subtitles and voices still play). So the dropped rectangle-list draws are not the cause of the black picture, or not the only cause.

Setup

  • Windows 11 Pro 26200, RTX 3080 (driver 32.0.16.1742), i5-12400F, 32 GB RAM, real GPU (no WARP)
  • diag build, Series X mode, v1.0.2.1, VICTORY_D3D12_DRED=1
  • main d2a4bae + #346 cee702e + #333 ddb6823 + #307 ffa6635 + #329 02564c5 + #309 64c7188 + #135 9dac364 + #160 7265593 + #205 cbb50b8 + #352 f77bd28, merged in that order. #307 + #309 together need one extra match arm in apps/victory/src/translate.rs (Source::Fetched counted as loaded, Select/Lanes unreachable like Phi) to compile.

World (about 2.5 minutes, 19 summary lines)

Range
fps 0.1 to 0.5 (2.1 to 8.0 s/frame)
draws/frame 274 to 1,435
dropped without a host pipeline 10 to 1,590/frame
indirect dropped 117 to 758/frame
  • The only indirect kind drop reason left is indirect kind 1: indexed rectangles not supported, at 0.3/frame. Without #346 it was ~246/frame on the run in this issue.
  • The remaining indirect drops are pipelines with no host pipeline (untranslated or refused shaders), not a topology mismatch. The largest single entries are about 4 to 9/frame each (for example refused [compute cabb87599722e59a] at 9.0/frame), so the remaining loss is spread over many programs.
  • 0 ERROR lines, no device removal or DEVICE_HUNG during the world run; I closed the title by hand.

Static scan of shaders.rpf (victory translate --list)

  • main d2a4bae: 12,272 of 14,001 vertex and pixel programs emit DXIL.
  • The stack above: 12,434 of 14,001 (+162).

No game data attached.

**@⁠louketa** on GitHub · 2026-11-24 03:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121026847) With #346 merged, the topology-17 indirect drops are gone in the world, but the picture behind the opening cutscene **stays black** (subtitles and voices still play). So the dropped rectangle-list draws are not the cause of the black picture, or not the only cause. ### Setup - Windows 11 Pro 26200, RTX 3080 (driver 32.0.16.1742), i5-12400F, 32 GB RAM, real GPU (no WARP) - `diag` build, Series X mode, v1.0.2.1, `VICTORY_D3D12_DRED=1` - `main` `d2a4bae` + #346 `cee702e` + #333 `ddb6823` + #307 `ffa6635` + #329 `02564c5` + #309 `64c7188` + #135 `9dac364` + #160 `7265593` + #205 `cbb50b8` + #352 `f77bd28`, merged in that order. #307 + #309 together need one extra match arm in `apps/victory/src/translate.rs` (`Source::Fetched` counted as loaded, `Select`/`Lanes` unreachable like `Phi`) to compile. ### World (about 2.5 minutes, 19 summary lines) | | Range | |---|---| | fps | 0.1 to 0.5 (2.1 to 8.0 s/frame) | | draws/frame | 274 to 1,435 | | dropped without a host pipeline | 10 to 1,590/frame | | indirect dropped | 117 to 758/frame | - The only `indirect kind` drop reason left is `indirect kind 1: indexed rectangles not supported`, at **0.3/frame**. Without #346 it was ~246/frame on the run in this issue. - The remaining indirect drops are pipelines with no host pipeline (untranslated or refused shaders), not a topology mismatch. The largest single entries are about 4 to 9/frame each (for example `refused [compute cabb87599722e59a]` at 9.0/frame), so the remaining loss is spread over many programs. - 0 `ERROR` lines, no device removal or `DEVICE_HUNG` during the world run; I closed the title by hand. ### Static scan of `shaders.rpf` (`victory translate --list`) - `main` `d2a4bae`: 12,272 of 14,001 vertex and pixel programs emit DXIL. - The stack above: 12,434 of 14,001 (+162). No game data attached.
Author
Owner

@⁠tanishq-dubey on GitHub · 2026-11-24 03:33 UTC · original

Independent Linux/Wine 11.22 + RTX 5090 diagnostic run on #282 head ba9864d with the previously tested local handle-type, sparse-copy, indirect-budget and self-swap fixes. For one sustained black world frame, a submission-order trace showed the last recorded graphics write to the presented texture was a successfully submitted non-indexed rectangle draw sampling a 3840x2160 intermediate texture. A readback of that input at present time had zero RGB in all saved half-resolution samples; the presented frame samples were 0–2. This is consistent with the image being absent before the final draw, but does not prove it: the input was sampled after the draw and could have changed in between, and the trace does not cover every possible writer. A separate capture showed partial geometry in an off-screen target; its relationship to the final input is unestablished. No game assets or screenshots attached. AI-assisted.

**@⁠tanishq-dubey** on GitHub · 2026-11-24 03:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121214680) Independent Linux/Wine 11.22 + RTX 5090 diagnostic run on #282 head `ba9864d` with the previously tested local handle-type, sparse-copy, indirect-budget and self-swap fixes. For one sustained black world frame, a submission-order trace showed the last recorded graphics write to the presented texture was a successfully submitted non-indexed rectangle draw sampling a 3840x2160 intermediate texture. A readback of that input at present time had zero RGB in all saved half-resolution samples; the presented frame samples were 0–2. This is consistent with the image being absent before the final draw, but does not prove it: the input was sampled after the draw and could have changed in between, and the trace does not cover every possible writer. A separate capture showed partial geometry in an off-screen target; its relationship to the final input is unestablished. No game assets or screenshots attached. AI-assisted.
Author
Owner

@⁠louketa on GitHub · 2026-11-24 03:57 UTC · original · edited 2026-11-24 03:59 UTC

Please don't attach zips with Windows binaries to issues: nobody can review them, and people here shouldn't run them. Could you push the test as a branch or a PR instead? Then it can be read and run from source.

**@⁠louketa** on GitHub · 2026-11-24 03:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121575762) · edited 2026-11-24 03:59 UTC Please don't attach zips with Windows binaries to issues: nobody can review them, and people here shouldn't run them. Could you push the test as a branch or a PR instead? Then it can be read and run from source.
Author
Owner

@⁠xiao47576-glitch on GitHub · 2026-11-24 03:54 UTC · original · edited 2026-11-24 04:02 UTC

I ran 18 standalone synthetic tests on Mesa covering indirect rectangle draws, including indexed draws and GPU-written counts. All passed. Windows testing and validation against the linked PR and the opening cutscene are still pending.

**@⁠xiao47576-glitch** on GitHub · 2026-11-24 03:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121535516) · edited 2026-11-24 04:02 UTC I ran 18 standalone synthetic tests on Mesa covering indirect rectangle draws, including indexed draws and GPU-written counts. All passed. Windows testing and validation against the linked PR and the opening cutscene are still pending.
Author
Owner

@⁠xiao47576-glitch on GitHub · 2026-11-24 04:07 UTC · original

VIctory-255-repro.zip
I’m attaching a standalone test for indirect rectangle draws. All 18 synthetic cases passed on Mesa, including indexed draws and GPU-written counts. The ZIP includes a Windows D3D12/WARP runner for follow-up testing. Results for the linked PR and the opening cutscene are still pending.我附上了一个关于间接矩形绘制操作的独立测试。在 Mesa 环境下,所有 18 种合成案例都通过了测试,包括那些经过索引处理的绘制操作以及由 GPU 生成的测试场景。该测试文件还包含了一个用于后续测试的 Windows D3D12/WARP 实现。关于链接中的公共问题以及开场动画场景的测试结果仍在等待确认。

Zip no, bro!  别急,兄弟!

Fair point — I've removed the ZIP from my comment above. I'll push the test as a branch / PR instead so it can be reviewed from source. Thanks for flagging it.

**@⁠xiao47576-glitch** on GitHub · 2026-11-24 04:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121733630) > > [VIctory-255-repro.zip](https://github.com/user-attachments/files/35310175/VIctory-255-repro.zip) > > I’m attaching a standalone test for indirect rectangle draws. All 18 synthetic cases passed on Mesa, including indexed draws and GPU-written counts. The ZIP includes a Windows D3D12/WARP runner for follow-up testing. Results for the linked PR and the opening cutscene are still pending.我附上了一个关于间接矩形绘制操作的独立测试。在 Mesa 环境下,所有 18 种合成案例都通过了测试,包括那些经过索引处理的绘制操作以及由 GPU 生成的测试场景。该测试文件还包含了一个用于后续测试的 Windows D3D12/WARP 实现。关于链接中的公共问题以及开场动画场景的测试结果仍在等待确认。 > > Zip no, bro!  别急,兄弟! Fair point — I've removed the ZIP from my comment above. I'll push the test as a branch / PR instead so it can be reviewed from source. Thanks for flagging it.
Author
Owner

@⁠itsRevela on GitHub · 2026-11-24 04:21 UTC · original

Measurements from inside the opening cutscene, to help pick what to work on next. The setup:

  • Hardware: RTX 3070 Ti (driver 32.0.16.1088) through Windows Sandbox's vGPU, Windows 11 26200.
  • Build: diag features, main d2a4bae.
  • Changes on top: #419, a window fix that doesn't affect rendering, and #500, which picks the captured frames by draw count. Both are mine.
  • Capture: VICTORY_DUMP_TARGETS on the 3 frames after the first one with 1,000 or more draws. Each target is reduced to how much of it differs from its clear value.

1. In the cutscene, almost no geometry reaches the depth buffer. With a warm shader cache, about 5% of the 2560x1440 depth buffer differs from its clear value. 10 of the 38 full-resolution targets have any content, and the colour targets the scene would fill stay at their clear values. So the black picture isn't a lighting or tonemapping problem: the scene's geometry isn't drawn.

2. Compare runs with a warm shader cache on both sides. On a cold cache, every new pipeline is still "being made" when the cutscene starts. That drops up to about 2,600 draws a frame on its own. With a cold cache on one side and a warm one on the other, I first credited a change with depth coverage that the cache alone gave.

3. #302 on its own doesn't bring the geometry back. Both builds had a warm cache:

main main + #302
draws dropped per frame for an address in an SGPR that is no root parameter ~1,190 (28 programs) ~390 (3 programs)
depth buffer differing from its clear value 5.0-5.5% 0.7-6.9%
full-resolution targets with any content 10 of 38 5-9 of 34-39

The draws #302 restores are real (dispatches, mostly), but they don't put the scene into the depth buffer by themselves. This says nothing about whether #302 is correct.

4. What still drops draws in the cutscene (warm main, averaged over the heavy frames):

dropped / frame programs reason
~1,190 28 an address in an SGPR that is no root parameter (#302)
~240 9 a descriptor neither loaded nor built (the mesh ones are waterfall loops over per-lane samplers: #307, then the phi case #320 covers)
~230 indirect kind 0: prepare failed (compute false, mesh false)
~215 7 a structured buffer of unknown stride (#193)

Beyond those, the frames still drop about 1,500 indirect executions each, and the run ends in the GPU hang from #325 a few seconds to a minute later. The hang comes sooner the more pipelines exist: a warm cache leaves 3 to 20 heavy frames before it.

Counts only: no images or shader data. AI-assisted (Claude Code).

**@⁠itsRevela** on GitHub · 2026-11-24 04:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7121950295) Measurements from inside the opening cutscene, to help pick what to work on next. The setup: - **Hardware:** RTX 3070 Ti (driver 32.0.16.1088) through Windows Sandbox's vGPU, Windows 11 26200. - **Build:** `diag` features, `main` `d2a4bae`. - **Changes on top:** #419, a window fix that doesn't affect rendering, and #500, which picks the captured frames by draw count. Both are mine. - **Capture:** `VICTORY_DUMP_TARGETS` on the 3 frames after the first one with 1,000 or more draws. Each target is reduced to how much of it differs from its clear value. **1. In the cutscene, almost no geometry reaches the depth buffer.** With a warm shader cache, about 5% of the 2560x1440 depth buffer differs from its clear value. 10 of the 38 full-resolution targets have any content, and the colour targets the scene would fill stay at their clear values. So the black picture isn't a lighting or tonemapping problem: the scene's geometry isn't drawn. **2. Compare runs with a warm shader cache on both sides.** On a cold cache, every new pipeline is still "being made" when the cutscene starts. That drops up to about 2,600 draws a frame on its own. With a cold cache on one side and a warm one on the other, I first credited a change with depth coverage that the cache alone gave. **3. #302 on its own doesn't bring the geometry back.** Both builds had a warm cache: | | `main` | `main` + #302 | |---|---|---| | draws dropped per frame for `an address in an SGPR that is no root parameter` | ~1,190 (28 programs) | ~390 (3 programs) | | depth buffer differing from its clear value | 5.0-5.5% | 0.7-6.9% | | full-resolution targets with any content | 10 of 38 | 5-9 of 34-39 | The draws #302 restores are real (dispatches, mostly), but they don't put the scene into the depth buffer by themselves. This says nothing about whether #302 is correct. **4. What still drops draws in the cutscene** (warm `main`, averaged over the heavy frames): | dropped / frame | programs | reason | |---|---|---| | ~1,190 | 28 | `an address in an SGPR that is no root parameter` (#302) | | ~240 | 9 | `a descriptor neither loaded nor built` (the mesh ones are waterfall loops over per-lane samplers: #307, then the phi case #320 covers) | | ~230 | | indirect kind 0: `prepare failed (compute false, mesh false)` | | ~215 | 7 | `a structured buffer of unknown stride` (#193) | Beyond those, the frames still drop about 1,500 indirect executions each, and the run ends in the GPU hang from #325 a few seconds to a minute later. The hang comes sooner the more pipelines exist: a warm cache leaves 3 to 20 heavy frames before it. Counts only: no images or shader data. AI-assisted (Claude Code).
Author
Owner

@⁠itsRevela on GitHub · 2026-11-24 04:41 UTC · original

Follow-up with numbers that narrow down where the picture is lost. Same setup as my comment above: warm main plus #419 and #500, 3 cutscene frames.

I added local diagnostics that log each draw's depth target and whether it ran, and wrapped every mesh dispatch of the captured frames in a D3D12 pipeline-statistics query. The diagnostics aren't in a PR (yet), and these are counts only.

The raster side works. Into the scene's 2560x1440 depth buffer, over 3 frames:

dispatches primitives emitted after clipping pixel shader invocations
direct mesh 908 387,840 233,935 3,217,365
indirect mesh 4,007 80,640 44,139 87,923

That's about a million shaded pixels a frame from the geometry passes, so the black picture isn't geometry going missing before rasterization. VIctory sets every render target write mask to all, so the writes aren't masked on our side either.

The lighting side is empty. At the end of each frame, with or without #302, every 2560x1440 float target is uniformly zero. That's three R16G16B16A16_FLOAT and three R11G11B10_FLOAT targets. The only full-resolution targets with content are the R10G10B10A2 ones, the UI and letterbox layer.

Most of the compute work is dropped.

  • Of the indirect compute dispatches in those frames, 2,183 of 2,952 (74%) have no host pipeline and are skipped.
  • Of the direct mesh draws whose colour target is the 2560x1440 R16G16B16A16_FLOAT target, 172 of 285 are dropped for the same reason.

So the work still missing is mostly the compute chain after the geometry, plausibly deferred lighting and post-processing. I can't name the passes. That fits #302 restoring compute dispatches without changing the picture: with #302, what's left are other reasons on other programs. In order:

  1. a root UAV or typed root view (7 programs, ~210 draws/frame dropped)
  2. an address from a root parameter that is no address (6, ~175)
  3. an address not from a root parameter (11, ~130)
  4. the stride, phi and waterfall cases that #193, #307 and #320 cover

The picture probably needs all of them together, not any one.

AI-assisted (Claude Code).

**@⁠itsRevela** on GitHub · 2026-11-24 04:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7122254295) Follow-up with numbers that narrow down where the picture is lost. Same setup as my comment above: warm `main` plus #419 and #500, 3 cutscene frames. I added local diagnostics that log each draw's depth target and whether it ran, and wrapped every mesh dispatch of the captured frames in a D3D12 pipeline-statistics query. The diagnostics aren't in a PR (yet), and these are counts only. **The raster side works.** Into the scene's 2560x1440 depth buffer, over 3 frames: | | dispatches | primitives emitted | after clipping | pixel shader invocations | |---|---|---|---|---| | direct mesh | 908 | 387,840 | 233,935 | 3,217,365 | | indirect mesh | 4,007 | 80,640 | 44,139 | 87,923 | That's about a million shaded pixels a frame from the geometry passes, so the black picture isn't geometry going missing before rasterization. VIctory sets every render target write mask to all, so the writes aren't masked on our side either. **The lighting side is empty.** At the end of each frame, with or without #302, every 2560x1440 float target is uniformly zero. That's three R16G16B16A16_FLOAT and three R11G11B10_FLOAT targets. The only full-resolution targets with content are the R10G10B10A2 ones, the UI and letterbox layer. **Most of the compute work is dropped.** - Of the indirect compute dispatches in those frames, **2,183 of 2,952 (74%) have no host pipeline** and are skipped. - Of the direct mesh draws whose colour target is the 2560x1440 R16G16B16A16_FLOAT target, 172 of 285 are dropped for the same reason. So the work still missing is mostly the compute chain after the geometry, plausibly deferred lighting and post-processing. I can't name the passes. That fits #302 restoring compute dispatches without changing the picture: with #302, what's left are other reasons on other programs. In order: 1. `a root UAV or typed root view` (7 programs, ~210 draws/frame dropped) 2. `an address from a root parameter that is no address` (6, ~175) 3. `an address not from a root parameter` (11, ~130) 4. the stride, phi and waterfall cases that #193, #307 and #320 cover The picture probably needs all of them together, not any one. AI-assisted (Claude Code).
Author
Owner

@⁠itsRevela on GitHub · 2026-11-24 05:34 UTC · original

Stack test, same setup as above: the five open PRs that merge cleanly together don't bring the picture back. Each build ran with a warm cache, and I captured 3 cutscene frames.

build full-res targets with content depth differing from clear HDR targets (R16G16B16A16F, R11G11B10F) with content
main 10 of 38 5.0-5.5% 0 of 6
+ #302 #489 #307 #346 9-10 of 38 4.9-5.5% 0 of 8
+ #302 #489 #307 #346 #135 7-10 of 22-40 0.8-2.8% 0 of 5-9
  • Failures move rather than go away. With the four, no root parameter is almost gone, but those programs now stop at the next case:
    • a root UAV or typed root view (9 programs, ~390 dropped draws/frame);
    • an address from a root parameter that is no address (6, ~210);
    • a structured buffer of unknown stride (6, ~200);
    • a descriptor read from the first lane of a phi (9, ~160).
  • #135 costs depth in this cutscene. On NVIDIA its descriptor pool runs out, and it then drops about 430 indirect mesh dispatches a frame that draw without it. Details on #135.
  • The other relevant PRs conflict with each other or with these: #320, #193, #294 (root UAVs), #479 and #334. So I couldn't test them in the same build. Since root UAVs are now the top reason, a #294 rebased onto #302/#307 would be the most useful next test.

Counts only. AI-assisted (Claude Code).

**@⁠itsRevela** on GitHub · 2026-11-24 05:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7123079842) Stack test, same setup as above: the five open PRs that merge cleanly together don't bring the picture back. Each build ran with a warm cache, and I captured 3 cutscene frames. | build | full-res targets with content | depth differing from clear | HDR targets (R16G16B16A16F, R11G11B10F) with content | |---|---|---|---| | `main` | 10 of 38 | 5.0-5.5% | 0 of 6 | | + #302 #489 #307 #346 | 9-10 of 38 | 4.9-5.5% | 0 of 8 | | + #302 #489 #307 #346 #135 | 7-10 of 22-40 | 0.8-2.8% | 0 of 5-9 | - **Failures move rather than go away.** With the four, `no root parameter` is almost gone, but those programs now stop at the next case: - `a root UAV or typed root view` (9 programs, ~390 dropped draws/frame); - `an address from a root parameter that is no address` (6, ~210); - `a structured buffer of unknown stride` (6, ~200); - `a descriptor read from the first lane of a phi` (9, ~160). - **#135 costs depth in this cutscene.** On NVIDIA its descriptor pool runs out, and it then drops about 430 indirect mesh dispatches a frame that draw without it. Details on #135. - **The other relevant PRs conflict with each other or with these:** #320, #193, #294 (root UAVs), #479 and #334. So I couldn't test them in the same build. Since root UAVs are now the top reason, a #294 rebased onto #302/#307 would be the most useful next test. Counts only. AI-assisted (Claude Code).
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 11:00 UTC · original

Verified and merged downstream in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/7 alongside multi-arg indirect command signatures (#757) and raw view descriptor pooling (#704).

Integration note:

  • Unified \clamp_uav\ and \ound\ in \crates/victory-gpu/src/indirect.rs\ with (kind, stride, records, offset)\ tuple so that GPU rectangle rewriting seamlessly cooperates with prefix root constants.
  • All 85 GPU tests and full workspace suite (354 tests) pass cleanly on Windows 11 D3D12 runtime.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 11:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7129537326) Verified and merged downstream in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/7 alongside multi-arg indirect command signatures (#757) and raw view descriptor pooling (#704). Integration note: - Unified \clamp_uav\ and \ound\ in \crates/victory-gpu/src/indirect.rs\ with \(kind, stride, records, offset)\ tuple so that GPU rectangle rewriting seamlessly cooperates with prefix root constants. - All 85 GPU tests and full workspace suite (354 tests) pass cleanly on Windows 11 D3D12 runtime.
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 11:21 UTC · original

RTX 4070 data, on top of #493 + #483: the rectangle drops are 256 per frame in the world. #282 brings them to 47 and 12 in two runs (#346: 12 and 204), with no device removal. Most of the remainder fails in prepare after the expansion, because the dynamic descriptor slots run out (#688 addresses that). In the captured frames the screen still shows the opening credits, so there is no visible difference yet. Details on #282 and #346. AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-24 11:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7130001373) RTX 4070 data, on top of #493 + #483: the rectangle drops are 256 per frame in the world. **#282 brings them to 47 and 12** in two runs (#346: 12 and 204), with no device removal. Most of the remainder fails in `prepare` after the expansion, because the dynamic descriptor slots run out (#688 addresses that). In the captured frames the screen still shows the opening credits, so there is no visible difference yet. Details on #282 and #346. AI-assisted.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:45 UTC · original

Automated triage for the maintainers.

The defect this issue reports, indirect rectangle-list draws (topology 17) being refused, is fixed in main by commit 683ad7a ("rectangle lists through a geometry shader"). Rectangle-list draws, indirect ones included, now get a generated geometry shader (crates/victory-shader/src/emit/rect.rs). In crates/victory-gpu/src/draw.rs, execute_indirect runs DRAW/INDEXED records with that topology when completes_rectangles() says the bound pipeline has the shader. It refuses them only when the pipeline has none. #346 is closed.

The black picture behind the cutscene is a separate problem. Measurements in this thread show it remains once the rectangle drops are gone, and that it comes from refused or untranslated compute and lighting work instead. New findings on that belong in a black-world report, not here. Please don't attach binaries or archives to issues; push code as a branch or pull request.

Proposed close (fixed in main, 683ad7a, draw.rs execute_indirect). This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/255#issuecomment-7149924554) <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-24T11:21:55Z at=2026-11-25T01:45:30Z --> Automated triage for the maintainers. The defect this issue reports, indirect rectangle-list draws (topology 17) being refused, is fixed in `main` by commit `683ad7a` ("rectangle lists through a geometry shader"). Rectangle-list draws, indirect ones included, now get a generated geometry shader (`crates/victory-shader/src/emit/rect.rs`). In `crates/victory-gpu/src/draw.rs`, `execute_indirect` runs `DRAW`/`INDEXED` records with that topology when `completes_rectangles()` says the bound pipeline has the shader. It refuses them only when the pipeline has none. #346 is closed. The black picture behind the cutscene is a separate problem. Measurements in this thread show it remains once the rectangle drops are gone, and that it comes from refused or untranslated compute and lighting work instead. New findings on that belong in a black-world report, not here. Please don't attach binaries or archives to issues; push code as a branch or pull request. Proposed close (fixed in main, `683ad7a`, `draw.rs` `execute_indirect`). This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#255
No description provided.