D3D12.X & GPU: raytracing SRVs, 64-bit multi-window BVH traversal, and title-list BVH builder slots #26
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!26
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/26/head"
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?
@raylitebull on GitHub · 2026-11-22 00:22 UTC · original
raylitebull:raytracing-dxr→main· +386 −18 · 12 files · 1 commits · merged 2026-11-22 10:15 UTCSummary
Improves inline raytracing / BVH readiness on default title command lists and multi-window UMA without guessing unverified DXR 1.0 console vtable slots:
gpu/desc.rs,hle/d3d12x/real.rs,console_heap.rs):desc::bvh_words(address, box_sort)to encode the 4-dword RDNA2 BVH SRSRC (w[3] >> 28 < 8soCopyDescriptorsleaves it verbatim instead of renumbering it as a T# image).dev_create_srv_xto handleD3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE(pResource == NULL,Location == console VA) directly rather than forwarding a console VA to PC and zeroing the console slot.image_bvh64_intersect_ray& AABB edge cases (gpu/recomp/emit.rs,gpu/bvh.rs):image_bvh64_intersect_rayto use bothvaddr[0]andvaddr[1]with the 48-bit BVH base address when selecting the UMA memory window ((uint)(addr >> 32)), so BVH nodes in windows 1-3 (including sparse title memory) resolve cleanly.o == mn/o == mxwithd == 0,inv == ±infcausing0 * inf = NaN) and rejectedNaN-disabled / inverted (mn > mx) child boxes in both HLSLbvh_intersectand CPUbvh::intersect_node.bvh::prebuild_size(matchingXboxBvhBuilder.dll) andbvh::is_compressed_header.XboxBvhBuilder.dll(hle/d3d12x/real.rs,bind.rs,list_x.rs):#146(global UAV barrier) and#148(AllocateUploadMemoryin UMA, freed on allocator reset) into defaulttitle_listcommand lists, and sized extended vtables to cover the highest slot inconsole_slots/console_remap.CheckFeatureSupport(D3D12_OPTIONS5)reporting (config.rs,real.rs,null.rs):raytracingconfig option (auto,tier1_1,tier1_0,off;XCL_RAYTRACINGoverrides) and one-time logging of the reportedRaytracingTier.Testing
cargo test --workspace -- --test-threads=4: all unit, GPU recompiler, andxcl_testtitlee2e checks pass.desc::bvh_words, console-heap BVH descriptor copies,bvh::prebuild_size/is_compressed_header, grazing rays & NaN/inverted boxes, andparse_raytracing_tier.gpu_bvh64_intersect_ray_across_memory_windows_and_grazing(2 UMA windows above 4 GiB).testtitlee2e checkgpu::raytracing_surfacecoveringOPTIONS5(12 B and 16 B probes),RAYTRACING_ACCELERATION_STRUCTURESRV descriptor output, and#148/#146on a default title list.github-bot referenced this pull request2026-11-26 04:40:59 +00:00
github-bot referenced this pull request2026-11-26 05:05:54 +00:00