dxr: retarget copied recipe build.dest to destination address #40
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/40"
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 edsuuu/VI-BR-PORT. Originally posted by ahmetbagci8 on 2026-11-29T18:10:40Z.
Problem
In crates/victory-gpu/src/dxr/keep.rs, Book::copied(dest, source, frame) cloned source's Arc directly under key dest without updating
ecipe.build.dest = dest.
When dest is later evicted and requested again by a TLAS (keep::want(dest, frame)), keep::wanted(&table) yields (dest, recipe) where
ecipe.build.dest still points to source. In dxr/native.rs, both ottom::bottom(..., &recipe.build, ...) and keep::remember(recipe.origin, &recipe.build, frame) key off
ecipe.build.dest, so:
Additionally, the None branch removed dest from self.recipes without clearing self.wanted.remove(&dest).
Fix
Clone
.build with uild.dest = dest when recording a copied recipe, and remove dest from self.wanted when source has no recipe. Extended _recipe_named_without_a_structure_is_made_again_once to cover both cases.
Verification