VIctory on NVIDIA (32-lane waves): 17 wave64 compute pipelines refused per run on main (RTX 5080) #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?
Imported from LooperSalty/AnyXboxX. Originally posted by Skyfrye on 2026-11-25T15:27:31Z.
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.
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: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.
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. 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.
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 inthird_party/victory(the translator, the shader cache key and thetranslatecensus).State of
mainfirst. On5a08a334the 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:5a08a3345dc3b25986622949water_shading:CS_TransmissionVolumetrics_Tiled6f225b641c5b0708water_shading:CS_TransmissionVolumetrics_Tiled_LocalLightsa10179ab7eda0dc3water_shading:CS_TransmissionVolumetrics_VolumePortalsOnly6871d6e4b3ac9a10water_shading:CS_TransmissionVolumetricsWhat the branch adds
dff8547VICTORY_WAVE_LOOP_REGIONS=0restores the old rule.bc9d3f7VICTORY_WAVE_PAIRS=0turns it off.e6d19eed582788N 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=0keeps the old shape.c6c82b9translateprints the form, the thread group and the refusal reason for each program.f75aa693b88b9elower.rs.Measured (RTX 5080, wave lanes 32..32)
cargo test -p victory-shader: 332 passed, 0 failed.5a08a33420.4 fps idle and 18.9 moving, the branch 22.2 idle and 16.6 moving. No pipeline refused, no device loss.Not tested
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.
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-shaderon 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),testprofile. dxc anddxil.dllfrom Windows SDK 10.0.26100. Trees:5a08a334(base) and your3b88b9e. The card is chosen withVICTORY_D3D12_ADAPTER=<index>. Every run also runs the WARP half of each test in the same process. Wave ranges are frompermlane_rows_and_inactive_sources.5a08a3343b88b9eOn 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_orderthe_first_lane_of_a_mask_in_a_2d_group_is_the_consolesRX 9070 XT. With no
WaveSize, this driver runs these compute programs in 64-lane waves.the_lane_map_of_a_compute_group_on_the_cardshows 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 and0xffffffff;[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
d582788relies 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_wavesalready fails here because the driver refusesWaveSize(32)(E_INVALIDARG). These checks could skip there, aswave64_tests.rs:852does whenWaveLaneCountMin..=WaveLaneCountMaxdoes not contain 32. The other 8 UHD failures are the same on the base: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_indexends the test process withSTATUS_ACCESS_VIOLATIONon both trees. It does so 3 of 3 times alone withVICTORY_D3D12_ADAPTER=1, and 2 of 2 times it passes alone withVICTORY_WARP=1. So it happens on the card, not on WARP.legacy_multiply_adds_fuse_their_product_and_flush_their_sourcesfails on both trees:hardware: v_mad_legacy_f32 case 4,0x80000000where the test wants0.A trap when picking the card:
VICTORY_D3D12_ADAPTER=9070or=3080is 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.
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):CS_RaytracingResolveleft out on purpose: shades ray-tracing hits without BVHCS_ScreenProbes_ActivateRaysleft out on purpose: ray activation shader without BVHWithout 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):
Then run
victory shaders <rpf>andvictory warm --usedwith the same switches. On our basewarm --usedmakes 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:
What did not help (so that nobody repeats it):
CS_DeferredFallbacksAlpha_SkyProbe(b7953a05b189dfc1) left outCS_GatherAlphaVBuffer_WithFar(36f04a4ed0ad1d9b) left outThe tiled lighting programs are not the cause.
TL_PS_PBR_MATERIAL_TRANSLUCENCY(a9a0b814cd938ec0) andBLURTRANSMISSION(0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers asSTANDARD(1cd9bc634417a981).TRANSLUCENCYreads the same resources asSTANDARD. 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 branchwave64-exact-formsdoes not have this change. The commit is two lines: the two switches are on unless they are set to 0.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.
CS_ScreenProbes_ActivateRaysonly (VICTORY_ACTIVATE_RAYS=1)So
CS_ScreenProbes_ActivateRaysis the one that matters. The 1,000CS_RaytracingResolveprograms are not necessary for this, and you do not have to warm them. Set onlyVICTORY_ACTIVATE_RAYS=1on a base that leaves the activation out.trustno1-coder/VIctory-NVIDIA
mainalready makes the activation by default (the comment inpipeline/make.rsnames 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).