Shaders: report only missing title-memory pages #308
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/308"
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 gomeaw on 2026-11-24T23:28:57Z.
Summary
Raw title-memory shaders write a page number into the fault UAV for every lookup. Resident pages and masked lanes write to dword 0, which the host never reads. With many threads traversing the same structures, these writes all target the same address.
Emit the fault store only when an executing lane finds an absent page. Keep the hash and slot for actual faults. Continue from the join before using the resolved view in raw memory instructions or reading a wide BVH node. There is no host binding or configuration change.
This addresses GPU work in the builder and traversal paths discussed in #284. The proposed dirty-page mask in that issue reduces host refresh and copy-back work. This patch also applies cleanly alongside the title-memory watermarks in #205 and both builder changes #156 and #294.
Validation
AI-assisted with Codex. All inputs were synthetic.
Imported from fxceless/victory-fork. Originally posted by HyperEndgame on 2026-11-26T19:00:56Z.
In-game numbers for this idea on real hardware. I measured my own implementation of the same change (the fault store guarded on
missing, with the block re-bound after the lookup), not this branch: it is based on an older main and conflicts with the ray-tracing stack I test on. So these numbers describe the technique, not this exact diff.Setup
085ee7c+ #854 + #993 + #994 (plus the structure view-address fix from my #994 comment) + #213 + #1147 + #1084. Diag build.VICTORY_BVH_BUILDER=1, probe off,VICTORY_CARD_METER_PIPELINES=1. Scripted input, 8-minute runs, the same opening scene.Card time per binding, before → after
f22a76fcb967ee59)6d7fe7745ab9c6d8)5062bc7a48e842f8)c42a31951201f9a0)5279ae36796c31fc)VICTORY_RAY_PROBE=1check run).A pitfall worth checking here
In my first version, the scalar path (
memory_smem) kept the block handle from before the lookup. Once the lookup split the block, translation panicked with "forward reference outside a phi" on the builder programs (16 panics offline over the builder DLL), and the unit tests didn't catch it. This branch does re-bindcinmemory_smem, so it looks fine. Atranslate --list --validateover the builder DLL is a cheap way to confirm it after the rebase.Not tested
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.