NVIDIA 32-lane: the paired form (fxceless#854) runs all 8 refused wave64 compute shaders; the heap-defrag shader 02384a60 then causes a rainbow grid #424

Open
opened 2026-11-27 03:22:45 +00:00 by github-bot · 0 comments
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-27 03:19 UTC · original

On an RTX 2070 SUPER, 8 of the title's compute pipelines are refused because they need 64-lane waves (#182). Ported from fxceless/victory-fork#854 onto this repo's tree, the "paired form" makes all 8 run. That brings trees back, at no measurable frame-time cost. One of the 8, the heap defragmentation pass 02384a60fda6f2d0, then causes a rainbow grid on faces while textures load. The other 7 look right.

Setup

  • RTX 2070 SUPER 8 GB (host wave lanes min=32 max=32), driver 621.14; Ryzen 7 5800X, 32 GB RAM, Windows 11. Series S + DLSS, diag build.
  • Tree: a local branch at upstream main 014d52d plus other merged PRs. Defaults: VICTORY_SUBMIT_FRAMES=2, port 1 off, VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280 (#407), VICTORY_EARLY_TABLES=0.
  • Counted with fxceless/victory-fork#1415's per-frame VICTORY_FRAME_HEALTH CSV, ported locally.

The port

  • VICTORY_WAVE_PAIRS=1, off by default. It ports only the paired form of fxceless#854 (26600c6, 805a455) and the ds_bpermute half fix from #1419; the PR's mesh linking, float64 and descriptor work are left out.
  • Each console wave runs as one 32-lane host wave, and each thread does lanes n and n+32. Every per-lane branch is taken wave-wide with EXEC as a per-lane guard. Lane reads, permutes, masks and reductions go through the host wave's own operations. There are no barriers in branches.
  • In the retry ladder (emit/mod.rs) it's tried after the exact forms and before the approximate per-half ones, and last for anything still refused. The code is in a new emit/paired.rs.
  • The switch is in the shader cache key only when it's 1.
  • Not ported: #1419's ordered FP32 reductions. Paired sums add each half's host-wave sum, so the water volumetrics can differ from the console in the last bits.

What the 8 are and why they're refused

VICTORY_WAVE_WHY says all 8 have "LDS in a group over 32, an LDS read and write in one lane-branch region", and most also use masks as data, v_mbcnt or v_readlane. Six run in groups of 64 threads, one in 128 and one in 1024. With VICTORY_WAVE_WIDE=1, 6 of 8 translate; the multi-wave groups still don't.

hash what it is
55679a0547649d0b, 89d08e561897d4e5 tree and tree-imposter culling (walls_census in draw.rs)
5dc3b25986622949, 6f225b641c5b0708 water transmission volumetrics
6b82bc7d22016cb5 VFX triangle clip (CS_CollectTriangles)
02384a60fda6f2d0 heap defragmentation, relocations (CS_DefragHeap_ComputeRelocations)
caf96a3229145fa6, 369cbe906ea72764 not identified

Results

victory translate --warm of the 8 with the switch on: 8 of 8 take paired lanes, before an approximate form: wave Some(32). In game, every pipeline gets made (0 have no host pipeline), and there's no device loss in four runs.

Same build, same route, about 4 minutes each. Gameplay frames are those with 500 draws or more.

run switches frame median / p90 compute dispatches run, median refused a frame what I saw
Q1b off 143.3 / 355 ms 3,582 6 (max 16) tree outside the window missing; textures load quickly
Q2 VICTORY_WAVE_PAIRS=1 144.9 / 376 ms 3,460 0 tree visible; rainbow grid on faces while textures load; loading feels slower
Q3 VICTORY_WAVE_PAIRS=1 + VICTORY_SKIP_PIPELINES=02384a60fda6f2d0 119.2 / 306 ms 3,053 1 (the skipped one) tree visible; no rainbow grid; loading quick again
  • Cost: within noise, 144.9 against 143.3 ms with the switch off. Q3's lower median is a shorter run, 404 gameplay frames, not a gain.
  • Rainbow grid: it comes from 02384a60. Q3 skips only that shader, and the grid goes. The other 7 run in the paired form with no visible problem.
  • Not determined: whether the paired translation of 02384a60 is wrong, or whether running it correctly lets the title move GPU heap memory under textures we already made, which then show the wrong bytes until refreshed. It's the only one of the 8 that writes where the title keeps resources.

Questions

  • Has anyone run 02384a60 correctly on a 64-lane host (RDNA) and seen whether the title's texture memory moves afterwards? That would tell a translation problem from one in our texture tracking.
  • Would a PR with the paired form, off by default, be welcome here?

Refs #182, fxceless/victory-fork#854, fxceless/victory-fork#1419, fxceless/victory-fork#1415.

AI use: port, diagnostics, log reading and write-up with AI assistance (Claude Code). The runs are my own.

**@⁠Jesper-Andersson** on GitHub · 2026-11-27 03:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/424) On an RTX 2070 SUPER, 8 of the title's compute pipelines are refused because they need 64-lane waves (#182). Ported from fxceless/victory-fork#854 onto this repo's tree, the "paired form" makes all 8 run. That brings trees back, at no measurable frame-time cost. One of the 8, the heap defragmentation pass `02384a60fda6f2d0`, then causes a rainbow grid on faces while textures load. The other 7 look right. ## Setup - RTX 2070 SUPER 8 GB (`host wave lanes min=32 max=32`), driver 621.14; Ryzen 7 5800X, 32 GB RAM, Windows 11. Series S + DLSS, diag build. - Tree: a local branch at upstream `main` `014d52d` plus other merged PRs. Defaults: `VICTORY_SUBMIT_FRAMES=2`, port 1 off, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280` (#407), `VICTORY_EARLY_TABLES=0`. - Counted with fxceless/victory-fork#1415's per-frame `VICTORY_FRAME_HEALTH` CSV, ported locally. ## The port - `VICTORY_WAVE_PAIRS=1`, off by default. It ports only the paired form of fxceless#854 (`26600c6`, `805a455`) and the `ds_bpermute` half fix from #1419; the PR's mesh linking, float64 and descriptor work are left out. - Each console wave runs as one 32-lane host wave, and each thread does lanes n and n+32. Every per-lane branch is taken wave-wide with EXEC as a per-lane guard. Lane reads, permutes, masks and reductions go through the host wave's own operations. There are no barriers in branches. - In the retry ladder (`emit/mod.rs`) it's tried after the exact forms and before the approximate per-half ones, and last for anything still refused. The code is in a new `emit/paired.rs`. - The switch is in the shader cache key only when it's `1`. - Not ported: #1419's ordered FP32 reductions. Paired sums add each half's host-wave sum, so the water volumetrics can differ from the console in the last bits. ## What the 8 are and why they're refused `VICTORY_WAVE_WHY` says all 8 have "LDS in a group over 32, an LDS read and write in one lane-branch region", and most also use masks as data, `v_mbcnt` or `v_readlane`. Six run in groups of 64 threads, one in 128 and one in 1024. With `VICTORY_WAVE_WIDE=1`, 6 of 8 translate; the multi-wave groups still don't. | hash | what it is | |---|---| | `55679a0547649d0b`, `89d08e561897d4e5` | tree and tree-imposter culling (`walls_census` in draw.rs) | | `5dc3b25986622949`, `6f225b641c5b0708` | water transmission volumetrics | | `6b82bc7d22016cb5` | VFX triangle clip (CS_CollectTriangles) | | `02384a60fda6f2d0` | heap defragmentation, relocations (CS_DefragHeap_ComputeRelocations) | | `caf96a3229145fa6`, `369cbe906ea72764` | not identified | ## Results `victory translate --warm` of the 8 with the switch on: 8 of 8 take `paired lanes, before an approximate form: wave Some(32)`. In game, every pipeline gets made (`0 have no host pipeline`), and there's no device loss in four runs. Same build, same route, about 4 minutes each. Gameplay frames are those with 500 draws or more. | run | switches | frame median / p90 | compute dispatches run, median | refused a frame | what I saw | |---|---|---|---|---|---| | Q1b | off | 143.3 / 355 ms | 3,582 | 6 (max 16) | tree outside the window **missing**; textures load quickly | | Q2 | `VICTORY_WAVE_PAIRS=1` | 144.9 / 376 ms | 3,460 | 0 | tree **visible**; **rainbow grid on faces while textures load**; loading feels slower | | Q3 | `VICTORY_WAVE_PAIRS=1` + `VICTORY_SKIP_PIPELINES=02384a60fda6f2d0` | 119.2 / 306 ms | 3,053 | 1 (the skipped one) | tree **visible**; **no rainbow grid**; loading quick again | - **Cost:** within noise, 144.9 against 143.3 ms with the switch off. Q3's lower median is a shorter run, 404 gameplay frames, not a gain. - **Rainbow grid:** it comes from `02384a60`. Q3 skips only that shader, and the grid goes. The other 7 run in the paired form with no visible problem. - **Not determined:** whether the paired translation of `02384a60` is wrong, or whether running it correctly lets the title move GPU heap memory under textures we already made, which then show the wrong bytes until refreshed. It's the only one of the 8 that writes where the title keeps resources. ## Questions - Has anyone run `02384a60` correctly on a 64-lane host (RDNA) and seen whether the title's texture memory moves afterwards? That would tell a translation problem from one in our texture tracking. - Would a PR with the paired form, off by default, be welcome here? Refs #182, fxceless/victory-fork#854, fxceless/victory-fork#1419, fxceless/victory-fork#1415. AI use: port, diagnostics, log reading and write-up with AI assistance (Claude Code). The runs are my own.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:22:45 +00:00
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/avatarmanz--VIctory-7900XTX#424
No description provided.