Reject BVH hits from unmapped title memory #206
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/Belobug--VIctory-Belobug-AMD!206
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-206"
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?
@Lkxex on GitHub · 2026-11-25 22:24 UTC · original
Lkxex:fix/windows-render-belo→main· +60 −19 · 1 files · 2 commits · openUse Belobug's memory-map residency to prevent bogus hits from null BVH views. Narrow nodes need only their first 64 bytes. Wide nodes read the second span separately so it maps into the right view. Native backward permutes avoid reading inactive hardware lanes.
Tested: Windows x64 diagnostics build. Game rendering and FPS are unverified.
AI use: Codex (GPT-6.2 Sol).
@gut0to on GitHub · 2026-11-26 16:24 UTC · original · reviewed
AI-assisted review. I inspected the BVH residency checks statically; I did not run shader tests, Windows runtime tests, or the game. This review suggests a focused partial-mapping test.
@ -2876,0 +2891,4 @@let mut values: Vec<_> = words.into_iter().map(|word| (word, zero_bits)).collect();let yes = self.s.m.bool(true);values.push((tail_present, yes));let mut words = self.end_guarded(tail, &values);@gut0to on GitHub · 2026-11-26 16:24 UTC · original
AI-assisted review; I did not run tests. Could a generated BVH fixture cover a wide box whose first 64-byte span is resident but whose tail span is unmapped, alongside a narrow box in the resident span? That would verify the new second-span read is guarded and that
tail_presentrejects only the wide hit; the PR adds no test for this split-residency behavior.@adrianmjim on GitHub · 2026-11-26 19:49 UTC · original
Tested natively on Windows 11, RX 7900 XT (RDNA3, driver 32.0.32029.2010), head
7eaaadfagainst base4f62c2a. Other jobs were running on the machine at the same time.Corpus translate (shaders.rpf, --validate, host lanes 32-64):
d7b72b5alone.7eaaadfchanges 5 of them again: CS_ComputeStickyLips and 4 shadowmask checkerboard variants.Tests:
ds_bpermute on hardware (a local throwaway test, not for merge): a hand-written wave64 compute program where lane t reads lane t+1 with ds_bpermute_b32.
The split path is now reachable on 32-lane-only hosts:
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.