Shaders: wave64 programs in a paired form on 32-lane GPUs, mesh programs over 32 KiB linked with their pixel program, and more (230 more programs pass) #854
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!854
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-854"
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?
@PiloteCode on GitHub · 2026-11-25 10:47 UTC · original
PiloteCode:pr/shaders→main· +4658 −1355 · 28 files · 7 commits · openBased on
9376fd6. 230 more of the title's shader programs translate, validate and get a pipeline on a GPU with 32-lane waves. 36 compute programs that ran in an approximate per-half form now compute what the console's 64 lanes compute.main(9376fd6), pass / failvictory translate --validate --pipelines --listover the title's whole shader pack, RTX 5090 (32-lane waves),VICTORY_HOST_MAX_WAVE=32. A program passes when it translates, validates, and its pipeline is created (with a stub for the other stage). What is left:What changes
Wave64 compute programs on 32-lane GPUs: a paired form (
emit/mod.rs,emit/lower.rs,emit/wave.rs)On a host with 32-lane waves (NVIDIA), some console wave64 compute programs still asked for
WaveSize(64). The host refuses that, so their dispatches were dropped every frame. Others ran in the per-half forms, where each half-wave counts, ORs or elects over its own 32 lanes. That is approximate: a tile-wide result becomes two half-tile ones.The paired form runs each console wave as one host wave of 32 threads, each thread two console lanes (n and n + 32):
When the form is tried:
Three other lens-flare scans are the allocation idiom with a multiply-add base (
v_mad_u32_u24).idiom::wave_localnow knows that idiom, so these three keep their per-half form, which is exact for them and cheaper. The paired form changes no program other than these.Cost: a paired program is about 2.9 times the DXIL size of its per-half form, run at half the threads. It has not been timed in a run yet.
Mesh programs over D3D12's 32 KiB: linked with their pixel program (
emit/link.rs,pipeline/host.rs,apps/victory/src/translate.rs)71 of the title's mesh programs (pedestrian, vehicle and prop transforms with fire, spatter, decal and transmission variants) declare 65 to 71 output components for 128 vertices. That is 33,280 to 36,352 bytes, past the 32 KiB that D3D12 allows. The validator refuses them; NVIDIA's driver builds them anyway. No pixel program reads them all: the one that reads most reads 55 components.
emit::link_meshtranslates a mesh program and the pixel program drawn with it again, for their pipeline:The signatures stay whole while a program is lowered: what is left out goes at the end, and the ids of loads and stores count only what is kept. The result is
Nonein three cases: the mesh program fits, the linked pair still does not fit, or a linked translation binds differently from its shared one.emit::mesh_fitstells a mesh program over the limit from its DXIL.HostPipeline(pipeline/host.rs) makes a mesh pipeline whose mesh program does not fit from the linked pair:victory translatewithVICTORY_PAIRSlinks such pairs as the runtime does and validates both programs. It now keeps only the shaders that the pairs name; before, it kept every emitted shader. Offline, two sets of pairs link, validate and get a pipeline on the RTX 5090:Smaller fixes
The program counts in this list were taken on our tree when each fix went in. The table above is the measure against
main.container.rs,mod.rs,rect.rs). A float that the console declarednointerpolationtook the default linear mode when it shared a register with an integer or the front face, and the validator refused the two modes. 70 programs failed this way: 21 mesh, 13 vertex, 36 pixel. In a register whose modes differ, the elements whose mode is fixed now give it to the others.ir::split_joins). This fixes the terrain programs.src_pops_exiting_wave_id(ir::without_pops_wait), and its heap UAVs become rasterizer-ordered views. This fixes ten cut-out programs.v_fma_mix*writes half of a register that holds a first interpolation half, the half it keeps reads as zero (eight deferred and decal programs).ir::whole_sections). Two reductions can share their end block, as in the water optical depth program.float64.rs). Five water volumetrics programs count their lanes in doubles (a wave sum of 1.0 over dword pairs, then a conversion back to a float). Both dwords of a sum now come from one host wave operation, which also works in the paired form.v_add_f64,v_mul_f64andv_cvt_f64_f32are lowered too; they declare the Doubles feature, which is dropped again where the clean-up removes every double.InterlockedAdd(g, -x)fails the same way.ds_subandds_addof0 - xnow go through the loop that the LDS float minimum and maximum already used. The weather particle update gets a pipeline.ir::with_shared_slots). Before, the mask came back as twos_mov_b32that the structurisation could not see into. This fixes the voxelization program.idiom.rs), descriptors read as data (descriptor_data.rs) and 64-bit floats (float64.rs) move out oflower.rsunchanged. This keepslower.rs(501,927 bytes) under the asset policy's 512 KiB a file.Where this replaces code already on
mainSome of these features were also written on
mainin parallel, in another way. This PR keeps one implementation of each:3bff182,31714de). The wave sum replacesRed64F/ActiveF64, which summed each dword on its own. The IEEEv_cvt_f32_f64on integers frommainstays, along withmain's operand reader, plus the hardware's double for inline constant 248. The unused flush-to-zero twin and its ignored test are left out. They can be put back if they are still wanted until the console's float mode is checked.unused_descriptor_kind,a26859f). The helper frommainstays, with what each side handled. A buffer that has a used-resource entry now gets the title's view, structured where its elements are whole dwords, not a raw view. On the RTX 5090, a raw handle of a structured view of 9 records of 16 bytes answered 2 records.VICTORY_DESC_WHYstays.interpno longer writes 0 for every first half (v_interp_p1_f32,v_interp_p1ll_f16). With that write, 59 pixel programs that already translated came out changed (a join carried the zeroes into the shading), and no program more translated. Here those 59 translate as they did before that write. The retry with first-half pairs (with_first_half_pairs) stays.v_permlane16/v_permlanex16. The joined whole-wave sections are tried first for a program whose permutes no followed section holds. On the console those sections read every lane, and a lane outside the saved mask reads with the reduction's identity. Elsewheremain's lowering of the permutes stands.Switches
VICTORY_WAVE_PAIRS=0: no paired form. Programs go back to the per-half forms, or are refused as before. The value joins the shader cache key, as everyVICTORY_*switch the shader crate reads does.VICTORY_MESH_LINK=0: oversized mesh pipelines are made from the shared translations, as before. This switch is read by the pipeline layer, not the translator, so it is not part of the cache key. Linked pairs are never cached on disk.VICTORY_WAVE_WHY=1(an existing switch): now also prints to stderr what the paired form gave for each program it was tried on.VICTORY_SHADER_LOOP_LIMIT=<n>: as before, one limit for every loop, which overrides the 1,024 of ray-testing loops.Documentation
VICTORY_MESH_LINKin the table of switches.docs/fork-ray-tracing.md: all 52 builder programs translate, three of them in the paired form. Switched on, the builder still crashes the title about 80 s into the gameplay.Tested
RTX 5090 (32 GB), Intel i9-14900KF, Windows 11. The branch was checked as it is, on
9376fd6:cargo test -p victory-shader -p victory-gpu, on the card:victory-shader: 242 passed, 2 ignored (a benchmark, and a test thatmainalready ignores). The same list runs with--all-features.victory-gpu: 144 passed, 3 ignored (benchmarks and measurements).cargo test -p victory: passed.cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features: clean. The first commit fixes the three lints that make CI fail on9376fd6(draw.rs,indirect.rs,resource.rs). The GPU and runtime pull requests start with the same commit, so the three PRs merge in any order.cargo build --release -p victory,cargo build --profile diag -p victory --features diagnosticsandcargo xtask policypass.There are 27 new tests. Those of the paired form run on the card against what the console's 64 lanes give: paired lanes sharing LDS and lanes across halves, looping apart, permuting, ORing inside a lane branch, summing halves as the console's tree, a wave value used past a lane branch. The others cover the linked signatures (validated), the LDS subtraction loop (it was refused before, and is now atomic), the shared parking slots, the joined sections, the split joins, the POPS wait, the interpolation modes and row order, and the descriptor sizes on the card and on WARP.
In game runs of our tree, which also had the layer changes of the companion GPU PR:
Overlaps with open pull requests
lower.rsorcontainer.rswill need a look.Not tested
c36971b2) into the translator's branch: upstream's frame-rate sessions, frame capture, texture copy-back and wide loads; no conflict f66feef7a1@alexodee on GitHub · 2026-11-25 12:21 UTC · original
First run of this on an 8 GB Ampere card: no refused and no untranslated program is left in the scenes I reached, and nothing was lost in four launches.
Setup: RTX 3070 Ti Laptop 8 GB (32-lane waves, driver 596.36), i7-12700H, 15.7 GB RAM, Windows 11 build 26300, diagnostics build, Series X profile,
VICTORY_RELAY=0 VICTORY_LATE_WAIT=3 VICTORY_SHADER_LOOP_LIMIT=16384, structure builder off. Tree:f85101b+ this PR (0751197, merged without a conflict in non-test code) + #276 #52 #51 #610 #640, the constant buffer clamp of #799 (descriptor/host.rsonly) and thexmem.rscommit of #823. #823's and #799's shader parts are not in.9376fd6, same other PRs, no #823/#799)9376fd6translate --warm all(25,889 found): do not translateThe frame times are not an A/B: the base of the last column is newer (
f85101b), the first column has other memory settings (VICTORY_CARD_BUFFERS_MB=512 VICTORY_TEXTURE_BUDGET_MB=3200, the other two 1024 and 2200), and it is one launch per column. I did not time the paired form on its own. The GPU figure says it was not slower here than #823 + #799.Longer run: one launch of 16 minutes with the character walking and the camera turning through the first room, a dialogue, and the pause menu: 129 lines, 434 ms a frame, 0 refused, 0 untranslated, no error line, no device removal. The linked mesh path ran ("mesh outputs over 32 KiB: the pair is linked for its pipeline", several pairs).
Picture: stepped edges of screen tiles on the shoulders and hair were there in each earlier launch I kept without these programs, and in none of the four with this PR (they were also gone with #823 + #799). A band of blocks at the bottom of the screen is still there in some launches. It stays at the same place on the screen while the camera turns, so I take it for the dispatches past 65,535 groups (#834, not in this tree), not for this PR. What is seen through the wired window glass is noisy in all of these runs.
Not tested:
VICTORY_WAVE_PAIRS=0andVICTORY_MESH_LINK=0on the same tree, the builder on, anything after the first room.AI-assisted (Claude Code). No game data.
@SkillIssueXO on GitHub · 2026-11-25 12:24 UTC · original
I tested the #854 code on an RTX 5070 Ti in a local
f85101bdiagnostics build with the group-X split. In the builder-off prison-window replay, the same 149-present slice was 4.74 FPS (207.82 ms median, 235.48 ms p95) with #854 versus 5.70 FPS (173.99 ms median, 194.89 ms p95) in my control. Both used Series X, copy queues with 96 MiB upload landing capacity, indirect windows, andVICTORY_FILL_WAIT=1. One run per arm. The paired build showed a brighter character halo and more distortion through the glass.For #646 interoperability, I used the original console workgroup dimensions and a separate active predicate for each console lane a paired host thread represents. A synthetic fixture ran on the RTX 5070 Ti in both Wave32 forms and matched the store, EXEC popcount, and reduction results for limits 1, 45, 109, and unlimited across two 64-thread groups. With that integration and the builder requested, all 53 pipelines loaded and the builder started. About six seconds later the run ended at the 3 GiB free-commit guard. Its last sample was 2.26 GiB free and 28.14 GiB private memory. The numbered-copy pool also hit its 1,023 limit. Builder rendering remains unverified.
AI-assisted testing and analysis. Asset-free measurements only.
@iGoldenNinja on GitHub · 2026-11-25 12:26 UTC · original
RTX 5080 16 GB, driver 617.14, Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X and 32 GB RAM. I tested the seven compute programs from the earlier PSO refusals on
f85101band on0751197. The base and PR withVICTORY_WAVE_PAIRS=0each validated all seven and created zero. The same PR with pairing enabled validated and created all seven, each with the Wave32 paired retry.I then ran
0ec6631, combining this head with PR 834's split dispatch and the readback probe. In controllable prison,2cc4c197ee29e291built and bound, and there were zero logged compute PSO refusals. One mesh PSO still returned0x80070057for the integer blend pair from #51. The diffuse final gather accounted for every requested group in all 17 route readbacks. The broad lower band was absent, and the room was still dark with irregular character edges. The structure builder was off and accounted for a median 341 skipped dispatches per frame in the route logs.The timed input route completed and ended deliberately with no logged device loss. The capture was short of a full 90-second displayed interval. The qualifying 75-second segment measured 2.79 displayed FPS and 793.80 ms P99. The window dimensions changed between captures, and there is no matched live timing comparison for pairing from this run. Test matrix and replay report. Testing and reporting assisted by OpenAI Codex.
@SantannaCarlos on GitHub · 2026-11-25 13:14 UTC · original
In the title on an RTX 4070 (32-lane waves): this PR's paired form brings the refused programs down to the mesh pipeline
f5e50eb2108c425bwith its pixel half, and costs about what #799 costs, most of it in one program.Setup as in my #799 comment: diagnostics builds of
9376fd6+ #834, with this PR's head0751197merged (no conflict), own warmed shader cache, 9- to 10-minute runs from the same cell save, default mode, fresh process each; median of the last 25 frame lines.9376fd6+ #834 (2 runs)f5e50eb2108c425band its pixelce3f0432a08f1d35)369cbe906ea72764skipped5dc3b25986622949,6f225b641c5b0708) run with this PR; #799 leaves them refused.369cbe906ea72764(GpuParticleUpdate:CS_Visibility) costs about 35 ms of GPU time a frame here too, in the exact form. Without it, this PR sits 10 to 15 ms above the base, spread over the other programs it brings.System Initand presents 100% black frames with 3 draws/frame #950System Initand presents 100% black frames with 3 draws/frame #950@avt0m4t48 on GitHub · 2026-11-25 14:58 UTC · original
I checked two additional shapes on
0751197: a synthetic 8×4×2 group with one console wave and a 4×4×8 group with two. The test builds per-lane X/Y/Z and a flat index into a small UAV. Microsoft's DXIL validator accepted both paired-layout shaders.The Windows runner reports a wave width of 4–4 on WARP. It rejected creation of the required 32-lane pipeline, so this is validator evidence only. The readback fixture can run unchanged on an adapter that supports the paired shader with
VICTORY_WARPunset.Validator and adapter capability run · Readback fixture
AI-assisted using Codex.
@SantannaCarlos on GitHub · 2026-11-25 15:04 UTC · original
Where the ~35 ms with
369cbe906ea72764goes, from the captured frames' operation lists: the seven buffers it writes are where 94 indirect operations a frame read their arguments. Most are indexed draws with vertex programed734c953c0eac78and seven pixel programs into the 2560x1440 R16G16B16A16_FLOAT colour target, depth test on and depth write off; a few more draw into an R32_FLOAT + two R8_UNORM target the same way, and two are indirect dispatches. None draws into a shadow atlas. With it, indirect mesh groups go from about 10,900 to 13,750 a frame at the same ~4,790 draws.So it is the visibility pass of the GPU particles: refused on main, the particles are not drawn; running, they fill the screen, and that fill is the cost. Its own loops run 3 and 8 times with sane constants, so not a runaway loop. The same holds with #799's form. Whether that amount of particles is right would take a console reference.
@SkillIssueXO on GitHub · 2026-11-25 15:09 UTC · original
Same-executable cascade-shadow check on an RTX 5070 Ti with 32-lane waves. I applied PR compiler commit
26600c61on top of0b0074ein a separate diagnostics checkout. Both arms usedVICTORY_HOST_MAX_WAVE=32,VICTORY_MESH_LINK=0, and offlinetranslate --validate --pipelineson shaderf133e35efed2a48a.VICTORY_WAVE_PAIRS=0produced no DXIL or host pipeline.VICTORY_WAVE_PAIRS=1selected paired lanes at wave32, passed Windows SDK 10.0.26100.0 DXIL validation, and created the compute pipeline on the RTX 5070 Ti.Six paired-wave fixtures also executed successfully on this GPU. This isolates the change to translation and pipeline creation for this shader. The visual result and frame cost still need a matched game run. AI-assisted testing and analysis.
System Initand presents 100% black frames with 3 draws/frame #950@SkillIssueXO on GitHub · 2026-11-25 16:17 UTC · original
RTX 5070 Ti in the robbery tutorial on
3973179with compiler commit26600c61applied, mesh linking off, and Series X mode. Offline on this GPU, unmodified3973179created 0/5 pipelines for the selected transition compute programs. The paired build validated and created 5/5.The live paired run logged first binds at frame 2627 for
02384a60fda6f2d0,2cc4c197ee29e291,2da4beb386509b77,369cbe906ea72764, andf133e35efed2a48a. It then reached the robbery aim tutorial with the structure builder off. The tutorial displayed its aim prompt and the store geometry, with severe overexposure. A 245-present sample there averaged 3.14 FPS (235 ms median, 462 ms p95). One long frame took about 7 seconds in host reporting after DXGI Present returned. These are combined live-run timings. Attributing a frame-time change to pairing requires a matched visual run.AI-assisted testing. No game assets or raw logs attached.
@PiloteCode on GitHub · 2026-11-25 16:23 UTC · original
@alexodee Thanks for the long run. It confirms the paired form and the linked mesh pipelines on an 8 GB Ampere laptop GPU: 16 minutes with nothing refused, nothing untranslated and no device removal.
The band at the bottom is what you thought. The screen-probe final gather of the indirect diffuse light asks for up to 115,200 groups in x at 2560x1440 (one group per 8x8 tile of each of its two layers), and the groups past 65,535 never ran. #993, stacked on this PR, runs them all, as #834 does: an indirect record is split into four (up to 262,140 groups in x), a direct dispatch into several. In our tree the bottom edge was clean after that change.
@iGoldenNinja Thanks. This confirms on an RTX 5080 that the seven programs get a pipeline only through the paired retry, and that
VICTORY_WAVE_PAIRS=0brings the base's refusals back on the same build.f5e50eb2108c425bwithce3f0432a08f1d35is #51's case, as you say. The pair writes a uint to its target 2 with blending on, and D3D12 refuses a pipeline that blends an integer target (E_INVALIDARG). The problem is its blend state, which this PR does not touch.VICTORY_BVH_BUILDER=1. With the builder on, the hair's light was steady in our runs of the window scene. We have not checked that your edges are this, nor compared the room with the console's.@SantannaCarlos Thanks for both. They confirm on an RTX 4070 that the paired form leaves one pipeline refused, and that the water volumetrics run with it.
f5e50eb2108c425bwithce3f0432a08f1d35is the integer-target blend above (#51), not a translation.369cbe906ea72764, in our CPU census of #993's build (VICTORY_SHADER_CENSUS,VICTORY_HOST_MAX_WAVE=32):VICTORY_WAVE_PAIRS=0: it asks for 64-lane waves, which a 32-lane GPU refuses, as onmain;VICTORY_WAVE_RAW=0 VICTORY_WAVE_SPLIT=0(this PR's forms): paired, 1,744 host instructions, 260 of them guard selects;VICTORY_WAVE_RAWtakes it to 1,120 instructions and 44 guard selects.So #993 makes the program itself smaller. It does not change the particle draws, where your second comment puts the 35 ms.
We do not see that cost in our tree, which has other layer changes. In a timing run of the save's gameplay on our RTX 5090, the program's dispatch took about 0.08 ms when it ran. The draws with vertex program
ed734c953c0eac78took a median 0.07 ms of card time a frame (0.33 ms at most), at a median of 17 such draws a frame (78 at most). Since the program and its draws are cheap in our runs, the difference more likely lies in the rest of the layer than in this PR's translation.A reference short of a console: a GPU with 64-lane waves (AMD) runs this program in its own wave64 form, not the paired one. The same view there would show whether the paired form lets more particles through. Our test machine has 32-lane waves only.
The 10 to 15 ms over the other programs: see the paired programs' own cost below.
@SkillIssueXO Thanks for the A/B, the #646 integration and the cascade-shadow check.
The 34 ms between your arms can have two parts:
mainrefuses on 32-lane GPUs run here, and some of them feed draws, like the particle pass above. In a diagnostics build,VICTORY_SKIP_PIPELINES=369cbe906ea72764on your #854 arm would show how much of the gap, and of the halo, goes with that pass. The alpha transmission prefilter (2da4beb386509b77) also runs only in the paired form; add it to the list to check the glass.VICTORY_WAVE_RAW: a guarded write is read without its select where only lanes inside the guard read it. Over the 69 paired programs, host instructions go from 2,303,768 to 1,617,871 (-30 %) and guard selects from 360,668 to 124,509.VICTORY_WAVE_SPLIT: programs that use their wave values only to allocate run as two host waves of their own. Five paired programs go back to the per-half form they take with pairing off, which is exact for them: the four denoiser temporal resolves (sr_denoising:CS_TemporalResolve*) and a lens-flare scan, 48,501 -> 19,039 host instructions. It also moves 40 of the 160 exchange-form programs (a formmainhas too).To A/B on one build of #993's head, which contains this PR:
VICTORY_WAVE_RAW=0 VICTORY_WAVE_SPLIT=0: this PR's forms;VICTORY_WAVE_PAIRS=0(here and in #993): no paired form. The programs only it translates are refused again, and the others take their per-half forms.Every
VICTORY_*switch the translator reads is part of the shader cache key. Runvictory translate --warm allwith each arm's switches before timing it, to keep translation out of the slice.#646 and the builder. Your per-lane predicate is what the paired form needs under #646: one host thread holds console lanes n and n + 32, each with its own X/Y/Z in the console's group. #994 (stacked on #993) handles thread counts another way. A dispatch whose last group is cut short runs a second translation, whose threads past the counts leave at entry (
USER_THREAD_LIMIT,RootType::Other(0x105)). The paired and approximate forms are refused there, since a thread holding two lanes cannot leave for one of them. Of the builder's 52 programs, its three paired prefix sums are the ones without that form. #646's word usesRootType::Other(0x104), which #834 and #993 use for the group base, so with both, one of them needs another code.#994 also deals with the numbered copies' 1,023 limit:
In our tree, with these changes, 420 s of gameplay with the builder on had no fault and no card loss. We have not compared memory use with your build.
Cascade shadows (
f133e35efed2a48a). This matches our census: withVICTORY_WAVE_PAIRS=0it stops at "a lane mask exchanged where not every lane runs". It is also the largest paired program: 228,213 host instructions in this PR's form, 157,113 with #993'sVICTORY_WAVE_RAW. That makes it a good one to time in the matched game run.@avt0m4t48 Thanks. This checks a case our tests do not: the paired-form tests in this PR all use one-row groups (
[n, 1, 1]). In the paired form the host group is a row of half the console's threads. Each console lane's X/Y/Z comes from its flat id and the console's x and y (thread_idandconsole_threadinemit/lower.rs). Your 8x4x2 and 4x4x8 groups exercise that path, the second console wave included. WARP's 4-lane waves cannot take a 32-lane program, as you found. Once your readback test runs on a 32-lane card, it would be worth adding next to the paired-form tests.@PiloteCode on GitHub · 2026-11-25 16:36 UTC · original
@SkillIssueXO Thanks. This confirms on an RTX 5070 Ti that these five get a pipeline only in the paired form. It matches our census: without that form, four ask for 64-lane waves and
f133e35efed2a48adoes not translate.None of the five is an exposure, luminance or histogram pass:
02384a60fda6f2d0:vfx_triangleClip:CS_DefragHeap_ComputeRelocations, relocations for the VFX triangle-clip heap;2cc4c197ee29e291:sr_tracing:CS_Tiling_Generate_Opaque, the screen-space tracing tiles;2da4beb386509b77:alphaResolve:CS_AlphTransmissionPrefilterMip, the alpha transmission prefilter;369cbe906ea72764:GpuParticleUpdate:CS_Visibility, the particle visibility pass;f133e35efed2a48a:cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCBPPPC, cascade shadows.All five stay paired with #993's defaults (
VICTORY_WAVE_RAWmakes them smaller). None of the title's exposure, luminance or histogram programs takes the paired form, here or in #993. So pairing does not change the exposure programs themselves. It can change what they measure, through what these five add to the picture. Earlier reports here saw the picture get brighter with them running (the window, your halo).To see whether the overexposure follows pairing, in the same scene:
VICTORY_WAVE_PAIRS=0against the default. With pairing off, the five are refused again and do not run, so compare the pictures, not only the frame times;VICTORY_SKIP_PIPELINES=<hash>with one of the five at a time, to see which one it follows;VICTORY_WAVE_RAW=0against the default, which changes the code of all five.We have not reached that scene in our runs (our save is earlier), so we cannot confirm it ourselves yet.
On the 7 s frame: a first use waits for its pipeline at most the frame's budget (
VICTORY_PIPELINE_WAIT_MS, 500 ms by default) and is dropped past it. So a slow translation or compile of these five would not by itself hold a frame that long. The frame line covering it splits the time into copies, texture uploads, GPU and copy-back, and counts the pipelines still being made.@jstrdev on GitHub · 2026-11-25 18:13 UTC · original
In a run on your RTX 5090 at
0b0074e(default settings), what does the log line indirect mesh dispatches: the largest group count asked for N … M groups asked per frame show once in the world? On my Arc B580 it is always 0 / 0, even with indirect mesh draws in the frame.@PiloteCode on GitHub · 2026-11-25 18:14 UTC · original
@jstrdev Not on
0b0074eitself, but in our tree (that base plus our layer changes, the same counter and log line), in the save's gameplay on the RTX 5090, once in the world the line reads, for three successive reports:So a largest count of 279 and some 14,000 to 20,000 groups a frame at about 5,000 draws a frame. A constant 0 / 0 with indirect mesh draws in the frame would mean the clamp's record of what was asked never comes back on that card, rather than nothing being asked.
@superboynick on GitHub · 2026-11-25 20:27 UTC · original
A runtime data point for the mesh side of this table, from an ordinary run rather than a translate census.
On
0b0074eplus a wave-narrowing change, RTX 5070 Ti Laptop (32-lane), no switches beyond tracing, exactly one mesh pipeline is refused during the prologue:That is consistent with the linked-mesh-and-pixel case in the description: the mesh program is refused when created together with its pixel program, with a three-parameter root signature carrying one SRV.
For context on the compute side, our five refusals became four after narrowing shaders that cannot observe the wave width - the one that went away was
NumThreads=64,1,1,GroupShared=512, no wave intrinsics - so at this point the runtime picture on a 32-lane NVIDIA host is four compute refusals plus this one mesh refusal.If it helps, the four remaining compute programs are
NumThreads256x1x1, 8x8, 128x1x1 and 1024x1x1 with group-shared sizes 512, 512, 16896 and 32768 bytes; all four use wave operations, which is why they are left alone.@superboynick on GitHub · 2026-11-25 20:43 UTC · original
A named instance of the linked mesh-and-pixel case, with both halves of the evidence.
Our runtime run refused one graphics pipeline during the prologue:
Running the pack through
victory translate --pipelines --listwithVICTORY_HOST_WAVE=32on the same machine, both programs are created when translated on their own, each with a stub for the other stage:So the mesh program named
MSNC_VS_WindshieldWiperMaskis the concrete case: fine alone, refused when linked withPS_WindshieldWiperMask, exactly the failure mode described in the opening comment.Whole-pack totals on this machine, for comparison with the table above (RTX 5070 Ti, 32-lane, our wave narrowing applied, no
--validatebecause dxil.dll is absent here):The failure summary left after that run is short: 40 descriptor-by-control-flow, 24 invalid-argument pipeline, 10 hardware SGPR input, 5 descriptor-read-as-data, 2 lane mask as data, and one each of two lane-mask cases and a resource-exhaustion failure.
What I could not do: I have no way to swap a stub pixel shader into the runtime path, so the linked case is confirmed by the pair of observations above rather than by an A/B inside the run.
@superboynick on GitHub · 2026-11-25 20:52 UTC · original
Validation-side census from a second machine, since the table above is a translate census. RTX 5070 Ti Laptop, 32-lane,
VICTORY_HOST_WAVE=32, validatordxil.dll1.9 from the DXC v1.9.2609 release, wave narrowing applied.Pipelines created: CS 2649, MS 8762, PS 12008, VS 2191 - 25610 in total, which is the same order as the 25682 in the table above from a 5090.
What the validator added, beyond the pipeline outcome: 158 error lines, of which 84 are one class - two signature elements packed into the same row with different interpolation modes:
Affected names cluster on foliage, water, decals and vehicle rasterisation paths -
PS_PropFoliageDeferred*,PS_RasterizeWaterVolumeExposedSurface*,PS_VfxVBuffer_AlphaClip*,MS_VS_OctaSLODFire. Every occurrence says one element's interpolation mode disagrees with another element sharing its row, which suggests the emitter assigns modes per element without considering which elements share a packed row.A further 4 lines are
out of bound coord must be undef, on mirror-reflection texture reads.Not claimed: whether binding these pipelines would be correct if the validator were bypassed - 14088 of 14199 validate, so the class is narrow either way. The point is that it is a named, reproducible failure mode with the programs listed, and it does not appear in a census that runs without
--validate.Note for anyone repeating this:
dxil.dllis not present by default on this machine; the DXC release zip supplies it andVICTORY_DXILpoints at it.@superboynick on GitHub · 2026-11-25 21:09 UTC · original
Follow-up: the interpolation-mode class from my previous comment is fixed and re-measured on the same pack.
The emitter kept the container's row assignment and set interpolation modes per element afterwards, so two elements sharing a row could disagree. Elements are now separated by mode after lowering, and a program that cannot fit within 32 rows is reported unsupported instead of emitted invalid.
Full pack,
--validate --pipelines --list, dxil.dll 1.9, 32-lane:Two things this does not do: the pipeline count is unchanged, so it corrects generated code rather than unlocking draws, and the four
out of bound coord must be undeferrors are untouched.The change is in our fork as a stacked PR on the wave-narrowing branch: https://github.com/superboynick/victory-fork/pull/3 - happy to move it anywhere you prefer.
Worth repeating for anyone running this census: this class is invisible without
--validate, which is the likely reason it survived until now.@superboynick on GitHub · 2026-11-25 21:26 UTC · original
Second fix in the same area, measured on the same pack.
After the interpolation-row change, what remained were 80 lines of
Container part 'Program Input/Output Signature' does not match expected for module. Both parts were being rebuilt from the lowered module but ordered by column instead of by name within each register, so the validator disagreed with the module it was reading.With that corrected, full pack,
--validate --pipelines --list, dxil.dll 1.9, 32-lane:What is left in the validator: 72 mesh programs whose combined vertex and primitive output signatures exceed the limit - the case described at the top of this issue - and 4
out of bound coord must be undefon mirror-reflection texture reads.Both changes are in our fork, stacked: https://github.com/superboynick/victory-fork/pull/3
@superboynick on GitHub · 2026-11-25 21:26 UTC · original
Numbers for the 32 KiB case, since it is now the largest remaining class on this machine.
After the two fixes above, 72 of the 76 remaining validator errors are one message:
All 72 are mesh programs, and the names cluster on the ped-skinning variants:
Note that these are the
MS_/MSNC_mesh forms of vertex programs whose vertex form validates fine, so the same attribute set fits when written as a vertex output and does not when written as a mesh output plus primitive output.One question worth answering before anyone spends time on it: are these programs genuinely over the limit, or does the emitted output signature spend rows it need not - one scalar per element rather than packing four into a row? I do not know which, and I have not changed anything to find out.
The remaining 4 errors are
out of bound coord must be undefon mirror-reflection reads, unrelated.@superboynick on GitHub · 2026-11-25 21:27 UTC · original
Answering my own question from the previous comment, having looked at how our emitter builds these signatures.
Compacting the rows cannot fix it. Our output signatures inherit the container's registers and masks rather than assigning one element per row - a vec3 already shares its row with whatever else was packed there in the source. More to the point, the validator's 32768 counts components, not rows: on our side the estimate is
4 * (vertex components rounded to 32 + primitive components)over the actual component counts. Row packing therefore saves nothing against this limit.So the 72 programs are either genuinely over the component budget or they carry components they need not. Which of those is true needs a per-program signature dump, which I have not produced.
Recording it because the "pack the rows tighter" idea looks attractive and does not help here - the number that matters is the component count, and the emitted set already sits on the container's allocation.
@superboynick on GitHub · 2026-11-25 21:39 UTC · original
Per-program signature counts for those 72 mesh failures, measured with a temporary trace switch on our emitter. 71 unique hashes, all
MS_/MSNC_ped-skinning forms, all withprimitive_components=0- the whole budget goes on vertex outputs.One example verbatim:
Two things follow from that shape.
The overshoot is small: 1.6% in the best case, 11% in the worst, with 33 of 71 sitting at +256 components. These are not programs that need a different path; they need to carry less.
And since
primitive_componentsis zero throughout, nothing is being spent on primitive attributes - the budget is entirely vertex outputs at 20 to 23 elements. Our own I/O summary on this pack counts 154 exported parameters that the consuming stage never reads, so dropping unread outputs is the obvious lever before anything clever.Not claiming that dropping exactly those 154 is sufficient: I have not matched unread exports to these specific programs. But the arithmetic says each of these needs only one to seven elements fewer, depending on the row, and unread outputs are the cheapest candidates.
@superboynick on GitHub · 2026-11-25 21:45 UTC · original
Correcting the suggestion at the end of my previous comment: "drop unread outputs" is not available to the emitter today, so it is not the cheap lever I implied.
At emit time there is no consumer information. The
unread paramcount in our I/O summary comes from a placeholder (param0) that the lowering already ignores; it is not a set of signature elements anyone can drop, and it does not identify which vertex outputs the pixel stage never reads. Wiring that up needs the paired pixel program on hand when the vertex or mesh signature is built, which is a real change rather than a flag.I built the switch to be sure: with the conservative fallback in place, the 71 programs are unchanged (over the limit 71 before and after, largest 9088 before and after), which is what a no-op should show.
So the +128 to +896 overshoot is still unexplained in terms of what to remove. Two ways forward that I can see: pair each mesh program with its pixel program at emit time and drop only outputs that both agree are unread, or find where these ped-skinning outputs are wider than the console's own signature needs. I do not know which is right, and I would rather say so than leave a plausible-sounding direction in the thread.
@PiloteCode on GitHub · 2026-11-25 22:11 UTC · original
Merged
main(c36971b) into the branch: a merge commit on top of the commits already here (f66feef), then two lint commits. No conflict.Where both sides changed the same code.
main'sc36971badds loads of four dwords a call to the translator (VICTORY_SHADER_OPTbit 64, not in the default) inemit/lower.rs,emit/mod.rsandemit/bitcode/opt.rs, which this branch changes too. They merge side by side:main's new paths are taken only with the bit on, and its test of them passes here.emit/lower.rsis 504,469 bytes of the policy's 524,288. The rest ofmain's commits is in files this branch does not change, but for the README and three lint lines.Added after the merge: two lint commits for
main's newer code, the same as on our other open branches:manual_is_multiple_ofinshadow.rs,queue.rs,draw.rsandwatch.rs,map_entryinfpsbox.rs,collapsible_ifinpipeline/library.rs. Without themcargo clippy --workspace --all-targets --locked -- -D warningsfails onc36971b, with or without--all-features.Checked, the branch as it is (
6e52a49), every test on the software adapter (the description's test counts are from the card, on9376fd6):cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features: clean.cargo xtask policy,cargo build --release -p victoryandcargo build --profile diag -p victory --features diagnostics: pass.cargo test -p victory-shader -- --test-threads=1withVICTORY_WARP=1: 238 passed, 5 failed, 2 ignored. Four of the five fail onmainalone on the software adapter (212 passed, 4 failed, 3 ignored):ds_min_max_f32_order_floats_and_return_the_old_value,v_permlane16_and_x16_read_the_lanes_their_selectors_pick,whole_wave_f64_sum_and_cvt_f32_f64anda_lane_mask_joined_with_a_number_is_read_as_the_number_it_is. The fifth is this branch'slds_subtractions_get_a_pipeline_and_stay_atomic. The description's run on the card, on9376fd6, had no failure; the merged branch has not run on the card.cargo test -p victory-gpu --features diagnostics -- --test-threads=1withVICTORY_D3D12_WARP=1: 200 passed, 1 failed, 6 ignored, as onmain. The failure isdepth_bounds_pipeline_loads_and_filters_draws: WARP does not reject the pixels outside the depth bounds.cargo test -p victory-hle -- --test-threads=1: 100 + 1 passed, as onmain.cargo test -p victory -p victory-loader: passed.@superboynick on GitHub · 2026-11-25 22:33 UTC · original
Third and final class from my earlier comments is fixed, so here is the whole set in one place.
All three were invisible without
--validate- the programs in question already had pipelines - and all three are now zero on the retail pack:The third one was small and dull: an array-layer index was passed into the third coordinate of a level-of-detail query with the remaining slots left as they came, which the validator reads as an out-of-bounds coordinate rather than an unused one. It affected exactly the three
*_AlphaClippixel shaders that appeared in my earlier list.All 14,199 emitted vertex and pixel programs now validate, with the pipeline count unchanged, so this corrects generated code rather than unlocking draws.
What remains on this host is the case at the top of this issue: 72 mesh programs whose combined vertex and primitive output exceeds 32768 components. Their overshoot is 128 to 896 components, 33 of 71 unique hashes sitting at +256, all ped-skinning meshes with no primitive outputs at all. I documented that in an earlier comment and did not attempt it.
All three changes are in one PR now: #1160
@PiloteCode on GitHub · 2026-11-25 22:54 UTC · original
@DoubleD17 thanks, you are right: on a GPU of 32-lane waves that test passed with nothing run on the card. It lowered the program for 64-lane waves only, the device refused the pipeline, and the test returned.
It now does what you describe (
51700c6, test only):WaveLaneCountMaxofD3D12_OPTIONS1) before the form is chosen;paired(&native), which also validates it); fewer (the software adapter's 4): a line, and nothing run;On our RTX 5090 (32-lane waves),
cargo test -p victory-shader wave64_tests: 15 passed, and this test says "ran on the hardware device (waves of at most 32 lanes)": the paired form gives the console's tree bit for bit with 64, 63, 40, 33, 32, 17, 5 and 1 lanes left, as in your run on the RTX 5070. On the software adapter it prints "the hardware device's waves hold at most 4 lanes; not run". Clippy (with and without--all-features) andcargo xtask policypass.The change is merged into #993 and #994 as well, since both contain this branch.
@PiloteCode on GitHub · 2026-11-25 22:54 UTC · original
@superboynick thanks for the series. What of it meets this PR:
f5e50eb2108c425bwithce3f0432a08f1d35: as you found, each half is created on its own. The pair writes a uint target with blending on, and D3D12 refuses a pipeline that blends an integer target (#51): a matter of the blend state, which this PR does not touch.link_meshbrings: the mesh program is translated again with the pixel program of its pipeline, and keeps only the outputs that program reads. #993, stacked on this one, adds the form for the same programs drawn with no pixel program (system values only).victory translate --validate --list, 32-lane host), all 14,259 vertex and pixel programs translate and validate, so none of the three shows there. We have not run it against the 1.9 validator you used; if you run--validateon this branch with it and a class comes back, the program names would tell us where.@HyperEndgame on GitHub · 2026-11-26 00:43 UTC · original
Tested #854 on
085ee7c. Offline, it clears all 27 compute refusals on 32-lane waves. One in-game run reached the first gameplay room with no compute refusals and no device loss.Setup
085ee7cplus #854VICTORY_HOST_MAX_WAVE=32, translate with--validate --pipelines --listover the shader packOffline results
085ee7c: 27 unique compute programs refused (E_INVALIDARG). Compute pipelines created: 2647.Comparison (refused compute programs, out of 27)
VICTORY_LDS_EXACT=1)VICTORY_WAVE_PAIRS=1)#592 + #500 needed a manual conflict fix in
lds_meetings. Its correctness is unverified.Recovered programs (baseline list)
In-game run (release build,
085ee7cplus #854, README switch set)0x80070057, hashesf5e50eb2108c425b/ce3f0432a08f1d35). Likely the integer-target blend case covered by other PRs. Unverified.Not tested
@ArturoWolff on GitHub · 2026-11-26 00:08 UTC · original · edited 2026-11-26 00:56 UTC
RTX 4060 8 GB / Linux / Proton: paired form restores all four specific compute PSOs, and five synthetic GPU readbacks pass.
This follows our partial-world run on the older integrated tree (#210), which reached recognizable but dark geometry and logged four distinct
WaveSize(64)refusals. I used PiloteCode's exact #854 head51700c6d43a3507fa65e50fe4bb64074ce706cd4, clean detached checkout, Rust 1.98.1 cross-built with LLVM MinGW (cargo build --locked --offline --target x86_64-pc-windows-gnullvm --release -p victory --features diagnostics). Executable SHA-25681e61f1865fffb8de93d1485bc902838f239b0fecc568c6b4d0ff910b80168bc.Same binary, same four formerly refused containers (CLI recomputed all four hash labels), separate copies of the same prefix, initially empty explicit driver-cache directories, GE-Proton11-14 with the official
71cae091b06571evkd3d-proton x64 overlay; DXVK reports NVIDIA RTX 4060, driver 620.73.4, skipping the software adapter.VICTORY_HOST_MAX_WAVE=32,translate --jobs 1 --list --validate --pipelines, with onlyVICTORY_WAVE_PAIRSvaried:02384a60fda6f2d02cc4c197ee29e2912da4beb386509b77369cbe906ea727644 emitted of 4 compute programs; 4 validated, 0 pipelinesversus4 emitted of 4 compute programs; 4 validated, 4 pipelines. Control logs fourRequired WaveSize range [64, 64], but supported range is [32, 32]messages; enabled logs zero. Both processes exit 0, no host-memory guard stop or OOM count change. This is a PSO-creation test, not execution of those four game shaders.Separately built the unmodified shader lib tests from that same revision with
--features host,diagnostics. The firstpaired_lanes --test-threads=1 --nocaptureheadless attempt timed out after 360 s in the first test; its last device-init messages were DXVK/OpenXR, before adapter enumeration or a dispatch receipt. I cannot attribute this to the shader. Retried the same test binary with a private rootless XWayland display, another copy of the original prefix, an initially empty explicit driver-cache directory and a 90 s inner timeout. The actual runtime again logged71cae091b06571eand RTX 4060. Exit 0,5 passed; 0 failed; 0 ignored; 240 filtered out. All five printed their actual hardware execution witnesses: two console waves/loops/LDS; OR of both halves; permutes/row masks/swizzles/lane writes; LDS/lane reads/masks across halves; and the half sum0x5914. No skip messages, and the CPU-oracle comparisons completed. No reported Xid or OOM in the accessible journal interval. All guarded units retired between attempts.This verifies a narrow Linux/NVIDIA PSO and synthetic correctness milestone, not the title's rendering or the performance of the paired program. I would now test #854's paired form in the retail integration before adding #993's other changes. No game assets, shader dumps, or captures attached. Relevant alternatives are #823 and DexNom/VIctory#40; the four PSOs above are the specific locally observed refusals, including the multi-wave cases.
Retail follow-up, same-build paired on/off comparison: I integrated this exact head with our previously tested Linux changes from #1056 (
c5820acd), #830 (951dc00, Filip722), #20 (d4a36b1, ErRusso), and #1006 (4e7af7b, OctoAlgo, port of desplmfao's upstream #2143). Resolved two lint-only merge conflicts and combined the pipeline-library rejected-file preservation from this tree with #1056's early-list fall-through; the previous #830/#20 patch applied except for a README hunk, which I omitted. #1006 applied without conflict. No #993 changes. Integration diff SHA-256f7930b860c3caeba36f086d6a5b079c436dfca3c838f3139527cd5eb639cbc10. New executable SHA-256a9f9c69e4382379fbb1d3f202b243840c75d23636c90356def6f27f5dc752be3, same release+diagnostics build recipe.Two sequential 330 s Series X runs, same exe, GE-Proton11-14 / verified
71cae09, 1920x1080, file physical backing, texture guard=0/no-wait=1. Fresh copies of the same original prefix/saves and identical prior translation/driver-cache seed (1,638 early keys). Both log the 1,638 keys and mapping of a read-only vkd3d cache. New translator fingerprint: first reported translation counters have zero hits in both arms (228 vs 166 misses), so this is not a warm-translator comparison. Both proceeded to loading artwork without a qualifying visible account-picker prompt; the same prompt-gated input script sent no controller input in either arm. No input response tested.02384a60fda6f2d02cc4c197ee29e2912da4beb386509b77369cbe906ea72764The compute host-pipeline success log is after the successful D3D12 PSO call; first-bind messages are requests, not proof each dispatch executed or produced correct output. With pairing off: four WaveSize refusals; on: zero. In both, the game captures show the loading art (about 47 s vs 46 s), then black transition frames through the scheduled stop, despite the logged world-stage pipeline binds (first target at ~242 vs ~269 s). Neither arm produced recognizable world geometry in these 34 private captures per arm. End-of-run pending pipeline counts 482 vs 701; post-transition intervals 0.1–1.0 vs 0.2–0.8 FPS, not a common visible-world performance benchmark. No HUD, subtitles, credits, control or correct lighting verified.
Off/on respectively: whole-device peak VRAM 7,163/6,789 MiB; scope peak charged 9,683/9,521 MiB; swap 2,976/2,998 MiB; minimum host MemAvailable 4,223/3,963 MiB. Game PCM nonzero in 10/21 and 13/21 chunks, fidelity unknown. Both stopped on schedule at 333.4 s, no guard stop, OOM counter advance, matching device removal lines or Xid in accessible journal; both units retired. Prior integrated build had visible partial geometry in a warm run; these runs are not a controlled comparison with that earlier build. The next useful comparison is a mode-specific warmed repeat, not a claim of a visual fix from PSO creation alone. No game assets or captures attached.
Warmed retail follow-up: same exact integrated binary, each mode warmed by one previous scheduled run. Both reached recognizable 3D geometry and the opening night cutscene with visible subtitles after one actual account-picker controller A press/release each. Pairing again removed the four Wave64 PSO refusals; no shader translation failures logged with it on, one
f133e35efed2a48awith it off. Both close-ups still show black facial skin/detail despite visible colored light on shoulders. Pipeline backlog reached zero; no in-world control or correct lighting established. A further byte-identical-seed comparison of the same paired-on binary with existingVICTORY_LEVELS_ON_DEMAND=1also left the face black, though it reached visible intro credits. Detailed texture-residency baseline and counters. This is why I am testing #1031/#1210 next rather than treating the four recovered PSOs as a visual fix.AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)
@HLVM04 on GitHub · 2026-11-26 00:56 UTC · original
Frame-cost data point for the "not tested" item above, on the same card class as SkillIssueXO's slower result, but a different tree and profile:
RTX 5070 Ti 16 GB (32-lane), driver 616.64, Ryzen 7 9800X3D, Windows 11 build 26200, Series S profile, first gameplay scene. Tree: fork main
0b0074eplus #798 #783 #799 #770 #827 #845 and some local processor-side changes, with and without this PR merged. Note the base already has #799's loose-LDS fallback, so "without" is not the bare refusal case.Two runs each. No crash or device loss. Picture unchanged or slightly cleaner by eye (not compared per program). One 0.7 s spike on first launch while the new forms translate. So on this tree the paired form did not cost frame time; that may differ on Series X or on a tree where the card is the limit.
@Ahmet-Dedeler on GitHub · 2026-11-26 01:54 UTC · original
A D3DMetal data point for the paired compute lowering. On an M5 Max with D3DMetal 4.0b3 I tested five compute shaders from the same inputs with the paired emitter toggled on a local port of this patch. Pairing off gave 0/5 conversions in Apple's compiler (one failed in translation first). Pairing on emitted Wave32 DXIL that Microsoft validated and Apple's converter accepted for all five.
I also ran six synthetic tests through D3DMetal with GPU readback. The cross-half operations and the exact-pairing selection test all matched their references. The title-derived cases were checked through conversion. This was all outside a game run.
@DoubleD17 on GitHub · 2026-11-25 19:54 UTC · original · reviewed
Could the inactive-lane FP16 reduction test exercise the paired Wave32 form on 32-lane hardware? It currently lowers for Wave64 and returns early when PSO creation fails, so a green suite can miss the GPU assertions. Wave64 lowering and early return
Independent synthetic report on a verified RTX 5070 (10de:2f04, driver 621.40), Windows, Rust 1.98.1 MSVC. The
emit::wave64_tests::suite reported 6 passes on basedd3a14ba5ab06e0a6efdaecebdb33b1a13e04a3cand 15 on a clean merge of head0751197e744c92d392a65d02fe40973f566843e2onto that base. Both runs skipped this GPU check. A test-only patch on the merged tree kept native DXIL validation, selectedpaired(&native)for the Wave32-only adapter, and made a refused PSO fail on eligible hardware. With the patch, the suite passed 15/15 and readback matched the FP16 reference bit for bit with 64, 63, 40, 33, 32, 17, 5 and 1 active lanes. A separate HLSL control created the Wave32 PSO and receivedE_INVALIDARGfor Wave64, with the device still active.In
a_sum_of_halves_where_lanes_have_left_is_the_consoles_tree_bit_for_bit, queryD3D12_OPTIONS1before selecting the GPU form. Keep native Wave64 where supported, select the paired form for Wave32-only hardware, and make PSO creation and dispatch on that same queried device mandatory once it qualifies.on_the_cardcurrently creates a new device, so pass the selected host through or use it directly in this test. This evidence covers the synthetic reduction fixture. Test helperAI-assisted.
@Exopus-0x65f7ad0 on GitHub · 2026-11-26 09:37 UTC · original
Tested on another 32-lane card: RTX 5060 Ti 8 GB with 16 GB of RAM, Series S profile, opening cutscene. The base was a fork tree with about 30 open PRs on top. I cherry-picked
26600c6(the paired form), with three local changes:descriptor_datacode inlower.rsand dropped the newdescriptor_data.rs. Our copy carries 42 more lines from other PRs: a descriptor read only for its size, and the halves path.wave_basecounter (your fixed 32/64 step against its rank among active lanes, which also handles partial waves). Someone should merge the two carefully.main.Result:
CS_TransmissionVolumetrics_Tiled,_Tiled_LocalLightsandSubmerged. Before, they were refused here with "a wave reduction where not every lane runs".VICTORY_WAVE_WIDE=2) the same shot came out much darker, and the cutscene dropped to 1.5 fps. That matches the black patches #1248 reports for the_Tiledpair under the wave-wide form.VICTORY_WAVE_PAIRS=0), and there was no device loss.VICTORY_WAVE_PAIRS=0in the same build. That is within this machine's run-to-run spread, since it pages with 16 GB of RAM.This is one run each way, scored by eye on the cutscene shots, so treat it as a data point, not a measurement.
🤖 Generated with Claude Code
@gustavowalkersgroup on GitHub · 2026-11-26 11:08 UTC · original · edited 2026-11-26 11:17 UTC
RTX 2070 (Turing, 8 GB), driver 621.40, i5-10400F / 32 GB: confirmed actual paired GPU readbacks on this hardware.
This is a local candidate based on fxceless
4aa6e8c742with the shader-crate changes/dependencies from PR head51700c6d43, plus a local CLWB compatibility handler. It is not a clean full-PR checkout: GPU mesh-host/CLI changes were excluded, and the existing WAVE_WIDE=last fallback retained the new (shader, wave) return type.A diagnostic run then failed inside the in-process stack collector precisely at its scheduled 220-second sample (ntdll+0x21580 read 0x41, immediately after several thread backtraces). I am rerunning without VICTORY_STACKS to keep that separate. The baseline had the title watchdog at image+0x23cf683 / GPU Loc Sig 921cc4ae after a native fence wait stopped advancing. The same refused shader was also dropped during an older successful world run, so I am not claiming that its refusal alone explains the watchdog.
No game binaries, shader inputs, saves, or memory dumps are attached.
Update after rerunning without VICTORY_STACKS: the original watchdog still reproduced, about 30 seconds after the native render-thread fence wait stopped advancing. Three external snapshots taken approximately 5, 15, and 25 seconds into the stall read the same CPU-visible Fence.value: expected 6361, actual 6360. Pipeline workers, relay, and late-wait helper were idle. The fixed compute pipeline was created successfully, with zero host-pipeline refusals in this run. Thus paired translation fixes the demonstrated Turing incompatibility but did not fix this separate queue/fence progress issue.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.