bvh: shaders reach title memory itself by address (VICTORY_BVH_IN_PLACE=1) #11
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/lobomfz--VIctory-xmem!11
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-11"
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?
@luisaugustz on GitHub · 2026-11-29 17:05 UTC · original
luisaugustz:bvh-in-place→main· +86 −6 · 1 files · 1 commits · closed without mergingFollow-up to #8.
With unified memory, shaders that read title memory by address use it in place instead of through copies: the directory entries of those pages name views of the unified-memory mirror, so there is nothing to compare or send for them. Off unless
VICTORY_BVH_IN_PLACE=1. The new views are numbered below the card pages' slots, so the two do not collide. The=vrammode is left out.Testing
RX 9070 XT, Arch,
5a60834plus this commit, 2560x1440, software ray tracing (VICTORY_BVH_BUILDER=1), same save and view:The ray tracing lighting bug is separate and still there.
🤖 Generated with Claude Code
@Luxuride on GitHub · 2026-12-04 12:00 UTC · original · edited 2026-12-05 11:24 UTC
As I read it, this is already in
main: this feature is inmainunder different names.crates/victory-gpu/src/memory.rs:154pub(crate) fn in_place(), withSTRETCH/STRETCHES/STRETCH_TOPat:133-136,fn put_in_place,crate::um::mirror_over, and theWHOLE/let_goalias machinery — all added in the same commit (2773fdf) that removed the sibling borrow-recording switch. The bounds check (k < self.copies.len()) is inmaintoo.There is no defect in the patch; it is the ancestor of what shipped, so rebasing it into that code would be a regression to an older shape.
If you think the shipped
put_in_place/mirror_overversion lost something this one had, say so on the merged commit — that is more useful than a rebase.Whether it still has work of its own is the maintainer's call, not mine.
Pull request closed