Ray-tracing builder translates on 32-lane GPUs; textures spill to shared memory; findings on a 6 GB laptop #601
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/601"
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 fxceless/victory-fork. Originally posted by DiogoPCastelos on 2026-11-25T02:54:53Z.
Bring-up on a machine well below the fork's test machine (RTX 3060 Laptop 6 GB, i7-11800H, 16 GB RAM), rebased on
mainat9376fd6. Where upstream has since done the same thing, upstream's version is kept and this branch's was dropped:v_cvt_f32_f64,v_permlane16/x16, first-half interpolation pairs, descriptors read only for their sizes (unused_descriptor_kind), the texture catch-up budget, the R9G9B9E5 stand-in,translate --warm. Every program those fixed still translates and validates.What changes
Ray-tracing builder (off by default,
VICTORY_BVH_BUILDER=1)v_readfirstlaneinside a loop each console wave leaves together.lane_uniformnow proves a shared-memory read at a uniform address uniform where the memory has settled (lds_settled: no write after it, every write before it behind ans_barrier), so both halves of a console wave take their own first lane. This is the caseVICTORY_FIRSTLANE_OWN=1was added for, now proven per program.lane_uniformno longer counts a destination's old value as one of an operand's registers (an instruction whose destination was not one of its sources was never uniform).VICTORY_BVH_QUARANTINE=1the layer runs out of memory copying what those stores name. The three scans are not the cause: a GPU test runs their form and checks every thread. Details and next steps indocs/fork-findings-6gb-laptop.md.Shaders
v_permlane16/x16keep the console's lane order (upstream lowers the instructions but did not ask for that order).Runtime
VICTORY_TEXTURE_SPILL=0turns it off). On 6 GB, skin, walls and clothes sampled black without it. Upstream's kept room (buffer copies, first-frame targets) counts as used in both rules.VICTORY_COMPUTE_WAIT=0drops it as before).VICTORY_PIPELINE_COMMIT_MB).Deserialize{Graphics,Compute}PipelineStateX. The title falls back to its description, so they now fail with one info line instead of a warning per call.The XCL items (the slot names, compute waiting, the commit guard) are ideas from its notes, written anew; no code was taken (XCL is GPL-2.0-only).
Testing
cargo test --workspace --releaseon the rebased branch: all pass (shader crate 218, GPU crate 144, HLE 98).a_scan_over_console_waves_sums_each_waves_predecessorspasses on the RTX 3060. New unit tests forlds_settled(positive, no-barrier and write-after cases).VICTORY_HOST_WAVE=32 … --validate --pipelines): all 52 builder programs. The programs fixed while this was written (deferred materials, puddles, a shallow-water reduction, water transmittance) validate and make pipelines with upstream's fixes. Two water volumetrics programs validate but the driver refuses their pipelines (upstream's state; listed in the doc).cargo xtask policy: ok. Formatting: no rustfmt differences added beyond each file's existing ones.--warm allwith this GPU's two settings) followed by a launch: 2,119 shaders from the cache, 2 translated.Not done
🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T08:32:42Z.
Independent verification: PR #543 does not exist on this repo; verified PR #601 (Ray-tracing builder translates on 32-lane GPUs) instead. Build: success (7.93s). Tests: fail due to pre-existing Linux build errors in victory-loader (missing windows_sys) and victory-gpu (host_resource not in scope) — confirmed identical on main without this PR. PR #601 introduces no regressions. Conflicts: none. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
Pull request closed