VIctory on NVIDIA (32-lane waves): 17 wave64 compute pipelines refused per run on main (RTX 5080) #213

Open
opened 2026-11-25 15:27:31 +00:00 by Skyfrye · 6 comments
Skyfrye commented 2026-11-25 15:27:31 +00:00 (Migrated from github.com)
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by Skyfrye on 2026-11-25T15:27:31Z.


Steps to reproduce

  1. main at 488a71c (the files of third_party/victory are the same at b533825), Windows 11 26300, NVIDIA GeForce RTX 5080 (driver 621.01; waves of 32 lanes only), Ryzen 7 9800X3D.
  2. Build as tools/lancer_victory.ps1 does (cargo build --profile diag -p victory --features diagnostics), with the launcher's tuned environment.
  3. victory.exe translate --cache --pipelines --used-pipelines <shaders.rpf> <exe> <the two DLLs> (what -Precompile runs), then victory.exe run <exe> --execute on my own copy of the 1.0.2.1 build, Enter pressed by VICTORY_KEYS through the menus, 330 s (opening, then the prologue's first rooms).

Expected result and actual result

Expected: every compute pipeline the title asks for in a run gets a host pipeline.

Actual (measured, VIctory log of the run): 17 compute pipelines are refused by the driver, all with host pipeline refused error=The parameter is incorrect. (0x80070057). The precompile step reports 18 skipped: the host refuses it. Their draws and dispatches are dropped for the whole run (in the per-reason lines they are the refused [compute …] entries).

The 17, by shader hash and by the name the shader pack gives them:

Hash Name
55679a0547649d0b InstanceCulling:CS_Tree_BatchCull
89d08e561897d4e5 InstanceCulling:CS_Tree_BatchCull_ImposterOnly
d2b169b82f67ec5b sr_tracing:CS_RayPrePass_Alpha
7168dd781ca7efb9 sr_tracing:CS_RayPrePass_Opaque_SSR
11276d0c8bbe180a sr_tracing:CS_RayPrePass_Water_SSR
2cc4c197ee29e291 sr_tracing:CS_Tiling_Generate_Opaque
71883e40620a567a sr_denoising:CS_TemporalResolve2_Opaque_FrameStatistics
0a5ecfee6b79e13b shadowmask:CS_GenerateShadowMasks_HairOnly
2da4beb386509b77 alphaResolve:CS_AlphTransmissionPrefilterMip
369cbe906ea72764 GpuParticleUpdate:CS_Visibility
b96880482a17f632 vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Vectorized
1f1fbd86759b3da2 vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Scalarized
02384a60fda6f2d0 vfx_triangleClip:CS_DefragHeap_ComputeRelocations
6b82bc7d22016cb5 vfx_triangleClip:CS_CollectTriangles_Meshlets
119ee96f602f1668 lens_flares:CS_MergeQuads
5dc3b25986622949 water_shading:CS_TransmissionVolumetrics_Tiled
6f225b641c5b0708 water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights

Three more compute shaders of that run do not translate: f133e35efed2a48a ("a lane mask exchanged where not every lane runs"), b22a16a178976e1b ("a wave sum of 16-bit floats where not every lane runs"), ceb5eb68cd99cb07 ("a descriptor's address or format read as data").

Cause, as far as I know it. I have no D3D12 debug layer on this machine. The maintainer measured the driver's message for these refusals on an RTX 4070 Super before the engine moved into this repository (the closed #186): "Shader wants wave lane count of 64 but maximum wave lane count for device is 32". Same hashes here, same error code, a card with the same 32..32 lane range, so I take it to be the same cause; that is an inference, not a new measurement.

Proposed fix, for discussion before I open pull requests (it is a large change). A port of Marvisak/VIctory #1890 by beamdotdev (console wave64 compute run as two 32-lane host waves), about +1,250 lines in victory-shader and victory-gpu, committed here under rule 10 with Source: and Co-authored-by:. I ported it onto the previous base (80d58f8) earlier today and measured there, on this card:

  • translate --pipelines --list over the shader pack: compute pipelines refused 383 → 2, and 9 → 0 of 52 for XboxBvhBuilder.dll;
  • with two small follow-ups (programs that declare all 32 KiB of LDS; an RTX 50 driver refusal of LDS atomics on a visible negation): 2,668 of 2,668 emitted compute programs get a host pipeline;
  • in a 5-minute run: host pipelines refused 15 → 0; cargo test -p victory-shader 226 passed, 0 failed.

I am re-basing that onto current main now (the 57 commits of #199 touch the same files) and will re-measure on main before opening anything. Plan: one pull request for the port, then one per follow-up, each with its tests. Tell me if you would rather have it another way, or if a port is already under way on your side.

Not known yet: whether the picture changes for the better in every pass (trees, decals, particles and reflections are what these shaders feed); and with the port the ray-tracing structure builder can start (VICTORY_BVH_BUILDER=1), after which the title crashed at world entry in my one try on the old base — a separate problem.

Log or compatibility report

containers   25985 in 150.4 s: 0 already cached, 25693 translated, 0 cached refusals, 292 newly refused
pipelines    28164 in the pack, 184.8 s: 2202 made, 107 already in the library
        3  skipped: compute shader does not translate
       18  skipped: the host refuses it
WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 55679a0547649d0b]
   (17 such lines in the run, one per hash above)

Windows and Python version

Windows 11 Pro 26300; Python 3.14.7 (not involved: this is the VIctory path only); Rust 1.98.1 (MSVC).

AI assistance: Claude Code (Claude Fable 5.2) ran the build and the game on my machine with my own copy, read the logs and wrote this report.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6607944887 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213). Originally posted by [Skyfrye](https://github.com/Skyfrye) on 2026-11-25T15:27:31Z. --- ### Steps to reproduce 1. `main` at `488a71c` (the files of `third_party/victory` are the same at `b533825`), Windows 11 26300, NVIDIA GeForce RTX 5080 (driver 621.01; waves of 32 lanes only), Ryzen 7 9800X3D. 2. Build as `tools/lancer_victory.ps1` does (`cargo build --profile diag -p victory --features diagnostics`), with the launcher's tuned environment. 3. `victory.exe translate --cache --pipelines --used-pipelines <shaders.rpf> <exe> <the two DLLs>` (what `-Precompile` runs), then `victory.exe run <exe> --execute` on my own copy of the 1.0.2.1 build, Enter pressed by `VICTORY_KEYS` through the menus, 330 s (opening, then the prologue's first rooms). ### Expected result and actual result **Expected:** every compute pipeline the title asks for in a run gets a host pipeline. **Actual (measured, VIctory log of the run):** 17 compute pipelines are refused by the driver, all with `host pipeline refused error=The parameter is incorrect. (0x80070057)`. The precompile step reports `18 skipped: the host refuses it`. Their draws and dispatches are dropped for the whole run (in the per-reason lines they are the `refused [compute …]` entries). The 17, by shader hash and by the name the shader pack gives them: | Hash | Name | | --- | --- | | `55679a0547649d0b` | `InstanceCulling:CS_Tree_BatchCull` | | `89d08e561897d4e5` | `InstanceCulling:CS_Tree_BatchCull_ImposterOnly` | | `d2b169b82f67ec5b` | `sr_tracing:CS_RayPrePass_Alpha` | | `7168dd781ca7efb9` | `sr_tracing:CS_RayPrePass_Opaque_SSR` | | `11276d0c8bbe180a` | `sr_tracing:CS_RayPrePass_Water_SSR` | | `2cc4c197ee29e291` | `sr_tracing:CS_Tiling_Generate_Opaque` | | `71883e40620a567a` | `sr_denoising:CS_TemporalResolve2_Opaque_FrameStatistics` | | `0a5ecfee6b79e13b` | `shadowmask:CS_GenerateShadowMasks_HairOnly` | | `2da4beb386509b77` | `alphaResolve:CS_AlphTransmissionPrefilterMip` | | `369cbe906ea72764` | `GpuParticleUpdate:CS_Visibility` | | `b96880482a17f632` | `vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Vectorized` | | `1f1fbd86759b3da2` | `vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Scalarized` | | `02384a60fda6f2d0` | `vfx_triangleClip:CS_DefragHeap_ComputeRelocations` | | `6b82bc7d22016cb5` | `vfx_triangleClip:CS_CollectTriangles_Meshlets` | | `119ee96f602f1668` | `lens_flares:CS_MergeQuads` | | `5dc3b25986622949` | `water_shading:CS_TransmissionVolumetrics_Tiled` | | `6f225b641c5b0708` | `water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights` | Three more compute shaders of that run do not translate: `f133e35efed2a48a` ("a lane mask exchanged where not every lane runs"), `b22a16a178976e1b` ("a wave sum of 16-bit floats where not every lane runs"), `ceb5eb68cd99cb07` ("a descriptor's address or format read as data"). **Cause, as far as I know it.** I have no D3D12 debug layer on this machine. The maintainer measured the driver's message for these refusals on an RTX 4070 Super before the engine moved into this repository (the closed #186): "Shader wants wave lane count of 64 but maximum wave lane count for device is 32". Same hashes here, same error code, a card with the same 32..32 lane range, so I take it to be the same cause; that is an inference, not a new measurement. **Proposed fix, for discussion before I open pull requests (it is a large change).** A port of Marvisak/VIctory #1890 by beamdotdev (console wave64 compute run as two 32-lane host waves), about +1,250 lines in `victory-shader` and `victory-gpu`, committed here under rule 10 with `Source:` and `Co-authored-by:`. I ported it onto the previous base (`80d58f8`) earlier today and measured there, on this card: - `translate --pipelines --list` over the shader pack: compute pipelines refused 383 → 2, and 9 → 0 of 52 for `XboxBvhBuilder.dll`; - with two small follow-ups (programs that declare all 32 KiB of LDS; an RTX 50 driver refusal of LDS atomics on a visible negation): 2,668 of 2,668 emitted compute programs get a host pipeline; - in a 5-minute run: host pipelines refused 15 → 0; `cargo test -p victory-shader` 226 passed, 0 failed. I am re-basing that onto current `main` now (the 57 commits of #199 touch the same files) and will re-measure on `main` before opening anything. Plan: one pull request for the port, then one per follow-up, each with its tests. Tell me if you would rather have it another way, or if a port is already under way on your side. Not known yet: whether the picture changes for the better in every pass (trees, decals, particles and reflections are what these shaders feed); and with the port the ray-tracing structure builder can start (`VICTORY_BVH_BUILDER=1`), after which the title crashed at world entry in my one try on the old base — a separate problem. ### Log or compatibility report ```text containers 25985 in 150.4 s: 0 already cached, 25693 translated, 0 cached refusals, 292 newly refused pipelines 28164 in the pack, 184.8 s: 2202 made, 107 already in the library 3 skipped: compute shader does not translate 18 skipped: the host refuses it WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 55679a0547649d0b] (17 such lines in the run, one per hash above) ``` ### Windows and Python version Windows 11 Pro 26300; Python 3.14.7 (not involved: this is the VIctory path only); Rust 1.98.1 (MSVC). *AI assistance: Claude Code (Claude Fable 5.2) ran the build and the game on my machine with my own copy, read the logs and wrote this report.*
KainanP commented 2026-11-25 19:12:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-25T19:12:08Z.


One data point for the port, before it lands: #1890 as it stands breaks on 16-lane hosts. I measured the VIctory wave64 PRs on an RTX 4060 Laptop (32..32), an Intel UHD 8086:a78b iGPU (WaveLaneCount 16..16) and WARP (4..4): Marvisak/VIctory#2220 (comment).

  • The driver compares the declared minimum wave size against the device's WaveLaneCountMax. A 16-lane device refuses WaveSize(32) as well as WaveSize(64), with the same bare E_INVALIDARG as in this issue.
  • #1890 splits whenever WaveLaneCountMax < 64 and always declares 32. On the 16..16 iGPU every split program is therefore refused at pipeline creation, and its a_split_wave64_gives_the_consoles_lanes_masks_and_reads fails with no device ran the program there (also with VICTORY_WARP=1). On the RTX both split tests pass.
  • Of the wave64 PRs I ran, only #189's Emulate form (no declared wave size; TGSM and barriers) created and matched on the 16-lane iGPU. #439 refuses at translation with a reason, which at least isn't silent.

So for the port, a cheap guard keeps Intel/AMD iGPUs and WARP from regressing: split into 32-lane halves only when WaveLaneCountMin <= 32 <= WaveLaneCountMax, and otherwise fall back to the current refusal (or an Emulate-style form). It would also help to have a test that runs on WARP (4..4) to cover the "split not possible" path. I can run your rebased branch on the 16-lane iGPU and WARP when it's up.

AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7171959648 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7171959648). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-25T19:12:08Z. --- One data point for the port, before it lands: **#1890 as it stands breaks on 16-lane hosts.** I measured the VIctory wave64 PRs on an RTX 4060 Laptop (32..32), an Intel UHD `8086:a78b` iGPU (`WaveLaneCount` **16..16**) and WARP (4..4): [Marvisak/VIctory#2220 (comment)](https://github.com/Marvisak/VIctory/issues/2220#issuecomment-7170692046). - The driver compares the **declared minimum wave size against the device's `WaveLaneCountMax`**. A 16-lane device refuses `WaveSize(32)` as well as `WaveSize(64)`, with the same bare `E_INVALIDARG` as in this issue. - #1890 splits whenever `WaveLaneCountMax < 64` and always declares 32. On the 16..16 iGPU every split program is therefore refused at pipeline creation, and its `a_split_wave64_gives_the_consoles_lanes_masks_and_reads` fails with `no device ran the program` there (also with `VICTORY_WARP=1`). On the RTX both split tests pass. - Of the wave64 PRs I ran, only #189's `Emulate` form (no declared wave size; TGSM and barriers) created and matched on the 16-lane iGPU. #439 refuses at translation with a reason, which at least isn't silent. So for the port, a cheap guard keeps Intel/AMD iGPUs and WARP from regressing: split into 32-lane halves only when `WaveLaneCountMin <= 32 <= WaveLaneCountMax`, and otherwise fall back to the current refusal (or an `Emulate`-style form). It would also help to have a test that runs on WARP (4..4) to cover the "split not possible" path. I can run your rebased branch on the 16-lane iGPU and WARP when it's up. _AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this._
Skyfrye commented 2026-11-25 19:53:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by Skyfrye on 2026-11-25T19:53:20Z.


Thanks, that is exactly the kind of data I could not get here (only 32..32 cards on this machine). Taking it as you propose: the port will choose the split form only when the host can run 32-lane waves (WaveLaneCountMin <= 32 <= WaveLaneCountMax) and otherwise keep today's refusal with its reason, as a separate small commit on top of the cherry-picked port so the adaptation can be reviewed on its own, with a test that runs on WARP (4..4) for the "split not possible on this host" path. An Emulate-style form for 16-lane hosts would be a follow-up, not part of this.

The chain is ported onto main locally (the port, then four follow-ups; on an RTX 5080 the tip passes cargo test -p victory-shader with 249 passed, 0 failed, 2 ignored) and is being rebased over today's merges with the guard added. I will post the branch here when it is up, and would be glad of a run on the 16-lane iGPU and WARP before it is reviewed.

AI assistance: Claude Code (Claude Fable 5.2) wrote this comment and is doing the port on my machine.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7172901042 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7172901042). Originally posted by [Skyfrye](https://github.com/Skyfrye) on 2026-11-25T19:53:20Z. --- Thanks, that is exactly the kind of data I could not get here (only 32..32 cards on this machine). Taking it as you propose: the port will choose the split form only when the host can run 32-lane waves (`WaveLaneCountMin <= 32 <= WaveLaneCountMax`) and otherwise keep today's refusal with its reason, as a separate small commit on top of the cherry-picked port so the adaptation can be reviewed on its own, with a test that runs on WARP (4..4) for the "split not possible on this host" path. An `Emulate`-style form for 16-lane hosts would be a follow-up, not part of this. The chain is ported onto `main` locally (the port, then four follow-ups; on an RTX 5080 the tip passes `cargo test -p victory-shader` with 249 passed, 0 failed, 2 ignored) and is being rebased over today's merges with the guard added. I will post the branch here when it is up, and would be glad of a run on the 16-lane iGPU and WARP before it is reviewed. *AI assistance: Claude Code (Claude Fable 5.2) wrote this comment and is doing the port on my machine.*
advxrsary commented 2026-11-27 14:24:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by advxrsary on 2026-11-27T14:24:18Z.


A branch with more wave64 work for 32-lane hosts is here: https://github.com/advxrsary/AnyXboxX/tree/wave64-exact-forms

It has 7 commits on 5a08a334. All changes are in third_party/victory (the translator, the shader cache key and the translate census).

State of main first. On 5a08a334 the driver refuses no compute pipeline in my runs (RTX 5080, driver 621.24, Windows 11, opening cell, 245 s). So the 17 refusals of this issue are gone. Four wave64 compute programs still do not translate there. Two of them are in the table above:

Hash Name 5a08a334 Branch
5dc3b25986622949 water_shading:CS_TransmissionVolumetrics_Tiled does not translate paired form
6f225b641c5b0708 water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights does not translate paired form
a10179ab7eda0dc3 water_shading:CS_TransmissionVolumetrics_VolumePortalsOnly does not translate paired form
6871d6e4b3ac9a10 water_shading:CS_TransmissionVolumetrics does not translate paired form

What the branch adds

Commit Change
dff8547 A wave64 exchange stays out of a loop that each lane leaves on its own. Before, the two host waves of a console wave could meet at group barriers a different number of times. VICTORY_WAVE_LOOP_REGIONS=0 restores the old rule.
bc9d3f7 The paired form. One host wave runs one console wave, and each thread runs console lanes n and n + 32. The form is exact. The translator tries it before each approximate form (local waves, loose LDS). VICTORY_WAVE_PAIRS=0 turns it off.
e6d19ee A program that uses its wave values only to allocate runs as two independent host waves.
d582788 A compute group that keeps host thread ids is declared as a row (N x 1 x 1). On this card a 2D group runs its lanes in 2x2 quad order, so the console lane order was lost. VICTORY_WAVE_FLAT_GROUPS=0 keeps the old shape.
c6c82b9 The census of translate prints the form, the thread group and the refusal reason for each program.
f75aa69 The shader cache key includes the new switches. Translator version 3.
3b88b9e Refactor only: flat groups, natural loops and half sums move out of lower.rs.

Measured (RTX 5080, wave lanes 32..32)

  • Census with host wave 32: of 1,151 wave64 compute programs, 759 need no special form, 113 use exchange, 141 halves, 72 local and 66 paired. No program uses an approximate form.
  • The emitted code changed for 222 programs: 62 are now paired and 129 have a row group.
  • cargo test -p victory-shader: 332 passed, 0 failed.
  • Game, opening cell, same settings, one run each: 5a08a334 20.4 fps idle and 18.9 moving, the branch 22.2 idle and 16.6 moving. No pipeline refused, no device loss.

Not tested

  • Water. My scene has no water in view, so I did not see the three water programs on screen. fxceless/victory-fork#1235 reports black patches from the wave-wide form of two of them. Please check the boat mission before you trust the paired form there.
  • A 16-lane host, WARP, and an AMD card.

Take any commit you want. I can also open pull requests if you prefer that.

AI-assisted (Claude Code). I ran the builds, tests and game runs on my own machine and my own copy of the game.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7220740343 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7220740343). Originally posted by [advxrsary](https://github.com/advxrsary) on 2026-11-27T14:24:18Z. --- A branch with more wave64 work for 32-lane hosts is here: https://github.com/advxrsary/AnyXboxX/tree/wave64-exact-forms It has 7 commits on `5a08a334`. All changes are in `third_party/victory` (the translator, the shader cache key and the `translate` census). **State of `main` first.** On `5a08a334` the driver refuses no compute pipeline in my runs (RTX 5080, driver 621.24, Windows 11, opening cell, 245 s). So the 17 refusals of this issue are gone. Four wave64 compute programs still do not translate there. Two of them are in the table above: | Hash | Name | `5a08a334` | Branch | | --- | --- | --- | --- | | `5dc3b25986622949` | `water_shading:CS_TransmissionVolumetrics_Tiled` | does not translate | paired form | | `6f225b641c5b0708` | `water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights` | does not translate | paired form | | `a10179ab7eda0dc3` | `water_shading:CS_TransmissionVolumetrics_VolumePortalsOnly` | does not translate | paired form | | `6871d6e4b3ac9a10` | `water_shading:CS_TransmissionVolumetrics` | does not translate | paired form | **What the branch adds** | Commit | Change | | --- | --- | | `dff8547` | A wave64 exchange stays out of a loop that each lane leaves on its own. Before, the two host waves of a console wave could meet at group barriers a different number of times. `VICTORY_WAVE_LOOP_REGIONS=0` restores the old rule. | | `bc9d3f7` | The paired form. One host wave runs one console wave, and each thread runs console lanes n and n + 32. The form is exact. The translator tries it before each approximate form (local waves, loose LDS). `VICTORY_WAVE_PAIRS=0` turns it off. | | `e6d19ee` | A program that uses its wave values only to allocate runs as two independent host waves. | | `d582788` | A compute group that keeps host thread ids is declared as a row (`N x 1 x 1`). On this card a 2D group runs its lanes in 2x2 quad order, so the console lane order was lost. `VICTORY_WAVE_FLAT_GROUPS=0` keeps the old shape. | | `c6c82b9` | The census of `translate` prints the form, the thread group and the refusal reason for each program. | | `f75aa69` | The shader cache key includes the new switches. Translator version 3. | | `3b88b9e` | Refactor only: flat groups, natural loops and half sums move out of `lower.rs`. | **Measured (RTX 5080, wave lanes 32..32)** - Census with host wave 32: of 1,151 wave64 compute programs, 759 need no special form, 113 use exchange, 141 halves, 72 local and 66 paired. No program uses an approximate form. - The emitted code changed for 222 programs: 62 are now paired and 129 have a row group. - `cargo test -p victory-shader`: 332 passed, 0 failed. - Game, opening cell, same settings, one run each: `5a08a334` 20.4 fps idle and 18.9 moving, the branch 22.2 idle and 16.6 moving. No pipeline refused, no device loss. **Not tested** - Water. My scene has no water in view, so I did not see the three water programs on screen. fxceless/victory-fork#1235 reports black patches from the wave-wide form of two of them. Please check the boat mission before you trust the paired form there. - A 16-lane host, WARP, and an AMD card. Take any commit you want. I can also open pull requests if you prefer that. *AI-assisted (Claude Code). I ran the builds, tests and game runs on my own machine and my own copy of the game.*
Cai-piroska commented 2026-11-27 15:06:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by Cai-piroska on 2026-11-27T15:06:33Z.


AI use: builds, test runs and reading of the failures done with Claude Code (Claude Opus 5.5) on my machine.

@advxrsary, here is cargo test -p victory-shader on the three hosts listed under "Not tested": a 16-lane card, an AMD card and WARP. There are no game runs: this is the test suite only.

Setup: Windows 11 Pro 26300, i5-12400. Rust 1.98.1 (from rust-toolchain.toml), test profile. dxc and dxil.dll from Windows SDK 10.0.26100. Trees: 5a08a334 (base) and your 3b88b9e. The card is chosen with VICTORY_D3D12_ADAPTER=<index>. Every run also runs the WARP half of each test in the same process. Wave ranges are from permlane_rows_and_inactive_sources.

Host (waves) driver 5a08a334 3b88b9e
RTX 3080 Ti (32..32) 32.0.16.2114 (621.14) 317 passed 332 passed
RX 9070 XT (32..64) 32.0.32029.2010 access violation, see below; with that test skipped: 315 passed, 1 failed the same access violation; with it skipped: 328 passed, 3 failed
UHD 730 (16..16) 32.0.101.7088 308 passed, 9 failed 321 passed, 11 failed
WARP (4..4) 10.0.26100.9818 runs inside each row above runs inside each row above

On both the RX 9070 XT and the UHD 730, the branch's only new failures are the two checks in lane_order_tests.rs. Every other failure is the same on the base:

  • a_row_of_threads_runs_in_waves_of_32_in_its_order
  • the_first_lane_of_a_mask_in_a_2d_group_is_the_consoles

RX 9070 XT. With no WaveSize, this driver runs these compute programs in 64-lane waves. the_lane_map_of_a_compute_group_on_the_card shows an 8x8 group as one wave of 64 threads, in 2x2-quad order (0-1 8-9 2-3 10-11 …), and a 64x1 row as one wave with lanes 0-63.

So a row is in order here, but not 32 to a wave:

  • a row of 64, group 0, thread 0: count: 64, ballot: 0xffffffffffffffff, where the test wants 32 and 0xffffffff;
  • [8, 8, 1] as [64, 1, 1]: thread 32, dword 0: 0x1, the console's 0x61. Thread 32 sees the first lane of a 64-lane wave, where the console has a new 32-lane wave starting at thread 32.

The row form of d582788 relies on the host's waves being 32 lanes. On this card that holds only if the program asks for it (WaveSize(32), which the card takes, being 32..64). Otherwise the first lanes, ballots and lane counts of a row of more than 32 threads are a 64-lane wave's.

UHD 730 (16..16). The same two tests fail because each host wave holds 16 lanes:

  • a row of 32, group 0, thread 0: count: 16, ballot: 0xffff;
  • [8, 8, 1] as [64, 1, 1]: thread 16, dword 0: 0x31, the console's 0x1.

The lane map shows the same 2x2-quad order as your RTX 5080, in waves of 16. A 16-lane host cannot give a console's 32-lane waves in either shape. On the base, partial_dispatch_with_a_cross_half_wave_op_runs_in_32_lane_waves already fails here because the driver refuses WaveSize(32) (E_INVALIDARG). These checks could skip there, as wave64_tests.rs:852 does when WaveLaneCountMin..=WaveLaneCountMax does not contain 32. The other 8 UHD failures are the same on the base:

  • the four intersect_tests;
  • ds_min_max_f32_order_floats_and_return_the_old_value;
  • legacy_multiply_adds_fuse_their_product_and_flush_their_sources;
  • v_permlane16_and_x16_read_the_lanes_their_selectors_pick;
  • whole_wave_f64_sum_and_cvt_f32_f64.

Not from this branch, on the RX 9070 XT:

  • size_tests::the_record_count_of_a_structured_buffer_read_by_index ends the test process with STATUS_ACCESS_VIOLATION on both trees. It does so 3 of 3 times alone with VICTORY_D3D12_ADAPTER=1, and 2 of 2 times it passes alone with VICTORY_WARP=1. So it happens on the card, not on WARP.
  • legacy_multiply_adds_fuse_their_product_and_flush_their_sources fails on both trees: hardware: v_mad_legacy_f32 case 4, 0x80000000 where the test wants 0.

A trap when picking the card: VICTORY_D3D12_ADAPTER=9070 or =3080 is parsed as an adapter index (adapter_matches), so it matches nothing. The tests then skip every hardware case and pass on WARP alone. My first runs did that; the table above uses indices (0 = RTX 3080 Ti, 1 = RX 9070 XT, 2 = UHD 730).

I didn't run the game, so none of this says anything about the water programs on screen. I can rerun any of this on a new head.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7221635264 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7221635264). Originally posted by [Cai-piroska](https://github.com/Cai-piroska) on 2026-11-27T15:06:33Z. --- *AI use: builds, test runs and reading of the failures done with Claude Code (Claude Opus 5.5) on my machine.* @advxrsary, here is `cargo test -p victory-shader` on the three hosts listed under "Not tested": a 16-lane card, an AMD card and WARP. There are no game runs: this is the test suite only. **Setup:** Windows 11 Pro 26300, i5-12400. Rust 1.98.1 (from `rust-toolchain.toml`), `test` profile. dxc and `dxil.dll` from Windows SDK 10.0.26100. Trees: `5a08a334` (base) and your `3b88b9e`. The card is chosen with `VICTORY_D3D12_ADAPTER=<index>`. Every run also runs the WARP half of each test in the same process. Wave ranges are from `permlane_rows_and_inactive_sources`. | Host (waves) | driver | `5a08a334` | `3b88b9e` | |---|---|---|---| | RTX 3080 Ti (32..32) | 32.0.16.2114 (621.14) | 317 passed | 332 passed | | RX 9070 XT (32..64) | 32.0.32029.2010 | access violation, see below; with that test skipped: 315 passed, 1 failed | the same access violation; with it skipped: 328 passed, **3 failed** | | UHD 730 (16..16) | 32.0.101.7088 | 308 passed, 9 failed | 321 passed, **11 failed** | | WARP (4..4) | 10.0.26100.9818 | runs inside each row above | runs inside each row above | On both the RX 9070 XT and the UHD 730, the branch's only new failures are the two checks in `lane_order_tests.rs`. Every other failure is the same on the base: - `a_row_of_threads_runs_in_waves_of_32_in_its_order` - `the_first_lane_of_a_mask_in_a_2d_group_is_the_consoles` **RX 9070 XT.** With no `WaveSize`, this driver runs these compute programs in 64-lane waves. `the_lane_map_of_a_compute_group_on_the_card` shows an 8x8 group as one wave of 64 threads, in 2x2-quad order (`0-1 8-9 2-3 10-11 …`), and a 64x1 row as one wave with lanes 0-63. So a row is in order here, but not 32 to a wave: - `a row of 64, group 0, thread 0`: `count: 64, ballot: 0xffffffffffffffff`, where the test wants 32 and `0xffffffff`; - `[8, 8, 1] as [64, 1, 1]: thread 32, dword 0: 0x1, the console's 0x61`. Thread 32 sees the first lane of a 64-lane wave, where the console has a new 32-lane wave starting at thread 32. The row form of `d582788` relies on the host's waves being 32 lanes. On this card that holds only if the program asks for it (`WaveSize(32)`, which the card takes, being 32..64). Otherwise the first lanes, ballots and lane counts of a row of more than 32 threads are a 64-lane wave's. **UHD 730 (16..16).** The same two tests fail because each host wave holds 16 lanes: - `a row of 32, group 0, thread 0`: `count: 16, ballot: 0xffff`; - `[8, 8, 1] as [64, 1, 1]: thread 16, dword 0: 0x31, the console's 0x1`. The lane map shows the same 2x2-quad order as your RTX 5080, in waves of 16. A 16-lane host cannot give a console's 32-lane waves in either shape. On the base, `partial_dispatch_with_a_cross_half_wave_op_runs_in_32_lane_waves` already fails here because the driver refuses `WaveSize(32)` (`E_INVALIDARG`). These checks could skip there, as `wave64_tests.rs:852` does when `WaveLaneCountMin..=WaveLaneCountMax` does not contain 32. The other 8 UHD failures are the same on the base: - the four `intersect_tests`; - `ds_min_max_f32_order_floats_and_return_the_old_value`; - `legacy_multiply_adds_fuse_their_product_and_flush_their_sources`; - `v_permlane16_and_x16_read_the_lanes_their_selectors_pick`; - `whole_wave_f64_sum_and_cvt_f32_f64`. **Not from this branch, on the RX 9070 XT:** - `size_tests::the_record_count_of_a_structured_buffer_read_by_index` ends the test process with `STATUS_ACCESS_VIOLATION` on both trees. It does so 3 of 3 times alone with `VICTORY_D3D12_ADAPTER=1`, and 2 of 2 times it passes alone with `VICTORY_WARP=1`. So it happens on the card, not on WARP. - `legacy_multiply_adds_fuse_their_product_and_flush_their_sources` fails on both trees: `hardware: v_mad_legacy_f32 case 4`, `0x80000000` where the test wants `0`. **A trap when picking the card:** `VICTORY_D3D12_ADAPTER=9070` or `=3080` is parsed as an adapter index (`adapter_matches`), so it matches nothing. The tests then skip every hardware case and pass on WARP alone. My first runs did that; the table above uses indices (0 = RTX 3080 Ti, 1 = RX 9070 XT, 2 = UHD 730). I didn't run the game, so none of this says anything about the water programs on screen. I can rerun any of this on a new head.
advxrsary commented 2026-11-28 00:43:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by advxrsary on 2026-11-28T00:43:35Z.


One more result from the same work. It is about the picture, not the frame rate.

Cause on our build: the layer left two program families of the title out by name while the ray-tracing structure builder is off. With both made again, the shimmer is gone.

The two families (in crates/victory-gpu/src/pipeline/make.rs):

Family Programs Log line while it is left out
CS_RaytracingResolve about 1,000, one for each material left out on purpose: shades ray-tracing hits without BVH
CS_ScreenProbes_ActivateRays a few left out on purpose: ray activation shader without BVH

Without the builder, these programs still do the title's own work. Each ray finds nothing, the program takes its miss branch and writes the sky's light into the light probes. If the layer leaves the programs out, nothing writes the probes. The probes keep the bytes that their memory had before. Surfaces that take much of their light from the probes then show those bytes: leaves, thin blinds, glass, bottles, a watch face. The colours change with the camera angle.

What to set (no rebuild on a base that has these switches):

VICTORY_RT_RESOLVE=1
VICTORY_ACTIVATE_RAYS=1

Then run victory shaders <rpf> and victory warm --used with the same switches. On our base warm --used makes the programs that the switches let in. Here it made 1,009 pipelines in 311 s (12 processes, median 3.6 s each). If you do not warm them, the first minutes in the world compile them, and the shimmer stays until the queue is empty.

Tested on: RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D, 32 GB, Windows 11, Series X profile, 2560x1440, DLSS Quality. Base: trustno1-coder/VIctory-NVIDIA at 29d8dbf plus open pull requests of that repository. Spot: the balcony of Jason's house and the rooms behind the glass door (the vertical blinds, the potted plants, a bottle in the kitchen).

What the test shows and what it does not:

  • Before: pink, purple and green patches on the blinds, the leaves and the glass. They moved when the camera moved. After: none. One player judged this by eye in play. We have no matched captures of before and after.
  • We changed both switches together. We did not test each one alone.
  • We did not measure the frame rate on this base. One day earlier we made the same change on an AnyXboxX base. In the cell scene it cost about 2 fps at rest and nothing in motion: 22.2 / 16.6 before, 20.4 / 16.4 after.

What did not help (so that nobody repeats it):

Tried Result
CS_DeferredFallbacksAlpha_SkyProbe (b7953a05b189dfc1) left out no change
CS_GatherAlphaVBuffer_WithFar (36f04a4ed0ad1d9b) left out no change
The irradiance cache chain left out (gathers, shade, SH integration: 9 programs) no change
The title's check for a structure (+0x4fd8550) made to answer 0 more surfaces glow, the water is black
A cap on the second image of indirect light no change (tested by the author of that switch)

The tiled lighting programs are not the cause. TL_PS_PBR_MATERIAL_TRANSLUCENCY (a9a0b814cd938ec0) and BLURTRANSMISSION (0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers as STANDARD (1cd9bc634417a981). TRANSLUCENCY reads the same resources as STANDARD. These classes only use more of the light of the probes.

AI-assisted (Claude Code).

This base leaves both families out without the builder (third_party/victory/crates/victory-gpu/src/pipeline/make.rs). Our branch wave64-exact-forms does not have this change. The commit is two lines: the two switches are on unless they are set to 0.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7231146131 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7231146131). Originally posted by [advxrsary](https://github.com/advxrsary) on 2026-11-28T00:43:35Z. --- One more result from the same work. It is about the picture, not the frame rate. **Cause on our build:** the layer left two program families of the title out by name while the ray-tracing structure builder is off. With both made again, the shimmer is gone. The two families (in `crates/victory-gpu/src/pipeline/make.rs`): | Family | Programs | Log line while it is left out | |---|---|---| | `CS_RaytracingResolve` | about 1,000, one for each material | `left out on purpose: shades ray-tracing hits without BVH` | | `CS_ScreenProbes_ActivateRays` | a few | `left out on purpose: ray activation shader without BVH` | Without the builder, these programs still do the title's own work. Each ray finds nothing, the program takes its miss branch and writes the sky's light into the light probes. If the layer leaves the programs out, nothing writes the probes. The probes keep the bytes that their memory had before. Surfaces that take much of their light from the probes then show those bytes: leaves, thin blinds, glass, bottles, a watch face. The colours change with the camera angle. **What to set** (no rebuild on a base that has these switches): ``` VICTORY_RT_RESOLVE=1 VICTORY_ACTIVATE_RAYS=1 ``` Then run `victory shaders <rpf>` and `victory warm --used` with the same switches. On our base `warm --used` makes the programs that the switches let in. Here it made 1,009 pipelines in 311 s (12 processes, median 3.6 s each). If you do not warm them, the first minutes in the world compile them, and the shimmer stays until the queue is empty. **Tested on:** RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D, 32 GB, Windows 11, Series X profile, 2560x1440, DLSS Quality. Base: trustno1-coder/VIctory-NVIDIA at 29d8dbf plus open pull requests of that repository. Spot: the balcony of Jason's house and the rooms behind the glass door (the vertical blinds, the potted plants, a bottle in the kitchen). **What the test shows and what it does not:** - Before: pink, purple and green patches on the blinds, the leaves and the glass. They moved when the camera moved. After: none. One player judged this by eye in play. We have no matched captures of before and after. - We changed both switches together. We did not test each one alone. - We did not measure the frame rate on this base. One day earlier we made the same change on an AnyXboxX base. In the cell scene it cost about 2 fps at rest and nothing in motion: 22.2 / 16.6 before, 20.4 / 16.4 after. **What did not help** (so that nobody repeats it): | Tried | Result | |---|---| | `CS_DeferredFallbacksAlpha_SkyProbe` (b7953a05b189dfc1) left out | no change | | `CS_GatherAlphaVBuffer_WithFar` (36f04a4ed0ad1d9b) left out | no change | | The irradiance cache chain left out (gathers, shade, SH integration: 9 programs) | no change | | The title's check for a structure (+0x4fd8550) made to answer 0 | more surfaces glow, the water is black | | A cap on the second image of indirect light | no change (tested by the author of that switch) | The tiled lighting programs are not the cause. `TL_PS_PBR_MATERIAL_TRANSLUCENCY` (a9a0b814cd938ec0) and `BLURTRANSMISSION` (0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers as `STANDARD` (1cd9bc634417a981). `TRANSLUCENCY` reads the same resources as `STANDARD`. These classes only use more of the light of the probes. AI-assisted (Claude Code). This base leaves both families out without the builder (`third_party/victory/crates/victory-gpu/src/pipeline/make.rs`). Our branch `wave64-exact-forms` does not have this change. The commit is two lines: the two switches are on unless they are set to 0.
advxrsary commented 2026-11-28 00:47:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by advxrsary on 2026-11-28T00:47:13Z.


A correction to my comment above. We tested the two switches one at a time.

Made without the builder Shimmer on blinds, leaves, glass
neither family yes
CS_ScreenProbes_ActivateRays only (VICTORY_ACTIVATE_RAYS=1) gone
both families gone

So CS_ScreenProbes_ActivateRays is the one that matters. The 1,000 CS_RaytracingResolve programs are not necessary for this, and you do not have to warm them. Set only VICTORY_ACTIVATE_RAYS=1 on a base that leaves the activation out.

trustno1-coder/VIctory-NVIDIA main already makes the activation by default (the comment in pipeline/make.rs names its issue 2 and gives the same cause: the probes kept old values). Our base was older than that change.

Same machine and same spot as before. One player judged it by eye in play.

AI-assisted (Claude Code).

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7231190489 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7231190489). Originally posted by [advxrsary](https://github.com/advxrsary) on 2026-11-28T00:47:13Z. --- A correction to my comment above. We tested the two switches one at a time. | Made without the builder | Shimmer on blinds, leaves, glass | |---|---| | neither family | yes | | `CS_ScreenProbes_ActivateRays` only (`VICTORY_ACTIVATE_RAYS=1`) | gone | | both families | gone | So `CS_ScreenProbes_ActivateRays` is the one that matters. The 1,000 `CS_RaytracingResolve` programs are not necessary for this, and you do not have to warm them. Set only `VICTORY_ACTIVATE_RAYS=1` on a base that leaves the activation out. trustno1-coder/VIctory-NVIDIA `main` already makes the activation by default (the comment in `pipeline/make.rs` names its issue 2 and gives the same cause: the probes kept old values). Our base was older than that change. Same machine and same spot as before. One player judged it by eye in play. AI-assisted (Claude Code).
Sign in to join this conversation.
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
LooperSalty/AnyXboxX#213
No description provided.