Shaders: the LDS write-only shortcut as emit's last resort, for programs the proofs leave at 64 lanes (#1435, #1475) #1590

Closed
kibagami-nc wants to merge 1 commit from upstream-pr/1590 into main
kibagami-nc commented 2026-11-28 21:59:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T21:59:14Z.


Fixes #1435 (AiToR51's bisect: since #43, eight compute programs of the game no longer translate on 32-lane hosts, and their dispatches are dropped). It also takes the three ray-tracing structure builder programs of #1475.

Confirmed on the game's programs (details in "Tested by others" below):

  • AiToR51: on #1435's ten hashes, this PR translates 8, the same as VICTORY_LDS_WRITE_ONLY_OK=1, where main translates 1.
  • unueberlegt: the emitted programs are bit for bit those of the plain shortcut.
  • icdmkg2, in game: 16.9 and 16.0 fps where main gives 9.3, the same as with #43 reverted, and no program left untranslated.

What happens

Before #43, lds_meetings refused a lane-branch region (one not every lane runs) only when it both read and wrote LDS. A region that only wrote, or only did atomics, was taken:

shortcut: two writes in one region are taken not to hit the same dword from both halves.

#43 replaced that with lds::analyze, which wants a proof for those regions: disjoint constant ranges on one base, or lane-private slots. Without one it refuses (unproven LDS writes in one lane-branch region, and the like). The old shortcut is behind VICTORY_LDS_WRITE_ONLY_OK=1, off by default.

After a refusal, the lowering asks for 64 lanes, and emit tries its other forms: without early-outs, without skips, local waves, the approximate local waves. A plain if is taken by "without skips". But a region inside a per-lane loop stays where it is, so nothing takes the program on 32-lane waves. It is refused with no wave32 lowering for this wave64 program, the line #1435 shows for all eight hashes.

The change

  • lds::analyze notes when it refuses a region the write-only shortcut would have taken (take_shortcut_refusal).
  • emit then tries the program once more with the shortcut on (with_last_resort), when:
    • the first try failed;
    • the host's waves are 32 lanes;
    • VICTORY_LDS_WRITE_ONLY_OK is unset.
  • With VICTORY_WAVE_WHY=1, a program taken this way prints LDS-WRITE-ONLY last resort: the program translates only with the write-only shortcut.

The proofs are still tried first, for every program. The shortcut's risk is two writes from both halves to one dword, landing in an order the console doesn't have. That risk is taken only where the alternative is a dropped dispatch. Before #43 it was taken for every such region.

VICTORY_LDS_WRITE_ONLY_OK=0 keeps the proofs alone. =1 still has the shortcut on from the start.

The shader cache key already holds VICTORY_LDS_WRITE_ONLY_OK, and the translator's own hash changes with this, so cached translations are made again once.

Beside #1450, #1575 and #1504

Three open PRs bring these programs back. They differ in which programs get the shortcut:

PR Which programs get the write-only shortcut Programs back, by #1575's count
#1450 (Nazzgy) a list of known kernels, as a retry after the normal lowering 5 of 19
this one any program the proofs refused for a write-only region, once every other form failed all those the shortcut takes
#1575, commit 1 (misaka-20002) every program: the shortcut is on by default again 19 of 19
#1504 (aventureroestelar-source) none: exact forms for wave64 programs, in a larger change 34 of 34 refused, in its own count

This PR is #1450's mechanism without the list, so a program not yet named is covered too. Unlike #1575, it leaves the proofs' outcome alone wherever it translates: a program another form takes keeps that form.

#1575's measurement is also the confirmation that was missing here: on a 32-lane host, the shortcut brings back the programs #43 made refused.

Tests

  • New test emit::lds_loop_tests::a_shared_write_in_a_lane_loop_is_taken_by_the_last_resort. The program: 64 threads, wave64. Each lane goes round a per-lane loop writing one shared dword, then reads the dword of lane t ^ 63, in the other host wave. With VICTORY_WAVE_WHY=1:
    • The proofs alone (the test's switch at off): unproven LDS writes in one lane-branch region. Every other form stays at 64 lanes (local waves Some(64), approximate local waves Some(64)), so the program is refused: no wave32 lowering for this wave64 program.
    • The shortcut (the switch at on): it translates.
    • The default: it translates through the last try. With the last try switched off, the default fails with the same refusal as the proofs alone.
  • cargo test -p victory-shader --locked: 349 passed, 8 ignored, the new test included.
  • Clippy (workspace, --all-targets, default and --all-features): nothing new. Main's own findings are the same with and without this PR.

Tested by others

AiToR51 (RTX 3080, 32 lanes, Windows 10). Empty cache for every run, VICTORY_HOST_WAVE=32, #1435's ten hashes:

Build Switches Result
main d4b5d517 none 1 translated, 9 do not
main d4b5d517 VICTORY_LDS_WRITE_ONLY_OK=1 8 translated, 2 do not
this PR 8e0e3536 none 8 translated, 2 do not
this PR 8e0e3536 VICTORY_LDS_WRITE_ONLY_OK=0 1 translated, 9 do not

Hash by hash on this PR, with VICTORY_WAVE_WHY=1:

  • seven print LDS-WRITE-ONLY last resort: the tree culling passes and three more;
  • caf96a32… already translates on main;
  • 6871d6e4… and 6b82bc7d… stay refused, as they were before #43. #348 is the PR for those.

unueberlegt, on the title's own files (v1.0.2.1), on this branch: ten programs, including the four CS_Tree_BatchCull_*, CS_Classification_Water, CS_VarianceFilterAlpha and two XboxBvhBuilder.dll kernels.

  • All ten emit, and none refuses with "no wave32 lowering".
  • LDS-WRITE-ONLY last resort appears 9 times.
  • The emitted DXIL matches the plain shortcut's output bit for bit (e.g. CS_Tree_BatchCull → 46738758aa9b0c76). So the last try gives exactly the programs the pre-#43 default gave.

What the dropped programs cost in game. icdmkg2 (#1435) ran an RTX 5060 Laptop GPU, Series S, the same save, by script:

  • main 923e38c: 9.3 fps median, with the submitting thread at 86 ms a frame preparing;
  • #43 reverted: 18.5 fps median, about 42 ms.

icdmkg2, in game on this PR, the same laptop, script and save. Both builds are on d4b5d51 and differ only in the fix; medians over 60 s, runs alternated:

Build fps (run 1 / run 2) submitting thread, ms a frame "shader does not translate" lines
this PR 16.9 / 16.0 45 / 54 0
d4b5d51 with #43 reverted 14.1 / 17.9 52 / 48 0
main 923e38c 9.3 86 several

This PR recovers the same as the revert, within this machine's run-to-run noise (about ±1.5 fps). Hailey-Ross reports that #1450, which retries some of these kernels, brings back the trees and bushes main leaves missing.

#1475, the ray-tracing structure builder (AiToR51, RTX 3080). Its three programs in XboxBvhBuilder.dll (e63d22c4…, 28918b71…, caa78b8c…) translate on this PR: 0 of 3 on main, 3 of 3 here, each printing LDS-WRITE-ONLY last resort, as with VICTORY_LDS_WRITE_ONLY_OK=1. Only the translation was checked; the builder wasn't run in game.

bchamberlin23 (RTX 5070 Ti, Windows 11, diagnostics builds), on the title's own programs captured with VICTORY_SHADER_SAVE. Nine of #1435's ten hashes were in the capture:

  • Offline: main translates 1 and refuses 8. This PR translates 8 and refuses 1. With =0, the result is main's again.
  • In game (Series X 1440p, frame generation): main dropped about 1.4 compute dispatches a frame for the eight. This PR dropped none for them, and only 6b82bc7d… stays refused, as before #43. The frame rate was the same (17 fps, a PCIe-limited PC), and both runs exited cleanly.

No game files, dumps or extracted data are included.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544975504 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1590). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T21:59:14Z. --- Fixes #1435 (AiToR51's bisect: since #43, eight compute programs of the game no longer translate on 32-lane hosts, and their dispatches are dropped). It also takes the three ray-tracing structure builder programs of #1475. **Confirmed on the game's programs** (details in "Tested by others" below): - **AiToR51:** on #1435's ten hashes, this PR translates 8, the same as `VICTORY_LDS_WRITE_ONLY_OK=1`, where main translates 1. - **unueberlegt:** the emitted programs are bit for bit those of the plain shortcut. - **icdmkg2, in game:** 16.9 and 16.0 fps where main gives 9.3, the same as with #43 reverted, and no program left untranslated. ## What happens Before #43, `lds_meetings` refused a lane-branch region (one not every lane runs) only when it both read and wrote LDS. A region that only wrote, or only did atomics, was taken: > shortcut: two writes in one region are taken not to hit the same dword from both halves. #43 replaced that with `lds::analyze`, which wants a proof for those regions: disjoint constant ranges on one base, or lane-private slots. Without one it refuses (`unproven LDS writes in one lane-branch region`, and the like). The old shortcut is behind `VICTORY_LDS_WRITE_ONLY_OK=1`, off by default. After a refusal, the lowering asks for 64 lanes, and `emit` tries its other forms: without early-outs, without skips, local waves, the approximate local waves. A plain `if` is taken by "without skips". But a region inside a per-lane loop stays where it is, so nothing takes the program on 32-lane waves. It is refused with `no wave32 lowering for this wave64 program`, the line #1435 shows for all eight hashes. ## The change - `lds::analyze` notes when it refuses a region the write-only shortcut would have taken (`take_shortcut_refusal`). - `emit` then tries the program once more with the shortcut on (`with_last_resort`), when: - the first try failed; - the host's waves are 32 lanes; - `VICTORY_LDS_WRITE_ONLY_OK` is unset. - With `VICTORY_WAVE_WHY=1`, a program taken this way prints `LDS-WRITE-ONLY last resort: the program translates only with the write-only shortcut`. The proofs are still tried first, for every program. The shortcut's risk is two writes from both halves to one dword, landing in an order the console doesn't have. That risk is taken only where the alternative is a dropped dispatch. Before #43 it was taken for every such region. `VICTORY_LDS_WRITE_ONLY_OK=0` keeps the proofs alone. `=1` still has the shortcut on from the start. The shader cache key already holds `VICTORY_LDS_WRITE_ONLY_OK`, and the translator's own hash changes with this, so cached translations are made again once. ## Beside #1450, #1575 and #1504 Three open PRs bring these programs back. They differ in which programs get the shortcut: | PR | Which programs get the write-only shortcut | Programs back, by #1575's count | |---|---|---| | #1450 (Nazzgy) | a list of known kernels, as a retry after the normal lowering | 5 of 19 | | **this one** | any program the proofs refused for a write-only region, once every other form failed | all those the shortcut takes | | #1575, commit 1 (misaka-20002) | every program: the shortcut is on by default again | 19 of 19 | | #1504 (aventureroestelar-source) | none: exact forms for wave64 programs, in a larger change | 34 of 34 refused, in its own count | This PR is #1450's mechanism without the list, so a program not yet named is covered too. Unlike #1575, it leaves the proofs' outcome alone wherever it translates: a program another form takes keeps that form. #1575's measurement is also the confirmation that was missing here: on a 32-lane host, the shortcut brings back the programs #43 made refused. ## Tests - **New test** `emit::lds_loop_tests::a_shared_write_in_a_lane_loop_is_taken_by_the_last_resort`. The program: 64 threads, wave64. Each lane goes round a per-lane loop writing one shared dword, then reads the dword of lane `t ^ 63`, in the other host wave. With `VICTORY_WAVE_WHY=1`: - **The proofs alone** (the test's switch at off): `unproven LDS writes in one lane-branch region`. Every other form stays at 64 lanes (local waves `Some(64)`, approximate local waves `Some(64)`), so the program is refused: `no wave32 lowering for this wave64 program`. - **The shortcut** (the switch at on): it translates. - **The default:** it translates through the last try. With the last try switched off, the default fails with the same refusal as the proofs alone. - `cargo test -p victory-shader --locked`: 349 passed, 8 ignored, the new test included. - Clippy (workspace, `--all-targets`, default and `--all-features`): nothing new. Main's own findings are the same with and without this PR. ## Tested by others **AiToR51** (RTX 3080, 32 lanes, Windows 10). Empty cache for every run, `VICTORY_HOST_WAVE=32`, #1435's ten hashes: | Build | Switches | Result | |---|---|---| | main d4b5d517 | none | 1 translated, 9 do not | | main d4b5d517 | `VICTORY_LDS_WRITE_ONLY_OK=1` | 8 translated, 2 do not | | this PR 8e0e3536 | none | 8 translated, 2 do not | | this PR 8e0e3536 | `VICTORY_LDS_WRITE_ONLY_OK=0` | 1 translated, 9 do not | Hash by hash on this PR, with `VICTORY_WAVE_WHY=1`: - seven print `LDS-WRITE-ONLY last resort`: the tree culling passes and three more; - `caf96a32…` already translates on main; - `6871d6e4…` and `6b82bc7d…` stay refused, as they were before #43. #348 is the PR for those. **unueberlegt**, on the title's own files (v1.0.2.1), on this branch: ten programs, including the four `CS_Tree_BatchCull_*`, `CS_Classification_Water`, `CS_VarianceFilterAlpha` and two `XboxBvhBuilder.dll` kernels. - All ten emit, and none refuses with "no wave32 lowering". - `LDS-WRITE-ONLY last resort` appears 9 times. - The emitted DXIL matches the plain shortcut's output bit for bit (e.g. `CS_Tree_BatchCull` → `46738758aa9b0c76`). So the last try gives exactly the programs the pre-#43 default gave. **What the dropped programs cost in game.** icdmkg2 (#1435) ran an RTX 5060 Laptop GPU, Series S, the same save, by script: - main 923e38c: 9.3 fps median, with the submitting thread at 86 ms a frame preparing; - #43 reverted: 18.5 fps median, about 42 ms. **icdmkg2, in game on this PR**, the same laptop, script and save. Both builds are on d4b5d51 and differ only in the fix; medians over 60 s, runs alternated: | Build | fps (run 1 / run 2) | submitting thread, ms a frame | "shader does not translate" lines | |---|---|---|---| | this PR | 16.9 / 16.0 | 45 / 54 | 0 | | d4b5d51 with #43 reverted | 14.1 / 17.9 | 52 / 48 | 0 | | main 923e38c | 9.3 | 86 | several | This PR recovers the same as the revert, within this machine's run-to-run noise (about ±1.5 fps). Hailey-Ross reports that #1450, which retries some of these kernels, brings back the trees and bushes main leaves missing. **#1475, the ray-tracing structure builder** (AiToR51, RTX 3080). Its three programs in `XboxBvhBuilder.dll` (`e63d22c4…`, `28918b71…`, `caa78b8c…`) translate on this PR: 0 of 3 on main, 3 of 3 here, each printing `LDS-WRITE-ONLY last resort`, as with `VICTORY_LDS_WRITE_ONLY_OK=1`. Only the translation was checked; the builder wasn't run in game. **bchamberlin23** (RTX 5070 Ti, Windows 11, diagnostics builds), on the title's own programs captured with `VICTORY_SHADER_SAVE`. Nine of #1435's ten hashes were in the capture: - **Offline:** main translates 1 and refuses 8. This PR translates 8 and refuses 1. With `=0`, the result is main's again. - **In game** (Series X 1440p, frame generation): main dropped about 1.4 compute dispatches a frame for the eight. This PR dropped none for them, and only `6b82bc7d…` stays refused, as before #43. The frame rate was the same (17 fps, a PCIe-limited PC), and both runs exited cleanly. No game files, dumps or extracted data are included.
unueberlegt commented 2026-11-28 22:38:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by unueberlegt on 2026-11-28T22:38:02Z.


Ran the check you asked for, on your branch (8e0e353), against the title's v1.0.2.1 files with VICTORY_HOST_MAX_WAVE=32:

victory translate --list --jobs 8 <dump> with VICTORY_TRANSLATE_ONLY on the program hashes — the four CS_Tree_BatchCull_*, CS_VarianceFilterAlpha, CS_ProjDecalReduceClassification_Scalarized, CS_Classification_Water, CS_CollisionRaytraced, and the two XboxBvhBuilder.dll kernels (28918b7150a7aad5, caa78b8ca62bc3d6, which sit in the DLL, not in shaders.rpf):

  • all ten emit; none refuses with "no wave32 lowering";
  • VICTORY_WAVE_WHY=1 prints LDS-WRITE-ONLY last resort 9× across the attempts, as you said it would;
  • the emitted DXIL module hashes match the plain shortcut's output bit for bit (e.g. CS_Tree_BatchCull → 46738758aa9b0c76, _ImposterOnly → 28b364d01f2a57d2) — the last-resort route produces the same modules the pre-#43 default did.

For scale, on a build with the shortcut simply default-on (same programs, RTX 5070, in game): trees and bushes stand from a distance and the whole session's log holds 1 wave64 refusal (the CS_CollectTriangles_Meshlets baseline failer). So both routes bring the programs back; the difference is which one runs when the proofs could have taken a better form.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7246872788 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1590#issuecomment-7246872788). Originally posted by [unueberlegt](https://github.com/unueberlegt) on 2026-11-28T22:38:02Z. --- Ran the check you asked for, on your branch (`8e0e353`), against the title's v1.0.2.1 files with `VICTORY_HOST_MAX_WAVE=32`: `victory translate --list --jobs 8 <dump>` with `VICTORY_TRANSLATE_ONLY` on the program hashes — the four `CS_Tree_BatchCull_*`, `CS_VarianceFilterAlpha`, `CS_ProjDecalReduceClassification_Scalarized`, `CS_Classification_Water`, `CS_CollisionRaytraced`, and the two `XboxBvhBuilder.dll` kernels (`28918b7150a7aad5`, `caa78b8ca62bc3d6`, which sit in the DLL, not in `shaders.rpf`): - **all ten emit**; none refuses with "no wave32 lowering"; - `VICTORY_WAVE_WHY=1` prints `LDS-WRITE-ONLY last resort` 9× across the attempts, as you said it would; - the emitted DXIL module hashes match the plain shortcut's output bit for bit (e.g. `CS_Tree_BatchCull` → `46738758aa9b0c76`, `_ImposterOnly` → `28b364d01f2a57d2`) — the last-resort route produces the same modules the pre-#43 default did. For scale, on a build with the shortcut simply default-on (same programs, RTX 5070, in game): trees and bushes stand from a distance and the whole session's log holds 1 wave64 refusal (the `CS_CollectTriangles_Meshlets` baseline failer). So both routes bring the programs back; the difference is which one runs when the proofs could have taken a better form.
kibagami-nc commented 2026-11-28 23:00:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T23:00:19Z.


@unueberlegt, thank you. The bit-for-bit match with the shortcut's output is the strongest check this PR could get: the last try gives exactly the programs the pre-#43 default gave. It's in the description now, with AiToR51's table from #1435.

The difference from #1575, as you put it, is which form runs where the proofs could have taken a better one. On these ten, there's none: they're the same modules.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7247131863 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1590#issuecomment-7247131863). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T23:00:19Z. --- @unueberlegt, thank you. The bit-for-bit match with the shortcut's output is the strongest check this PR could get: the last try gives exactly the programs the pre-#43 default gave. It's in the description now, with AiToR51's table from #1435. The difference from #1575, as you put it, is which form runs where the proofs could have taken a better one. On these ten, there's none: they're the same modules.
bchamberlin23 commented 2026-11-28 23:45:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bchamberlin23 on 2026-11-28T23:45:49Z.


Tested #1590 (8e0e353) against main (d4b5d51) on an RTX 5070 Ti 16 GB (32 lanes, driver 617.14), Ryzen 9 9950X3D, 64 GB, Windows 11 Pro 26200. Diag builds, title build 1.0.2.1.

Offline, on the title's own programs. I captured them with VICTORY_SHADER_SAVE during a run, then ran VICTORY_HOST_WAVE=32 victory translate --warm hashes.txt <capture> on #1435's ten hashes with an empty cache each time. 9 of the 10 were in my capture; 6871d6e4b3ac9a10 wasn't.

Build Translated Do not translate
main 1 8
#1590 8 1
#1590 with VICTORY_LDS_WRITE_ONLY_OK=0 1 8

In game. Series X 1440p, DLSS Performance, DLSS frame generation, same save, open world. Each run is short, about 30 to 45 s in the world.

  • main refused 8 programs (0e366d15868e17bd 1f1fbd86759b3da2 21f7ad7863620328 55679a0547649d0b 5964b734c70b91eb 6b82bc7d22016cb5 7c9a6a83826cdfac 89d08e561897d4e5). It logged about 1.4 dropped compute dispatches per frame for them.
  • #1590 refused only 6b82bc7d22016cb5, and logged no dropped dispatches for these programs.
  • Rendered frame rate was the same, with a median of 17 fps in both. This PC's GPU link is limited to PCIe Gen 3 x8, so frame rates here aren't representative.
  • Both runs exited cleanly, with no device loss.
  • I didn't do a recorded visual A/B, so I'm not claiming anything about trees or shading yet.

About 6b82bc7d22016cb5. A local port of Vice-Tay's loose-LDS fallback (Vice-Tay #29, the approximate last-resort retry) does translate it on this card, through "loose LDS + local waves (any mask)". That might be useful for #822 or #348. It's approximate, though, so for the other 8 I'd keep #1590's route, the existing write-only shortcut.

AI-assisted (Claude Code).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7247647236 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1590#issuecomment-7247647236). Originally posted by [bchamberlin23](https://github.com/bchamberlin23) on 2026-11-28T23:45:49Z. --- Tested #1590 (`8e0e353`) against `main` (`d4b5d51`) on an RTX 5070 Ti 16 GB (32 lanes, driver 617.14), Ryzen 9 9950X3D, 64 GB, Windows 11 Pro 26200. Diag builds, title build 1.0.2.1. **Offline, on the title's own programs.** I captured them with `VICTORY_SHADER_SAVE` during a run, then ran `VICTORY_HOST_WAVE=32 victory translate --warm hashes.txt <capture>` on #1435's ten hashes with an empty cache each time. 9 of the 10 were in my capture; `6871d6e4b3ac9a10` wasn't. | Build | Translated | Do not translate | |---|---:|---:| | `main` | 1 | 8 | | #1590 | 8 | 1 | | #1590 with `VICTORY_LDS_WRITE_ONLY_OK=0` | 1 | 8 | **In game.** Series X 1440p, DLSS Performance, DLSS frame generation, same save, open world. Each run is short, about 30 to 45 s in the world. - `main` refused 8 programs (`0e366d15868e17bd 1f1fbd86759b3da2 21f7ad7863620328 55679a0547649d0b 5964b734c70b91eb 6b82bc7d22016cb5 7c9a6a83826cdfac 89d08e561897d4e5`). It logged about 1.4 dropped compute dispatches per frame for them. - #1590 refused only `6b82bc7d22016cb5`, and logged no dropped dispatches for these programs. - Rendered frame rate was the same, with a median of 17 fps in both. This PC's GPU link is limited to PCIe Gen 3 x8, so frame rates here aren't representative. - Both runs exited cleanly, with no device loss. - I didn't do a recorded visual A/B, so I'm not claiming anything about trees or shading yet. **About `6b82bc7d22016cb5`.** A local port of Vice-Tay's loose-LDS fallback (Vice-Tay #29, the approximate last-resort retry) does translate it on this card, through "loose LDS + local waves (any mask)". That might be useful for #822 or #348. It's approximate, though, so for the other 8 I'd keep #1590's route, the existing write-only shortcut. AI-assisted (Claude Code).
kibagami-nc commented 2026-11-29 00:26:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-29T00:26:45Z.


Closing: main has this now, the maintainer's way. 33027354 adds the same last try, only for a program that would otherwise be dropped, and 9f628a0e turns it off by default as VICTORY_LDS_LAST_RESORT=1, keyed in the shader cache. 24556e2b also gives the trees' culling passes their own wave-wide form, so the frame-rate gain icdmkg2 measured shouldn't need the shortcut any more.

Thanks to AiToR51, unueberlegt, icdmkg2 and bchamberlin23 for the runs. They're in this PR's description, for whoever takes on #1435's correct wave32 form for the remaining programs.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7248117414 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1590#issuecomment-7248117414). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-29T00:26:45Z. --- Closing: main has this now, the maintainer's way. 33027354 adds the same last try, only for a program that would otherwise be dropped, and 9f628a0e turns it off by default as `VICTORY_LDS_LAST_RESORT=1`, keyed in the shader cache. 24556e2b also gives the trees' culling passes their own wave-wide form, so the frame-rate gain icdmkg2 measured shouldn't need the shortcut any more. Thanks to AiToR51, unueberlegt, icdmkg2 and bchamberlin23 for the runs. They're in this PR's description, for whoever takes on #1435's correct wave32 form for the remaining programs.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!1590
No description provided.