Shaders, GPU: emulate the BVH intersection instructions, and reach title memory at computed addresses #1198

Closed
github-bot wants to merge 10 commits from gh-pr/1198/head into gh-pr/1198/base
Owner

@⁠powplusplus on GitHub · 2026-11-24 16:24 UTC · original
powplusplus:shader/ray-tracing → main · +3025 −34 · 24 files · 10 commits · closed without merging

Update: main at 70564ae now has its own BVH intersection, title memory through a page table and lane masks spilled in compute, and this branch conflicts with it. On top of main, what is left of this is in #1883 (the lane masks the traversal keeps as numbers, which every RT shadow pass on main still stops at) and #1885 (the two vkd3d-proton hangs those passes then hit). The rest of this description is about the branch against ffe310e.

The title's ray-tracing passes (RT shadows, GI probes, reflections, particle collision) walk the BVH themselves: they follow pointers through title memory, test each node with image_bvh_intersect_ray, and keep the lanes still walking in a lane mask around their loop. None of that translated. Their addresses trace to no root parameter, the TLAS address comes out of a descriptor read as data, no host shader model has the instruction (see #274), and the loop's masks stopped the program.

What this adds

  • Address map. An access whose address the program computes (loaded from memory, picked by control flow, built) reads or writes title memory through a map of the host copies of title memory, sorted by address. The shader finds the range with a fixed 16-step binary search, straight-line code, and goes through a raw view in the view heap; a miss reads zero and writes nothing. Loads, stores and 32-bit atomics, scalar and vector. An address in an SGPR the hardware fills (the spill table, #302) is still refused.
  • BVH intersection. image_bvh_intersect_ray and image_bvh64_intersect_ray read the node through the map and test it as Microsoft's software model of the instruction does (SoftwareBvhIntersectRay, TestXboxBvh4Node, TestXboxBvh4Leaf in the XDXR traversal headers; node layouts as in #274): box16 and box32 nodes with sorting, the four triangles of a leaf with the watertight edge rules, both triangle return modes.
  • Descriptor words. Each view heap keeps the console words of its slots: buffer views, constant buffers and acceleration structures as buffer descriptors at their title address and record count. A descriptor the program reads as numbers reads these: one no access names, one a scalar buffer load uses (a constant or structured buffer whose size the program checks), and the address and format words of any other.
  • Traversal lane masks. A lane testing its own bit of a mask (v_and_b32 with 1 << lane) takes the mask's per-lane value without a ballot. A mask joined at a block is active when each incoming mask is active, written in the block it comes from, and every lane there leaves by that edge together. In compute, a number joined with a lane mask takes its ballot, and a lane-mask join of a number takes each lane's bit (the traversal pushes masks on an LDS stack as numbers).
  • GPU side. The map (made once per list and view heap, its views in dynamic slots, the copies it lists refreshed at submission) and the words are bound as root SRVs. HostShader gets address_map and descriptor_words; the shader cache format moves to VSH2.
  • One back edge per loop header. vkd3d-proton's DXIL conversion (dxil-spirv) keeps one back edge per header, as DXC's code has. With several, the others stay among the header's forward predecessors and form a cycle, and in programs with wave shuffles its dominator search then recursed without end. The back edges of a header with several now go through one new block that joins their phi values. This is not specific to ray tracing: any translated program with such a loop and a wave shuffle could hang vkd3d-proton before.
  • Pipeline threads (the pipeline workers and the translate command's) get a 256 MiB stack, reserved only. vkd3d-proton converts DXIL on the calling thread, recursively, and the largest RT shadow pass overflowed 2 MiB; under Wine the overflow hung the thread instead of failing.

Results

translate --validate over shaders.rpf against ffe310e: 659 more programs emit, none lost.

ffe310e this this with #1208
CS emitted / validated 1,441 / 1,441 1,827 / 1,827 1,827 / 1,827
VS + PS emitted / validated 12,231 / 2,680 12,415 / 2,681 12,415 / 12,415
MS emitted / validated 8,214 / 2,573 8,303 / 2,577 8,303 / 8,250

By what they failed on before: 374 "a descriptor read only as data", 218 "a scalar memory read as data", 34 "a descriptor's address or format read as data", 33 "an address not from a root parameter". Most new graphics programs are pedestrians' and skinned meshes'. VS + PS and MS validation is low on ffe310e because of the PSV0 mismatch that #1208 fixes; with it, all 659 validate.

On an RTX 3080 (vkd3d-proton) 652 of the 659 create pipelines, each run on its own with a 120 s limit; the largest, CS_RTShadowTrace32HQ (about 1 MB of DXIL), takes about 20 s. The other 7 require wave size 64, which the card does not support.

30 of the 64 programs that use the BVH instructions now translate and validate, among them every RT shadow trace pass: CS_RTShadowTrace32HQ, CS_RTShadowTrace32HQFarOnly, CS_RTShadowTrace32TemporalHQ (and its FarOnly, OneOver4RPP and OneOver8RPP variants), CS_RTDistantShadowTrace32_Tiled (4 variants), CS_RTDistantLODLightShadow, CS_TraceShadowRays_* (4), CS_RaytraceShadows_Mixed and _Shared, CS_LaserLightShadowRaytracing, CS_IrradianceCache_ShadowTrace (2), CS_DeferredGather_* (4), CS_GatherAlphaVBuffer (2), CS_PPR_Raytrace, CS_CollisionRaytraced, CS_ComputeClosestDepth. 25 of the 30 create pipelines on the RTX 3080; the other 5 need wave size 64. Most of the 34 left are the ray-binning passes, which stop at "a whole-wave section step the simulation does not follow" (14).

The builder's own programs (XboxBvhBuilder.dll) still stop at the spill table. With #302 merged locally, 1 of 38 emits and the next blocker is root UAVs (27), which the map could also serve.

Testing

  • GPU tests, RTX 3080 and WARP under Proton:
    • a program reads 32 rays through the map, runs image_bvh_intersect_ray on hand-built box32, box16 and leaf nodes, and stores the results through the map; compared with a Rust transcription of Microsoft's model (both descriptor modes, sorted and unsorted, a shared edge, parallel and backward rays, back faces, random boxes);
    • a loop over a lane mask that loses its lowest lane each pass, counted per lane (refused before this change).
  • Unit tests for how the map cuts overlapping copies and large copies.
  • clippy (default and all features). cargo test -p victory-shader -p victory-gpu under Proton, apart from the known Proton-only failures (stub_pipeline_is_created, a_rejected_blob_gives_an_empty_library).
  • Not run in the title yet.

Known limits

  • What shaders write through the map stays in the host copies; it is not copied back to title memory. The BVH the title builds on the GPU is only read on the GPU.
  • Every copy in the map is refreshed once per list that binds it.
  • A map search costs 16 dependent loads per access.
  • Triangle return mode follows the descriptor (bit 120). The title's descriptors ask for mode 1 (dword 3 0x890003ff, as @⁠r4tedx found), so the mode 0 path (the leaf's id dword and a hit flag) is not reached; an earlier version of this description said mode 0, which was wrong.
**@⁠powplusplus** on GitHub · 2026-11-24 16:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198) `powplusplus:shader/ray-tracing` → `main` · +3025 −34 · 24 files · 10 commits · closed without merging **Update:** main at `70564ae` now has its own BVH intersection, title memory through a page table and lane masks spilled in compute, and this branch conflicts with it. On top of main, what is left of this is in #1883 (the lane masks the traversal keeps as numbers, which every RT shadow pass on main still stops at) and #1885 (the two vkd3d-proton hangs those passes then hit). The rest of this description is about the branch against `ffe310e`. The title's ray-tracing passes (RT shadows, GI probes, reflections, particle collision) walk the BVH themselves: they follow pointers through title memory, test each node with `image_bvh_intersect_ray`, and keep the lanes still walking in a lane mask around their loop. None of that translated. Their addresses trace to no root parameter, the TLAS address comes out of a descriptor read as data, no host shader model has the instruction (see #274), and the loop's masks stopped the program. ## What this adds - **Address map.** An access whose address the program computes (loaded from memory, picked by control flow, built) reads or writes title memory through a map of the host copies of title memory, sorted by address. The shader finds the range with a fixed 16-step binary search, straight-line code, and goes through a raw view in the view heap; a miss reads zero and writes nothing. Loads, stores and 32-bit atomics, scalar and vector. An address in an SGPR the hardware fills (the spill table, #302) is still refused. - **BVH intersection.** `image_bvh_intersect_ray` and `image_bvh64_intersect_ray` read the node through the map and test it as Microsoft's software model of the instruction does (`SoftwareBvhIntersectRay`, `TestXboxBvh4Node`, `TestXboxBvh4Leaf` in the XDXR traversal headers; node layouts as in #274): box16 and box32 nodes with sorting, the four triangles of a leaf with the watertight edge rules, both triangle return modes. - **Descriptor words.** Each view heap keeps the console words of its slots: buffer views, constant buffers and acceleration structures as buffer descriptors at their title address and record count. A descriptor the program reads as numbers reads these: one no access names, one a scalar buffer load uses (a constant or structured buffer whose size the program checks), and the address and format words of any other. - **Traversal lane masks.** A lane testing its own bit of a mask (`v_and_b32` with `1 << lane`) takes the mask's per-lane value without a ballot. A mask joined at a block is active when each incoming mask is active, written in the block it comes from, and every lane there leaves by that edge together. In compute, a number joined with a lane mask takes its ballot, and a lane-mask join of a number takes each lane's bit (the traversal pushes masks on an LDS stack as numbers). - **GPU side.** The map (made once per list and view heap, its views in dynamic slots, the copies it lists refreshed at submission) and the words are bound as root SRVs. `HostShader` gets `address_map` and `descriptor_words`; the shader cache format moves to `VSH2`. - **One back edge per loop header.** vkd3d-proton's DXIL conversion (dxil-spirv) keeps one back edge per header, as DXC's code has. With several, the others stay among the header's forward predecessors and form a cycle, and in programs with wave shuffles its dominator search then recursed without end. The back edges of a header with several now go through one new block that joins their phi values. This is not specific to ray tracing: any translated program with such a loop and a wave shuffle could hang vkd3d-proton before. - **Pipeline threads** (the pipeline workers and the translate command's) get a 256 MiB stack, reserved only. vkd3d-proton converts DXIL on the calling thread, recursively, and the largest RT shadow pass overflowed 2 MiB; under Wine the overflow hung the thread instead of failing. ## Results `translate --validate` over shaders.rpf against `ffe310e`: 659 more programs emit, none lost. | | ffe310e | this | this with #1208 | |---|---:|---:|---:| | CS emitted / validated | 1,441 / 1,441 | 1,827 / 1,827 | 1,827 / 1,827 | | VS + PS emitted / validated | 12,231 / 2,680 | 12,415 / 2,681 | 12,415 / 12,415 | | MS emitted / validated | 8,214 / 2,573 | 8,303 / 2,577 | 8,303 / 8,250 | By what they failed on before: 374 "a descriptor read only as data", 218 "a scalar memory read as data", 34 "a descriptor's address or format read as data", 33 "an address not from a root parameter". Most new graphics programs are pedestrians' and skinned meshes'. VS + PS and MS validation is low on `ffe310e` because of the PSV0 mismatch that #1208 fixes; with it, all 659 validate. On an RTX 3080 (vkd3d-proton) 652 of the 659 create pipelines, each run on its own with a 120 s limit; the largest, `CS_RTShadowTrace32HQ` (about 1 MB of DXIL), takes about 20 s. The other 7 require wave size 64, which the card does not support. 30 of the 64 programs that use the BVH instructions now translate and validate, among them every RT shadow trace pass: `CS_RTShadowTrace32HQ`, `CS_RTShadowTrace32HQFarOnly`, `CS_RTShadowTrace32TemporalHQ` (and its FarOnly, OneOver4RPP and OneOver8RPP variants), `CS_RTDistantShadowTrace32_Tiled` (4 variants), `CS_RTDistantLODLightShadow`, `CS_TraceShadowRays_*` (4), `CS_RaytraceShadows_Mixed` and `_Shared`, `CS_LaserLightShadowRaytracing`, `CS_IrradianceCache_ShadowTrace` (2), `CS_DeferredGather_*` (4), `CS_GatherAlphaVBuffer` (2), `CS_PPR_Raytrace`, `CS_CollisionRaytraced`, `CS_ComputeClosestDepth`. 25 of the 30 create pipelines on the RTX 3080; the other 5 need wave size 64. Most of the 34 left are the ray-binning passes, which stop at "a whole-wave section step the simulation does not follow" (14). The builder's own programs (`XboxBvhBuilder.dll`) still stop at the spill table. With #302 merged locally, 1 of 38 emits and the next blocker is root UAVs (27), which the map could also serve. ## Testing - GPU tests, RTX 3080 and WARP under Proton: - a program reads 32 rays through the map, runs `image_bvh_intersect_ray` on hand-built box32, box16 and leaf nodes, and stores the results through the map; compared with a Rust transcription of Microsoft's model (both descriptor modes, sorted and unsorted, a shared edge, parallel and backward rays, back faces, random boxes); - a loop over a lane mask that loses its lowest lane each pass, counted per lane (refused before this change). - Unit tests for how the map cuts overlapping copies and large copies. - clippy (default and all features). `cargo test -p victory-shader -p victory-gpu` under Proton, apart from the known Proton-only failures (`stub_pipeline_is_created`, `a_rejected_blob_gives_an_empty_library`). - Not run in the title yet. ## Known limits - What shaders write through the map stays in the host copies; it is not copied back to title memory. The BVH the title builds on the GPU is only read on the GPU. - Every copy in the map is refreshed once per list that binds it. - A map search costs 16 dependent loads per access. - Triangle return mode follows the descriptor (bit 120). The title's descriptors ask for mode 1 (dword 3 `0x890003ff`, as @⁠r4tedx found), so the mode 0 path (the leaf's id dword and a hit flag) is not reached; an earlier version of this description said mode 0, which was wrong.
- An access whose address traces to no root parameter but which the
  program computes (a pointer it loads, picks or builds) now goes through
  an address map instead of failing: the host copies of title memory
  sorted by address, searched in the shader, then read or written
  through a raw view in the heap. Loads, stores and 32-bit atomics,
  scalar and vector. An address in an SGPR the hardware fills (the spill
  table) is still refused.
- image_bvh_intersect_ray and image_bvh64_intersect_ray are emulated: the
  node is read through the map and tested as Microsoft's software model
  of the instruction does (SoftwareBvhIntersectRay in the XDXR traversal
  headers): box16 and box32 nodes with sorting, the four triangles of a
  leaf with the watertight edge rules, both triangle return modes.
- A descriptor the program reads as numbers (a buffer's address, an
  acceleration structure's location) reads the console words of the view
  heap's slot from a copy the host keeps, 32 bytes a slot.

HostShader gets address_map and descriptor_words; the shader cache format
moves to VSH2.
- The address map lists the host copies of title memory made so far,
  each through raw views in dynamic slots of the list's view heap, cut
  where copies overlap (the innermost wins, as shadow::find picks) and at
  512 MiB. It is made once per list and view heap; the copies it lists
  are brought up to date when the list is submitted.
- Each view heap keeps the console words of its slots: buffer views,
  constant buffers and acceleration structures as buffer descriptors at
  their title address, written whenever a slot is made.
- Pipelines get the two root SRVs their shaders ask for; a draw or
  dispatch that cannot have them is dropped.

What shaders write through the map stays in the host copies.
The ray-tracing passes keep the lanes still walking the BVH in a lane
mask around their loop, push masks on an LDS stack as numbers, and pop
them back. Each of these stopped the program.

- A lane testing its own bit of a mask (v_and_b32 with 1 << lane from
  v_mbcnt_lo) takes the mask's per-lane value, with no ballot, so the
  mask may hold lanes that do not run there.
- A mask joined at a block is active (a ballot there gives it) when each
  incoming mask is active, written in the block it comes from, and all
  lanes there leave by that edge together: a jump, or a branch on a
  uniform condition. Wave32 only.
- In compute, a number joined with a lane mask takes the mask's ballot,
  and a lane-mask join of a number takes each lane's bit of it.

A GPU test runs such a loop: lanes count the passes they stay in a mask
that loses its lowest lane each pass.
- The map search is a fixed 16-step binary search without a loop, and
  loads, stores and atomics need no branch: a miss, or a lane that does
  not run the access, goes to an offset past every view, where reads give
  zero and writes nothing. With a loop and a branch per access the
  ray-tracing shadow passes had too much control flow for vkd3d-proton's
  DXIL conversion, which did not finish in 25 minutes; now it takes
  about 20 seconds.
- The map always has an entry; without copies, an empty range over a
  null view.
- Threads that make host pipelines (the pipeline workers, the translate
  command's workers) get a 256 MiB stack, reserved only. vkd3d-proton
  converts DXIL on the calling thread, recursively, and overflowed 2 MiB
  on these programs; under Wine the overflow hung the thread.
vkd3d-proton's DXIL conversion keeps one back edge per loop header, as
DXC's code has. With several, the others stay in the header's forward
predecessors and form a cycle, and in programs with wave shuffles its
dominator search then recursed without end: the thread overflowed its
stack and, under Wine, hung. 11 of the ray-tracing programs this branch
translates did. The back edges of a header with several now go through
one new block that joins their phi values.
A descriptor that an s_buffer_load uses (a constant or structured buffer)
and that the program also reads as numbers (its record count, for bounds)
stopped the program, as did a constant buffer's. Both now read the
console words the host keeps for the view heap, whose buffer descriptors
carry the address and record count. 221 more programs in shaders.rpf
emit (89 mesh, 103 pixel, 12 vertex, 17 compute), none fewer.
A descriptor read as data was refused as a sampler's when any sampler
shared its root slot, static samplers included, so view tables in a slot
with a static sampler could not be read as data. Only samplers from a
table count now. 196 more programs in shaders.rpf emit (174 mesh, 21
vertex, 1 compute), none fewer.
A join of an SGPR that holds a lane mask on one path and a number on
another was refused outside compute when the program read it. In the
skinned mesh and pedestrian programs it is a register the compiler
reuses on a path that does not read it. Outside compute the mask's dword
is now the host wave's ballot, as compute already takes the console's.
253 more programs in shaders.rpf emit (125 mesh, 117 pixel, 11 vertex),
none fewer.
The join that took the host ballot of a lane mask in graphics now takes
zero there, which also covers masks that hold lanes elsewhere. The same
goes for a sampler's words joined with other values: in the pixel
programs the other side unpacks constant buffer bytes into the same
SGPRs. A program reading the mask or the sampler's words directly still
stops. 237 more programs in shaders.rpf emit (214 pixel, 15 mesh, 5
compute, 3 vertex), none fewer.
The console compiler spills SGPRs, saved EXEC masks among them, to lanes
of a VGPR with v_writelane_b32 and reads them back with v_readlane_b32.
Resource tracking already followed such spills; the lane-mask passes and
the lowering did not, so a spilled mask was read as a number and the
program stopped.

The IR now gives a v_readlane_b32 at a constant lane the value
v_writelane_b32 stored in that lane on every path, and drops the spill
writes and joins nothing else reads. 667 more programs in shaders.rpf
emit (473 compute, 138 pixel, 56 mesh), none fewer: the ray tracing
resolve passes, tiled shadow cascades, irradiance cache and primary
shading, sky and cloud lighting caches.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:23:20 +00:00
github-bot closed this pull request 2026-11-26 04:23:20 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-24 16:37 UTC · original

From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super). No game data involved.

A cheaper, diagnostic-only complement we use while real BVH emulation is not there (this PR is the real thing; ours does not replace it). VICTORY_RT_MISS=1 (opt-in, off by default, part of the shader cache key): in a program that contains image_bvh_intersect_ray, a s_load/global_load at an address that cannot be traced (the acceleration structure, whose address comes out of a descriptor read as data) reads a null view (0), image_bvh_intersect_ray returns 0xFFFFFFFF (the ISA's invalid node pointer), and the branches decided by those zeros (the BVH header's node count at +48 = 0 skips the traversal loop) are folded. Without the variable the named refusal is unchanged.

Measured on an integration tree, ray-tracing corpus (47 containers): emitted 18 -> 38, emitted and validated with dxil.dll 18 -> 36. Programs that go through: the shadow/reflection/GI trace passes whose hashes are 32ed072b, 0873f80d, e8c96235, afeea48b, a1b20bc4, 17829ac7. Still refused: 8 RaytraceVBuffer* ("whole-wave section step"), TraceShadowRays_Half (lane mask), _FullAdaptive (join of an untracked mask).

It lets the world run past ray-tracing passes (no shadows or bounces from RT) while testing other work. It needs the translate-options plumbing that is not on main yet, so I am not publishing a branch; happy to rebase it onto this PR if you want it.

**@⁠LooperSalty** on GitHub · 2026-11-24 16:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7137959536) From a tester working with Claude (AI-assisted); measured on my own machine (i7-13700KF, RTX 4070 Super). No game data involved. A cheaper, diagnostic-only complement we use while real BVH emulation is not there (this PR is the real thing; ours does not replace it). `VICTORY_RT_MISS=1` (opt-in, off by default, part of the shader cache key): in a program that contains `image_bvh_intersect_ray`, a `s_load`/`global_load` at an address that cannot be traced (the acceleration structure, whose address comes out of a descriptor read as data) reads a null view (0), `image_bvh_intersect_ray` returns 0xFFFFFFFF (the ISA's invalid node pointer), and the branches decided by those zeros (the BVH header's node count at +48 = 0 skips the traversal loop) are folded. Without the variable the named refusal is unchanged. Measured on an integration tree, ray-tracing corpus (47 containers): emitted 18 -> 38, emitted and validated with dxil.dll 18 -> 36. Programs that go through: the shadow/reflection/GI trace passes whose hashes are 32ed072b, 0873f80d, e8c96235, afeea48b, a1b20bc4, 17829ac7. Still refused: 8 RaytraceVBuffer* ("whole-wave section step"), TraceShadowRays_Half (lane mask), _FullAdaptive (join of an untracked mask). It lets the world run past ray-tracing passes (no shadows or bounces from RT) while testing other work. It needs the translate-options plumbing that is not on main yet, so I am not publishing a branch; happy to rebase it onto this PR if you want it.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 17:09 UTC · original

@⁠powplusplus, an independent check of fe078c6 on native Windows (no Proton), plus one point about the descriptor.

Tests. Windows 11, RTX 5070 as the default adapter, plus WARP, using cargo test --locked -p victory-shader -p victory-gpu -- --test-threads=4:

  • victory-shader: 123 passed, 0 failed, 1 ignored.
  • victory-gpu: 53 passed, 0 failed, 1 ignored.

That includes bvh_intersection_matches_the_model_on_the_gpu, which ran on both the hardware adapter and WARP with neither skipped, and the three address_map unit tests. stub_pipeline_is_created passes here, which fits it being Proton-only for you.

Offline count. This used local title data: victory translate --validate --list over shaders.rpf, SDK 10.0.26100 dxil.dll, CPU only, matched program by program against ffe310e.

  • Your +400 emitted reproduces exactly: compute 1,441 → 1,772, VS + PS 12,231 → 12,300, mesh unchanged. No program that validated on ffe310e is lost.
  • 11 of the 64 programs containing ray intersections validate, as you report; on ffe310e none of them emits.
  • One difference: 96 of the emitted compute programs fail validation with this validator. All of them fail with Entry function performs some operation that is incompatible with the shader stage. That's the implicit-derivative-in-compute case, which the 1.8 validator rejects and newer ones accept. So compute validates 1,676 of 1,772 here, against your 1,772 / 1,772. It's an environment difference, not a defect in the PR, but it's worth stating which dxil.dll the table used. Under this validator the gain is +259 compute and +62 pixel programs validated.

Triangle return mode. The description says "The title's BVH descriptor asks for triangle return mode 0". The code decodes bit 120 (dword 3, bit 24) at run time, so the result format follows whatever the descriptor holds. The evidence I have points to mode 1, though:

  • In three of the ray-tracing programs I decoded, the descriptor's dword 3 is 0x890003ff. Bit 24 is set: type 8, return mode 1, big_page set, size all ones.
  • Leonida's census linked from #274 reports triangle_return_mode 1 at all 716 intersection sites, with box_grow 0 and box_sort_en 1.

If that holds, the unconfirmed mode-0 modelling (id dword plus hit flag) is never reached by the title. How did you arrive at mode 0? A program that builds dword 3 differently would be worth knowing about.

For context: I had a separate lowering of the same two instructions written from AMD's GPURT layouts (IP 1.1). I'm not proposing it. Yours models the Xbox leaf format and handles the computed addresses, which mine didn't, and on this pack mine translated none of the 64.

AI-assisted (Claude Code). Local title data was used for the offline count only (counts and reasons reported, no names or game files). The title was not run.

**@⁠r4tedx** on GitHub · 2026-11-24 17:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7138782045) @⁠powplusplus, an independent check of `fe078c6` on native Windows (no Proton), plus one point about the descriptor. **Tests.** Windows 11, RTX 5070 as the default adapter, plus WARP, using `cargo test --locked -p victory-shader -p victory-gpu -- --test-threads=4`: - victory-shader: 123 passed, 0 failed, 1 ignored. - victory-gpu: 53 passed, 0 failed, 1 ignored. That includes `bvh_intersection_matches_the_model_on_the_gpu`, which ran on both the hardware adapter and WARP with neither skipped, and the three `address_map` unit tests. `stub_pipeline_is_created` passes here, which fits it being Proton-only for you. **Offline count.** This used local title data: `victory translate --validate --list` over `shaders.rpf`, SDK 10.0.26100 `dxil.dll`, CPU only, matched program by program against `ffe310e`. - **Your +400 emitted reproduces exactly:** compute 1,441 → 1,772, VS + PS 12,231 → 12,300, mesh unchanged. No program that validated on `ffe310e` is lost. - **11 of the 64 programs containing ray intersections validate,** as you report; on `ffe310e` none of them emits. - **One difference: 96 of the emitted compute programs fail validation with this validator.** All of them fail with `Entry function performs some operation that is incompatible with the shader stage`. That's the implicit-derivative-in-compute case, which the 1.8 validator rejects and newer ones accept. So compute validates 1,676 of 1,772 here, against your 1,772 / 1,772. It's an environment difference, not a defect in the PR, but it's worth stating which `dxil.dll` the table used. Under this validator the gain is +259 compute and +62 pixel programs validated. **Triangle return mode.** The description says "The title's BVH descriptor asks for triangle return mode 0". The code decodes bit 120 (dword 3, bit 24) at run time, so the result format follows whatever the descriptor holds. The evidence I have points to mode 1, though: - In three of the ray-tracing programs I decoded, the descriptor's dword 3 is `0x890003ff`. Bit 24 is set: type 8, return mode 1, big_page set, size all ones. - Leonida's census linked from #274 reports `triangle_return_mode 1` at all 716 intersection sites, with `box_grow 0` and `box_sort_en 1`. If that holds, the unconfirmed mode-0 modelling (id dword plus hit flag) is never reached by the title. How did you arrive at mode 0? A program that builds dword 3 differently would be worth knowing about. For context: I had a separate lowering of the same two instructions written from AMD's GPURT layouts (IP 1.1). I'm not proposing it. Yours models the Xbox leaf format and handles the computed addresses, which mine didn't, and on this pack mine translated none of the 64. AI-assisted (Claude Code). Local title data was used for the offline count only (counts and reasons reported, no names or game files). The title was not run.
Author
Owner

@⁠MartinIndra02 on GitHub · 2026-11-24 17:25 UTC · original

Independent verification at fe078c6 on Windows 11, NVIDIA GeForce RTX 3080 (driver 621.24, 32-32 wave lanes) + WARP, Rust 1.98.1:

  • cargo test -p victory-shader --lib -- --test-threads=1: 123 passed, 0 failed, 1 ignored (including emit::bvh_tests::gpu::bvh_intersection_matches_the_model_on_the_gpu on both RTX 3080 and WARP).
  • cargo test -p victory-gpu --lib -- --test-threads=1: 53 passed, 0 failed, 1 ignored.
  • VICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --lib -- --test-threads=1: 56 passed, 0 failed, 1 ignored (0 debug-layer errors).
  • cargo clippy -p victory-shader -p victory-gpu --all-targets -- -D warnings (default + --features diagnostics): 0 warnings.
  • cargo xtask policy: 159 files ok.
  • Offline full-corpus A/B (victory translate on retail 1.0.2.1, 26,084 programs, release build vs main ffe310e):
    • Vertex & Pixel emitted: 12,231 → 12,300 (+69)
    • Compute emitted: 1,441 → 1,772 (+331)
    • Mesh emitted: 8,214 → 8,214 (0 regressions)
    • Total emitted: 21,886 → 22,286 (+400)

Aggregate counts only; no game data posted. AI-assisted; all builds and GPU tests executed on my machine.

**@⁠MartinIndra02** on GitHub · 2026-11-24 17:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7139177302) Independent verification at `fe078c6` on **Windows 11, NVIDIA GeForce RTX 3080 (driver `621.24`, 32-32 wave lanes) + WARP, Rust `1.98.1`**: - `cargo test -p victory-shader --lib -- --test-threads=1`: **123 passed, 0 failed, 1 ignored** (including `emit::bvh_tests::gpu::bvh_intersection_matches_the_model_on_the_gpu` on both RTX 3080 and WARP). - `cargo test -p victory-gpu --lib -- --test-threads=1`: **53 passed, 0 failed, 1 ignored**. - `VICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --lib -- --test-threads=1`: **56 passed, 0 failed, 1 ignored** (0 debug-layer errors). - `cargo clippy -p victory-shader -p victory-gpu --all-targets -- -D warnings` (default + `--features diagnostics`): **0 warnings**. - `cargo xtask policy`: **159 files ok**. - Offline full-corpus A/B (`victory translate` on retail 1.0.2.1, 26,084 programs, release build vs `main` `ffe310e`): - Vertex & Pixel emitted: `12,231 → 12,300` (**`+69`**) - Compute emitted: `1,441 → 1,772` (**`+331`**) - Mesh emitted: `8,214 → 8,214` (`0` regressions) - **Total emitted:** `21,886 → 22,286` (**`+400`**) *Aggregate counts only; no game data posted. AI-assisted; all builds and GPU tests executed on my machine.*
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:00 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at fe078c6: cargo test -p victory-gpu -p victory-shader passes, 176 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7140017139) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at fe078c6: `cargo test -p victory-gpu -p victory-shader` passes, 176 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠aycow on GitHub · 2026-11-24 18:17 UTC · original

On exact fe078c6 I routed the address-map builder to a native shared backing in an isolated fixture. Original translated scalar/vector reads, stores, atomics, remap recordings and unmapped input passed AMD/NVIDIA/WARP with full GBV. The same native map descriptor route can address either backing.

A separate bounds control failed identically on all three: a dwordx4 starting in an outer map piece returned [31,37,41,43], even though the last three dwords belong to a higher-priority overlapping piece and should be [47,53,59]. The native raw view is large enough, so this is silent host-view-valid misrouting. global_read currently looks up the first address once. The reproducible negative test is enabled by VICTORY_MAP_TEST_OVERLAP in the fixture. I'd like to coordinate the intended cross-piece read and store semantics here before changing lowering.

**@⁠aycow** on GitHub · 2026-11-24 18:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7140438371) On exact fe078c6 I routed the address-map builder to a native shared backing in an isolated fixture. Original translated scalar/vector reads, stores, atomics, remap recordings and unmapped input passed AMD/NVIDIA/WARP with full GBV. The same native map descriptor route can address either backing. A separate bounds control failed identically on all three: a dwordx4 starting in an outer map piece returned [31,37,41,43], even though the last three dwords belong to a higher-priority overlapping piece and should be [47,53,59]. The native raw view is large enough, so this is silent host-view-valid misrouting. `global_read` currently looks up the first address once. The reproducible negative test is enabled by VICTORY_MAP_TEST_OVERLAP in the [fixture](https://github.com/aycow/VIctory/blob/a920242/docs/computed-address-backing.md). I'd like to coordinate the intended cross-piece read and store semantics here before changing lowering.
Author
Owner

@⁠aycow on GitHub · 2026-11-24 18:57 UTC · original

I rechecked the bounds regression on exact ad558cd. The outer view still supplies every component of a cross-piece vector. The expanded reproduction checks overlapping source and destination ranges, a hole, and unaligned/partial atomics. The straight-line candidate resolves each complete dword to the highest-priority piece and passes AMD and WARP with full GBV. NVIDIA RTX 5070 Laptop accepts DXIL validation but rejects native PSO creation with this candidate, both with and without GBV. The exact baseline PSO builds on that device and produces the incorrect overlap readback. An earlier vector/split variant reported 0x8007000E there.

The test branch is available to diagnose the lowering size and driver behavior. It stays separate from #1198 and default-off allocation routing. Do you have a preferred way to represent the next mapped dword compactly in the current straight-line lookup?

**@⁠aycow** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7141383748) I rechecked the bounds regression on exact ad558cd. The outer view still supplies every component of a cross-piece vector. The [expanded reproduction](https://github.com/aycow/VIctory/blob/bcce3da/docs/computed-address-backing.md) checks overlapping source and destination ranges, a hole, and unaligned/partial atomics. The straight-line candidate resolves each complete dword to the highest-priority piece and passes AMD and WARP with full GBV. NVIDIA RTX 5070 Laptop accepts DXIL validation but rejects native PSO creation with this candidate, both with and without GBV. The exact baseline PSO builds on that device and produces the incorrect overlap readback. An earlier vector/split variant reported 0x8007000E there. The test branch is available to diagnose the lowering size and driver behavior. It stays separate from #1198 and default-off allocation routing. Do you have a preferred way to represent the next mapped dword compactly in the current straight-line lookup?
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 19:53 UTC · original

Offline coverage of this branch on the retail shader pack, since the in-tree merge is not cheap to test here.

Method: a clean worktree at bc6479d (this PR's head, on ffe310e), cargo build --release -p victory, then victory translate <shaders.rpf> --validate --list --jobs 20 on the same package and the same Windows SDK validator. Compared program by program (container offset + name) with the same command on ffe310e + #1271, which validates the same 21 724 programs as main alone.

programs validated
main baseline 25 694 21 724
this PR 25 694 22 058

+334 newly validate, 0 newly failing. The largest single-PR coverage gain I have measured on this pack (the combo of #136 + #307 + #566 was 238 fixed and 276 broken).

What the 334 are, by family:

  • CS_RaytracingResolve_* - the RTGI probe resolve, many material variants (standard_pv_v2, standard_clearcoat_flakes, standard_2lyr_roadsign, standard_2lyr_anisotropy, standard_doublesided_dirt, ...);
  • CS_LaserLightShadowRaytracing_* (deferred_tiled);
  • PS_PuddleDetect_*, PS_VehicleLiveryOffOnlyDeferred_NoDeform_* and similar pixel programs that read through the same address paths.

That is precisely the set #1533 names as the reason the 2560x1440 RGBA16F accumulation stays flat: the direct lighting, RTGI resolve and directional shadow passes.

I could not test it in the title here: merging this branch onto the integration tree at 2b1a569 conflicts in 11 files (emit/lower.rs, emit/mod.rs, native.rs, structure.rs, descriptor/host.rs, draw.rs, list.rs, ...), and I will not hand-resolve the translator. If a head exists that carries this on top of the tree, I will run it and report the world numbers.

No game data; counts and program names only.

**@⁠rocobalt1** on GitHub · 2026-11-24 19:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7142734545) Offline coverage of this branch on the retail shader pack, since the in-tree merge is not cheap to test here. **Method:** a clean worktree at `bc6479d` (this PR's head, on `ffe310e`), `cargo build --release -p victory`, then `victory translate <shaders.rpf> --validate --list --jobs 20` on the same package and the same Windows SDK validator. Compared program by program (container offset + name) with the same command on `ffe310e` + #1271, which validates the same 21 724 programs as `main` alone. | | programs | validated | |---|---:|---:| | `main` baseline | 25 694 | 21 724 | | **this PR** | 25 694 | **22 058** | **+334 newly validate, 0 newly failing.** The largest single-PR coverage gain I have measured on this pack (the combo of #136 + #307 + #566 was 238 fixed and 276 broken). What the 334 are, by family: - `CS_RaytracingResolve_*` - the RTGI probe resolve, many material variants (`standard_pv_v2`, `standard_clearcoat_flakes`, `standard_2lyr_roadsign`, `standard_2lyr_anisotropy`, `standard_doublesided_dirt`, ...); - `CS_LaserLightShadowRaytracing_*` (`deferred_tiled`); - `PS_PuddleDetect_*`, `PS_VehicleLiveryOffOnlyDeferred_NoDeform_*` and similar pixel programs that read through the same address paths. That is precisely the set #1533 names as the reason the 2560x1440 RGBA16F accumulation stays flat: the direct lighting, RTGI resolve and directional shadow passes. I could not test it in the title here: merging this branch onto the integration tree at `2b1a569` conflicts in 11 files (`emit/lower.rs`, `emit/mod.rs`, `native.rs`, `structure.rs`, `descriptor/host.rs`, `draw.rs`, `list.rs`, ...), and I will not hand-resolve the translator. If a head exists that carries this on top of the tree, I will run it and report the world numbers. No game data; counts and program names only.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 20:03 UTC · original

One in-title data point for this branch, and why it still cannot be judged in the game from here.

Build: main ffe310e + this branch (bc6479d), plus d6897fa (the 1440x target present fallback) adapted by hand to main's single-texture present - one conflict, in queue.rs, resolved by presenting the candidate instead of the title's first plane's texture. Diag build, fresh VICTORY_DATA_DIR, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_PRESENT_1440P=1, driven with VICTORY_KEYS.

It runs, and the fallback does fire:

VICTORY_PRESENT_1440P: presenting a 2560x1440 world target

but the frame is dominated by the copy path that the tree here does not have:

value
programs refused in the run 424
copies 2 391 - 2 902 ms per frame, 398 - 1 398 MB
frame 3 600 ms (0.3 fps)
time in the world ~30 s, then the device is lost

So on main the gain this branch gives (the +334 programs in my comment above) is invisible: at 0.3 fps with 2.9 s of copying, and with a device removal half a minute in, there is nothing to look at.

That is not a criticism of the branch - it is an argument for landing it on the integration tree, where copying is ~66 ms/frame and a world run lasts 15 minutes. Merging it there conflicts in 11 files (emit/lower.rs, emit/mod.rs, native.rs, structure.rs, descriptor/host.rs, draw.rs, list.rs, emit/host.rs, emit/shader.rs, valu_tests.rs, waterfall_tests.rs), which is more than I am willing to hand-resolve on someone else's translator.

For reference, a public fork that carries the same ray-intersection work (fxceless/victory-gta6, intersect.rs + bvh.rs) renders the prologue with characters, sky and shadows at 1-3 fps on the same card, which is what the tree would look like with this landed.

No game data; counts only.

**@⁠rocobalt1** on GitHub · 2026-11-24 20:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7142970799) One in-title data point for this branch, and why it still cannot be judged in the game from here. **Build:** `main` `ffe310e` + this branch (`bc6479d`), plus `d6897fa` (the 1440x target present fallback) adapted by hand to `main`'s single-texture `present` - one conflict, in `queue.rs`, resolved by presenting the candidate instead of the title's first plane's texture. Diag build, fresh `VICTORY_DATA_DIR`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_PRESENT_1440P=1`, driven with `VICTORY_KEYS`. **It runs, and the fallback does fire:** ``` VICTORY_PRESENT_1440P: presenting a 2560x1440 world target ``` but the frame is dominated by the copy path that the tree here does not have: | | value | |---|---| | programs refused in the run | 424 | | copies | **2 391 - 2 902 ms** per frame, 398 - 1 398 MB | | frame | **3 600 ms** (0.3 fps) | | time in the world | **~30 s**, then the device is lost | So on `main` the gain this branch gives (the +334 programs in my comment above) is invisible: at 0.3 fps with 2.9 s of copying, and with a device removal half a minute in, there is nothing to look at. That is not a criticism of the branch - it is an argument for landing it **on the integration tree**, where copying is ~66 ms/frame and a world run lasts 15 minutes. Merging it there conflicts in 11 files (`emit/lower.rs`, `emit/mod.rs`, `native.rs`, `structure.rs`, `descriptor/host.rs`, `draw.rs`, `list.rs`, `emit/host.rs`, `emit/shader.rs`, `valu_tests.rs`, `waterfall_tests.rs`), which is more than I am willing to hand-resolve on someone else's translator. For reference, a public fork that carries the same ray-intersection work (`fxceless/victory-gta6`, `intersect.rs` + `bvh.rs`) renders the prologue with characters, sky and shadows at 1-3 fps on the same card, which is what the tree would look like with this landed. No game data; counts only.
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 20:03 UTC · original

One in-title data point for this branch, and why it still cannot be judged in the game from here.

Build: main ffe310e + this branch (bc6479d), plus d6897fa (the 1440x target present fallback) adapted by hand to main's single-texture present - one conflict, in queue.rs, resolved by presenting the candidate instead of the title's first plane's texture. Diag build, fresh VICTORY_DATA_DIR, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_PRESENT_1440P=1, driven with VICTORY_KEYS.

It runs, and the fallback does fire:

VICTORY_PRESENT_1440P: presenting a 2560x1440 world target

but the frame is dominated by the copy path that the tree here does not have:

value
programs refused in the run 424
copies 2 391 - 2 902 ms per frame, 398 - 1 398 MB
frame 3 600 ms (0.3 fps)
time in the world ~30 s, then the device is lost

So on main the gain this branch gives (the +334 programs in my comment above) is invisible: at 0.3 fps with 2.9 s of copying, and with a device removal half a minute in, there is nothing to look at.

That is not a criticism of the branch - it is an argument for landing it on the integration tree, where copying is ~66 ms/frame and a world run lasts 15 minutes. Merging it there conflicts in 11 files (emit/lower.rs, emit/mod.rs, native.rs, structure.rs, descriptor/host.rs, draw.rs, list.rs, emit/host.rs, emit/shader.rs, valu_tests.rs, waterfall_tests.rs), which is more than I am willing to hand-resolve on someone else's translator.

For reference, a public fork that carries the same ray-intersection work (fxceless/victory-gta6, intersect.rs + bvh.rs) renders the prologue with characters, sky and shadows at 1-3 fps on the same card, which is what the tree would look like with this landed.

No game data; counts only.

**@⁠rocobalt1** on GitHub · 2026-11-24 20:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7142970799) One in-title data point for this branch, and why it still cannot be judged in the game from here. **Build:** `main` `ffe310e` + this branch (`bc6479d`), plus `d6897fa` (the 1440x target present fallback) adapted by hand to `main`'s single-texture `present` - one conflict, in `queue.rs`, resolved by presenting the candidate instead of the title's first plane's texture. Diag build, fresh `VICTORY_DATA_DIR`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_PRESENT_1440P=1`, driven with `VICTORY_KEYS`. **It runs, and the fallback does fire:** ``` VICTORY_PRESENT_1440P: presenting a 2560x1440 world target ``` but the frame is dominated by the copy path that the tree here does not have: | | value | |---|---| | programs refused in the run | 424 | | copies | **2 391 - 2 902 ms** per frame, 398 - 1 398 MB | | frame | **3 600 ms** (0.3 fps) | | time in the world | **~30 s**, then the device is lost | So on `main` the gain this branch gives (the +334 programs in my comment above) is invisible: at 0.3 fps with 2.9 s of copying, and with a device removal half a minute in, there is nothing to look at. That is not a criticism of the branch - it is an argument for landing it **on the integration tree**, where copying is ~66 ms/frame and a world run lasts 15 minutes. Merging it there conflicts in 11 files (`emit/lower.rs`, `emit/mod.rs`, `native.rs`, `structure.rs`, `descriptor/host.rs`, `draw.rs`, `list.rs`, `emit/host.rs`, `emit/shader.rs`, `valu_tests.rs`, `waterfall_tests.rs`), which is more than I am willing to hand-resolve on someone else's translator. For reference, a public fork that carries the same ray-intersection work (`fxceless/victory-gta6`, `intersect.rs` + `bvh.rs`) renders the prologue with characters, sky and shadows at 1-3 fps on the same card, which is what the tree would look like with this landed. No game data; counts only.
Author
Owner

@⁠wwwwwwww3333333 on GitHub · 2026-11-24 21:51 UTC · original

RX 6750 XT (RDNA2, gfx1031, AMD driver 32.0.21045.29003), Windows 11, Rust 1.98.1 MSVC. At ad558cd and again at bc6479d (both on main ffe310e), emit::bvh_tests::gpu::a_loop_carried_lane_mask_is_tested_per_lane passes on the hardware adapter. On WARP it panics at bvh_tests.rs:688, warp: The parameter is incorrect (E_INVALIDARG from compute_pipeline). The rest of victory-shader passes: 123 passed, 1 failed. victory-gpu passes: 53 passed.

The program is wave32 (vcc_lo, s_ff1_i32_b32), and WARP's lane range is 4..=4. This looks like the same thing #1275 hit and fixed in cdbe178: WARP refuses a WaveSize(32) pipeline. Skipping WARP when compute_pipeline fails there, as that test now does, would leave the hardware check intact. 4767603, pushed since, only changes the scalar descriptor loads in lower.rs. It doesn't touch this test or its WARP path, so I expect the same result there, but I haven't run it.

Unit tests only, no game files. AI-assisted (Claude; I ran it on my machine).

**@⁠wwwwwwww3333333** on GitHub · 2026-11-24 21:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7145471408) RX 6750 XT (RDNA2, gfx1031, AMD driver 32.0.21045.29003), Windows 11, Rust 1.98.1 MSVC. At ad558cd and again at bc6479d (both on main ffe310e), `emit::bvh_tests::gpu::a_loop_carried_lane_mask_is_tested_per_lane` passes on the hardware adapter. On WARP it panics at bvh_tests.rs:688, `warp: The parameter is incorrect` (E_INVALIDARG from `compute_pipeline`). The rest of victory-shader passes: 123 passed, 1 failed. victory-gpu passes: 53 passed. The program is wave32 (`vcc_lo`, `s_ff1_i32_b32`), and WARP's lane range is 4..=4. This looks like the same thing #1275 hit and fixed in cdbe178: WARP refuses a WaveSize(32) pipeline. Skipping WARP when `compute_pipeline` fails there, as that test now does, would leave the hardware check intact. 4767603, pushed since, only changes the scalar descriptor loads in lower.rs. It doesn't touch this test or its WARP path, so I expect the same result there, but I haven't run it. Unit tests only, no game files. AI-assisted (Claude; I ran it on my machine).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:34 UTC · original

Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

comments still cite the SDK's XDXR traversal headers by name (SoftwareBvhIntersectRay, TestXboxBvh4Node, XboxBvh4Node16) in lower/bvh.rs, bvh_tests.rs and docs/architecture.md (rule 2), and main has the BVH instruction and title memory at raw addresses (emit/lower/bvh.rs, Lower::memory, 27c3dc9d).

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/1198#issuecomment-7148656997) Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. comments still cite the SDK's XDXR traversal headers by name (`SoftwareBvhIntersectRay`, `TestXboxBvh4Node`, `XboxBvh4Node16`) in lower/bvh.rs, bvh_tests.rs and docs/architecture.md (rule 2), and main has the BVH instruction and title memory at raw addresses (emit/lower/bvh.rs, Lower::memory, 27c3dc9d). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1198
No description provided.