[pr-fix][rendering] indirect: list the two trail-map programs that asked 65,536 groups in OVER #694

Open
MasterWolf wants to merge 1 commit from MasterWolf/Darner:pr/post-merge-indirect-trailmap-over into post-merge
First-time contributor

Refs #666

Contributor role (optional)

  • Fluxer ID: 1577824307575267331

What it changes

  • The problem on post-merge: a diagnostics session at 2560x1440 DLAA reported indirect records executed as made that asked more than 65,535 groups in a dimension in 3 windows out of 190, naming 0f303afc and c214b314 (65,536 groups in x). Details in #666 (comment). #666 itself reports black 16x16 tiles in shadowed areas at a 1440p render size; this PR does not claim to fix them and was not checked against them.

CS_TrailMapBlitBlurCombineFade_indirect (0f303afc7d91c03a) and CS_TrailMapDepthBlurMasked_Indirect (c214b314ab910fcc) were executed as made. This adds both to OVER in crates/darner-gpu/src/indirect.rs (kept sorted for binary_search). bounded() then returns None for them, so every single-record dispatch of these two programs without a count buffer runs in two parts through the clamp, like the programs already listed there; the second part is empty for a record of 65,535 groups or fewer. The 7 sibling *TrailMap*Indirect* programs stay out until something shows they exceed. Two tests: OVER and BOUNDED stay sorted, well-formed and disjoint, and each listed program is found.

How it was tested

  • Tested revision: b2dd6a0 on post-merge 28a9b42. The checks below ran on 365c802, the same tree with an earlier commit message.

  • Commands and results, on 365c802:

    • cargo build --workspace --locked: ok
    • cargo test -p darner-gpu --features diagnostics --locked: 15 passed, 0 failed (13 on the base)
    • cargo clippy --workspace --all-targets --features diagnostics --locked: the same warning counts as the base (darner-gpu 56)
  • Changes a default: yes, for every card: the indirect dispatches of these two programs now always run in two parts through the clamp, where the base executed them as the title made them.

  • A/B result: no speed claim. In-game check, diagnostics builds, same settings and hardware. B was a build with 3 other unmerged changes, so the table gives no frame times: B's would not show this change alone.

    A (28a9b42) B (this change and 3 others)
    Windows reporting records executed as made that asked more than 65,535 groups 3 of 190 (0f303afc, c214b314) 0 of 173, 0 of 157 (2 sessions)
    Windows where these two programs ran in two parts through the clamp 0 0f303afc 32 and c214b314 20; 0f303afc 6
    Indirect records the clamp bounded per frame (mean once no pipeline was left being made) 8.43 9.28, 10.19
    Records whose counts the clamp changed 0.00 0.00
    Most of a list's indirect budget one run spent 5.49% 5.49%

    1 run of about 16.5 minutes for A, 2 runs of about 15.5 and 14.5 minutes for B. A spent its first 12 minutes making pipelines (B: under 2 minutes), and its 3 windows all fall in the 5 minutes after. In B the two programs are in OVER, so the check no longer reads their records: B's 0 says only that no record the check still reads passed 65,535 groups, a sibling's included.

  • Gates run on that revision (the three in AGENTS.md; there is no CI), each also on the base 28a9b42:

    • gate 3, cargo test --workspace --locked, on 365c802: 184 passed, 0 failed (182 on the base)
    • gate 1, cargo clippy --workspace --all-targets --locked, on 365c802, without -D warnings: the same warning counts as the base (darner-gpu 46, darner 8, darner-shader 6, darner-loader 4). The base already has these, so with -D warnings the gate fails on the base and here alike.
    • gate 2, cargo clippy --workspace --all-targets --all-features --locked, on b2dd6a0, without -D warnings: the same, darner-gpu 61 on both.
  • Gameplay: RTX 5070 Ti 16 GB, driver 621.40, Series X, 2560x1440, DLSS DLAA, hardware ray tracing, DLSS frame generation 2x. No screenshot comparison of the trails was made.

  • Shader wave sizes tested: not relevant (no shader change).

  • Hardware dependence: untested elsewhere. The 65,536 groups were seen at one render size, 2560x1440; the OVER entries mark the count as by content, so other render sizes may reach it too.

  • Coverage gaps: B was a combined build (this change plus 3 other changes that are not part of this PR), not this change alone. The first B session ended in a GPU device removal after about 15.5 minutes, with no breadcrumbs (DARNER_D3D12_DRED was off); its cause is unknown: none of the four changes, this one included, was traced to it or ruled out. The second B session, with DARNER_D3D12_DRED=1, ran about 14.5 minutes without one, at about a third of the frame rate (the breadcrumbs widened the gaps between lists from about 39 to about 213 ms a frame), so it says little about whether the removal comes back. Only this card and route; siblings not proven either way (see the issue comment).

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on post-merge.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
  • Replaces or overlaps: none found
Refs #666 ## Contributor role (optional) - Fluxer ID: 1577824307575267331 ## What it changes - The problem on `post-merge`: a diagnostics session at 2560x1440 DLAA reported `indirect records executed as made that asked more than 65,535 groups in a dimension` in 3 windows out of 190, naming `0f303afc` and `c214b314` (65,536 groups in x). Details in https://git.gtahub.st/TrustNo1/Darner/issues/666#issuecomment-907958. #666 itself reports black 16x16 tiles in shadowed areas at a 1440p render size; this PR does not claim to fix them and was not checked against them. `CS_TrailMapBlitBlurCombineFade_indirect` (`0f303afc7d91c03a`) and `CS_TrailMapDepthBlurMasked_Indirect` (`c214b314ab910fcc`) were executed as made. This adds both to `OVER` in `crates/darner-gpu/src/indirect.rs` (kept sorted for `binary_search`). `bounded()` then returns `None` for them, so every single-record dispatch of these two programs without a count buffer runs in two parts through the clamp, like the programs already listed there; the second part is empty for a record of 65,535 groups or fewer. The 7 sibling `*TrailMap*Indirect*` programs stay out until something shows they exceed. Two tests: `OVER` and `BOUNDED` stay sorted, well-formed and disjoint, and each listed program is found. ## How it was tested - Tested revision: `b2dd6a0` on `post-merge` `28a9b42`. The checks below ran on `365c802`, the same tree with an earlier commit message. - Commands and results, on `365c802`: - `cargo build --workspace --locked`: ok - `cargo test -p darner-gpu --features diagnostics --locked`: 15 passed, 0 failed (13 on the base) - `cargo clippy --workspace --all-targets --features diagnostics --locked`: the same warning counts as the base (darner-gpu 56) - Changes a default: yes, for every card: the indirect dispatches of these two programs now always run in two parts through the clamp, where the base executed them as the title made them. - A/B result: no speed claim. In-game check, diagnostics builds, same settings and hardware. B was a build with 3 other unmerged changes, so the table gives no frame times: B's would not show this change alone. | | A (`28a9b42`) | B (this change and 3 others) | |---|---|---| | Windows reporting records executed as made that asked more than 65,535 groups | 3 of 190 (`0f303afc`, `c214b314`) | 0 of 173, 0 of 157 (2 sessions) | | Windows where these two programs ran in two parts through the clamp | 0 | `0f303afc` 32 and `c214b314` 20; `0f303afc` 6 | | Indirect records the clamp bounded per frame (mean once no pipeline was left being made) | 8.43 | 9.28, 10.19 | | Records whose counts the clamp changed | 0.00 | 0.00 | | Most of a list's indirect budget one run spent | 5.49% | 5.49% | 1 run of about 16.5 minutes for A, 2 runs of about 15.5 and 14.5 minutes for B. A spent its first 12 minutes making pipelines (B: under 2 minutes), and its 3 windows all fall in the 5 minutes after. In B the two programs are in `OVER`, so the check no longer reads their records: B's 0 says only that no record the check still reads passed 65,535 groups, a sibling's included. - Gates run on that revision (the three in AGENTS.md; there is no CI), each also on the base `28a9b42`: - gate 3, `cargo test --workspace --locked`, on `365c802`: 184 passed, 0 failed (182 on the base) - gate 1, `cargo clippy --workspace --all-targets --locked`, on `365c802`, without `-D warnings`: the same warning counts as the base (darner-gpu 46, darner 8, darner-shader 6, darner-loader 4). The base already has these, so with `-D warnings` the gate fails on the base and here alike. - gate 2, `cargo clippy --workspace --all-targets --all-features --locked`, on `b2dd6a0`, without `-D warnings`: the same, darner-gpu 61 on both. - Gameplay: RTX 5070 Ti 16 GB, driver 621.40, Series X, 2560x1440, DLSS DLAA, hardware ray tracing, DLSS frame generation 2x. No screenshot comparison of the trails was made. - Shader wave sizes tested: not relevant (no shader change). - Hardware dependence: untested elsewhere. The 65,536 groups were seen at one render size, 2560x1440; the `OVER` entries mark the count as by content, so other render sizes may reach it too. - Coverage gaps: B was a combined build (this change plus 3 other changes that are not part of this PR), not this change alone. The first B session ended in a GPU device removal after about 15.5 minutes, with no breadcrumbs (`DARNER_D3D12_DRED` was off); its cause is unknown: none of the four changes, this one included, was traced to it or ruled out. The second B session, with `DARNER_D3D12_DRED=1`, ran about 14.5 minutes without one, at about a third of the frame rate (the breadcrumbs widened the gaps between lists from about 39 to about 213 ms a frame), so it says little about whether the removal comes back. Only this card and route; siblings not proven either way (see the issue comment). ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `post-merge`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found - Replaces or overlaps: none found
CS_TrailMapBlitBlurCombineFade_indirect (0f303afc7d91c03a) and
CS_TrailMapDepthBlurMasked_Indirect (c214b314ab910fcc) were executed as
made, but a diagnostics session at 1440p saw records of both ask 65,536
groups in x, one more than the host runs in a dimension. List them in
OVER so their dispatches run in two parts through the clamp (the second
part is empty for a record of 65,535 groups or fewer), and test that
OVER and BOUNDED stay sorted, well-formed and disjoint, as the binary
search in bounded() needs.

Refs #666

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'pr/post-merge-indirect-trailmap-over:MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'MasterWolf-pr/post-merge-indirect-trailmap-over'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'post-merge'
git merge --no-ff 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git rebase 'post-merge'
git switch 'post-merge'
git merge --ff-only 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git rebase 'post-merge'
git switch 'post-merge'
git merge --no-ff 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'post-merge'
git merge --squash 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'post-merge'
git merge --ff-only 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git switch 'post-merge'
git merge 'MasterWolf-pr/post-merge-indirect-trailmap-over'
git push origin 'post-merge'
Sign in to join this conversation.
No reviewers
No milestone
No project
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
TrustNo1/Darner!694
No description provided.