Repository navigation
Indirect dispatches: NVIDIA cards run the title's wide tile lists too - #1273
Open
Anorak-314 wants to merge 1 commit into
Open
Anorak-314 wants to merge 1 commit into
Anorak-314 wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
indirect::widestlets 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 (2dc364df5d3278b8and940c2635dc1312f4, one group per 8x4 tile) are cut to 65,535 groups each:widest). On an RTX card this shows as blocky patches on arms and hands low in the frame.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
widestruns wide on NVIDIA cards (vendor0x10de) as it does on AMD's.VICTORY_INDIRECT_WIDE=0still turns it off.VICTORY_INDIRECT_WIDE=forceruns wide on any card, for trying it elsewhere.card_runs_wide_indirect_dispatchesnow 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_dispatchespasses on the RTX 5090 (checked that the test ran on vendor0x10dewithWIDEST2^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.VICTORY_CAPTURE_WORLD): withVICTORY_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.mainwith other open pull requests merged, 12 screenshots 2 s apart: withVICTORY_INDIRECT_WIDE=0, blocky patches low in the frame in 3 of 12; with the dispatches wide, none in 12.cargo test --workspace --lockedpasses (1,126 tests), and so doesrepository_passes_policy.cargo clippy --workspace --all-targets --locked -- -D warningsstops here onmainitself (manual_is_multiple_ofinshadow.rsanddescriptor.rs,let_and_returninvictory-shader); it reports nothing inindirect.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;
forceis there either way.🤖 Generated with Claude Code