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

Open
opened 2026-11-26 05:37:42 +00:00 by github-bot · 2 comments
Owner

@⁠Skyfrye on GitHub · 2026-11-25 15:27 UTC · original

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.

**@⁠Skyfrye** on GitHub · 2026-11-25 15:27 UTC · [original](https://github.com/LooperSalty/AnyXboxX/issues/213) ### 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.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:37:42 +00:00
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 19:12 UTC · original

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.

**@⁠KainanP** on GitHub · 2026-11-25 19:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7171959648) 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._
Author
Owner

@⁠Skyfrye on GitHub · 2026-11-25 19:53 UTC · original

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.

**@⁠Skyfrye** on GitHub · 2026-11-25 19:53 UTC · [original](https://github.com/LooperSalty/AnyXboxX/issues/213#issuecomment-7172901042) 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.*
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/LooperSalty--AnyXboxX#213
No description provided.