Ray-tracing builder translates on 32-lane GPUs; textures spill to shared memory; findings on a 6 GB laptop #601
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!601
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@DiogoPCastelos on GitHub · 2026-11-25 02:54 UTC · original
DiogoPCastelos:fork/6gb-laptop-rt-builder→main· +775 −26 · 11 files · 3 commits · openBring-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
- Textures picked by index may go on into the PC memory the system shares with the card once the card's share is reached, up to half of that budget (VICTORY_TEXTURE_SPILL=0: off). On a 6 GB card the card's share was reached in the world's first frames and skin, walls and clothes sampled black; with the spill the same shots have their colours. The room upstream keeps for card copies of title buffers and first-frame render targets counts as used in both rules. - A dispatch whose pipeline is still being made after the frame's wait waits for it instead of being dropped (VICTORY_COMPUTE_WAIT=0: dropped): a dropped dispatch leaves its results unwritten for later passes. The rule XCL follows. - Pipeline workers wait while less than 2 GB of the system's commit is left (VICTORY_PIPELINE_COMMIT_MB); a pipeline a title thread waits for does not. A driver failing an allocation in its compiler crashes inside itself. - Device slots 0x1c8 and 0x218 are Deserialize{Graphics,Compute}PipelineStateX (the console driver's pipeline cache): the title makes the pipeline from its description when they fail, so they fail quietly now (one line, not a warning per call). - Series S: present planes are read at their real size (72 bytes; the second plane's count read as garbage at 24) and their layout is logged when it changes, from the title's descriptions (no host copy made). The UI plane is not composed yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>@Headache3318 on GitHub · 2026-11-25 08:32 UTC · original
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.
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.