VIctory on NVIDIA (32-lane waves): 17 wave64 compute pipelines refused per run on main (RTX 5080) #213
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX#213
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Skyfrye on GitHub · 2026-11-25 15:27 UTC · original
Steps to reproduce
mainat488a71c(the files ofthird_party/victoryare the same atb533825), Windows 11 26300, NVIDIA GeForce RTX 5080 (driver 621.01; waves of 32 lanes only), Ryzen 7 9800X3D.tools/lancer_victory.ps1does (cargo build --profile diag -p victory --features diagnostics), with the launcher's tuned environment.victory.exe translate --cache --pipelines --used-pipelines <shaders.rpf> <exe> <the two DLLs>(what-Precompileruns), thenvictory.exe run <exe> --executeon my own copy of the 1.0.2.1 build, Enter pressed byVICTORY_KEYSthrough 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 reports18 skipped: the host refuses it. Their draws and dispatches are dropped for the whole run (in the per-reason lines they are therefused [compute …]entries).The 17, by shader hash and by the name the shader pack gives them:
55679a0547649d0bInstanceCulling:CS_Tree_BatchCull89d08e561897d4e5InstanceCulling:CS_Tree_BatchCull_ImposterOnlyd2b169b82f67ec5bsr_tracing:CS_RayPrePass_Alpha7168dd781ca7efb9sr_tracing:CS_RayPrePass_Opaque_SSR11276d0c8bbe180asr_tracing:CS_RayPrePass_Water_SSR2cc4c197ee29e291sr_tracing:CS_Tiling_Generate_Opaque71883e40620a567asr_denoising:CS_TemporalResolve2_Opaque_FrameStatistics0a5ecfee6b79e13bshadowmask:CS_GenerateShadowMasks_HairOnly2da4beb386509b77alphaResolve:CS_AlphTransmissionPrefilterMip369cbe906ea72764GpuParticleUpdate:CS_Visibilityb96880482a17f632vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Vectorized1f1fbd86759b3da2vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Scalarized02384a60fda6f2d0vfx_triangleClip:CS_DefragHeap_ComputeRelocations6b82bc7d22016cb5vfx_triangleClip:CS_CollectTriangles_Meshlets119ee96f602f1668lens_flares:CS_MergeQuads5dc3b25986622949water_shading:CS_TransmissionVolumetrics_Tiled6f225b641c5b0708water_shading:CS_TransmissionVolumetrics_Tiled_LocalLightsThree 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-shaderandvictory-gpu, committed here under rule 10 withSource:andCo-authored-by:. I ported it onto the previous base (80d58f8) earlier today and measured there, on this card:translate --pipelines --listover the shader pack: compute pipelines refused 383 → 2, and 9 → 0 of 52 forXboxBvhBuilder.dll;cargo test -p victory-shader226 passed, 0 failed.I am re-basing that onto current
mainnow (the 57 commits of #199 touch the same files) and will re-measure onmainbefore 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
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 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:a78biGPU (WaveLaneCount16..16) and WARP (4..4): Marvisak/VIctory#2220 (comment).WaveLaneCountMax. A 16-lane device refusesWaveSize(32)as well asWaveSize(64), with the same bareE_INVALIDARGas in this issue.WaveLaneCountMax < 64and always declares 32. On the 16..16 iGPU every split program is therefore refused at pipeline creation, and itsa_split_wave64_gives_the_consoles_lanes_masks_and_readsfails withno device ran the programthere (also withVICTORY_WARP=1). On the RTX both split tests pass.Emulateform (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 anEmulate-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 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. AnEmulate-style form for 16-lane hosts would be a follow-up, not part of this.The chain is ported onto
mainlocally (the port, then four follow-ups; on an RTX 5080 the tip passescargo test -p victory-shaderwith 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.