Skip to content

Indirect dispatches: NVIDIA cards run the title's wide tile lists too - #1273

Open
Anorak-314 wants to merge 1 commit into
trustno1-coder:mainfrom
Anorak-314:indirect-wide-nvidia
Open

Anorak-314 wants to merge 1 commit into
trustno1-coder:mainfrom
Anorak-314:indirect-wide-nvidia

Conversation

@Anorak-314

@Anorak-314 Anorak-314 commented Nov 28, 2026 •

Copy link
Copy Markdown

What was wrong

indirect::widest lets an indirect dispatch run more than 65,535 groups in x on AMD cards only. On every other card the title's two tile-list programs (2dc364df5d3278b8 and 940c2635dc1312f4, one group per 8x4 tile) are cut to 65,535 groups each:

  • 2560x1440 scene (Quality): 115,200 tiles, 67,440 + 47,760 in a captured frame. The first list loses its last 1,905 tiles, the lowest of the picture (already noted in the comment on widest). On an RTX card this shows as blocky patches on arms and hands low in the frame.
  • 3840x2160 scene (DLAA, or any full-size scene): 259,200 tiles. At most 131,070 of them run, so about half of the picture's tiles are never written. They keep an earlier frame's light in the history that the temporal resolve (34fb51b8a0312e82) reads. On screen: bright horizontal streaks and blocky patches across faces and hands while anything moves, and stale light after a camera cut.

How it was found

Dumps of every render target of the same cutscene moment at Quality and at DLAA, compared pass by pass. The G-buffer is clean in both. The first lit target already has the streaks at DLAA. The resolve's history input, which those two programs write, is clean but for a few blocks at Quality and full of stale blocks from earlier camera views at DLAA.

Ruled out on the way, each with a run of screenshots: the title's motion blur, the motion vector scale given to DLSS (x1.5 and x0.667), DLSS preset K against M, a scene at 0.99 of the output, the temporal scene scale left at 2/3, leaving out the depth reprojection (11bbed94ee7a3243), and #932. The frame's and the resolve's constant buffers scale exactly between the two modes.

The change

  • widest runs wide on NVIDIA cards (vendor 0x10de) as it does on AMD's. VICTORY_INDIRECT_WIDE=0 still turns it off.
  • VICTORY_INDIRECT_WIDE=force runs wide on any card, for trying it elsewhere.
  • card_runs_wide_indirect_dispatches now runs on NVIDIA cards too.

65,535 is the most D3D12 names for a dispatch, so this stays outside what the API promises, as it already does on AMD.

Testing

One PC: RTX 5090 (32 GB, driver 621.24), Ryzen 9 9950X3D, Windows 11, Series X profile, 3840x2160 output.

  • card_runs_wide_indirect_dispatches passes on the RTX 5090 (checked that the test ran on vendor 0x10de with WIDEST 2^20, not on the PC's integrated Radeon): every group of 67,440, 115,200 and 2^20 runs once under its own number, one by one and in a batch; 2^20 + 1 runs 65,535.
  • DLAA, this branch with Series X: room for a full-size 3840x2160 scene (DLAA, VICTORY_NATIVE_4K) #1274 merged (a full-size scene does not start without it), 12 frames 110 apart through the opening cutscenes (VICTORY_CAPTURE_WORLD): with VICTORY_INDIRECT_WIDE=0, streaks or blocks in 10 of 12, and a face broken up into noise in two of them; with the default, none in 12.
  • Quality, on main with other open pull requests merged, 12 screenshots 2 s apart: with VICTORY_INDIRECT_WIDE=0, blocky patches low in the frame in 3 of 12; with the dispatches wide, none in 12.
  • No driver reset or device removal in any run. Frame rate unchanged (24.8 against 24.9 fps at DLAA, diagnostics build).
  • cargo test --workspace --locked passes (1,126 tests), and so does repository_passes_policy.
  • cargo clippy --workspace --all-targets --locked -- -D warnings stops here on main itself (manual_is_multiple_of in shadow.rs and descriptor.rs, let_and_return in victory-shader); it reports nothing in indirect.rs.

Only this one NVIDIA card was tried. If you would rather keep NVIDIA opt-in until more cards are checked, say so and I will flip the default; force is there either way.

🤖 Generated with Claude Code

On a card that is not AMD's an indirect dispatch ran at most 65,535 groups in x,
so the title's two tile-list programs (2dc364df5d3278b8, 940c2635dc1312f4, one
group per 8x4 tile) lost their last tiles: 1,905 of 115,200 with a 2560x1440
scene (blocks low in the picture), and about half of 259,200 with a 3840x2160
one, where the tiles left out kept an earlier frame's light in the history the
temporal resolve reads (streaks and blocks across faces at DLAA).

An RTX 5090 runs the wide dispatches as asked (card_runs_wide_indirect_dispatches,
which now runs on NVIDIA cards too). VICTORY_INDIRECT_WIDE=0 still turns it off;
VICTORY_INDIRECT_WIDE=force runs wide on any card.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant