diff options
| author | Filippe Faria <138038594+bronze-ff@users.noreply.github.com> | 2026-11-23 16:37:56 -0300 |
|---|---|---|
| committer | Filippe Faria <138038594+bronze-ff@users.noreply.github.com> | 2026-11-23 16:37:56 -0300 |
| commit | 224fc74f5c9d990ca5e7b1a38532b004b2dff694 (patch) | |
| tree | dd43ae99a409c94f767d1543c991c458284f39a7 /runtime/src/vulkan_aftermath.cpp | |
| parent | 867d922f09b86583859796a174df89555fb32da8 (diff) | |
d3d12: stage ARRAY_OF_POINTERS instances whose upload VA wraps below the arena
Without Resizable BAR, UPLOAD buffers live in system memory, outside the GPU
address arena. Their VA is (device address - arena base), which wraps when
the buffer's device address lies below the arena's. stage_khr_instances
refused such an entry as an overflow (va > UINT64_MAX - heap_base), so the
whole TLAS build list failed with "invalid copy or resolve" and nothing was
submitted. The unsigned sum heap_base + va wraps back to the buffer's device
address, as the replay's other VA translations already rely on.
Measured on an RTX 5060 (NVIDIA 621.14) on a board without Resizable BAR:
d3d12_indirect_rt failed with "RayQueryKHR ARRAY expected hit=1 miss=0, got
hit=0 miss=0" on every run; LEONIDA_ARENA_LOG=1 shows the upload buffers at
VA 0xfffffffffe07xxxx. Adds d3d12_indirect_rt_upload_sysmem, which runs the
same test with LEONIDA_UPLOAD_SYSMEM=1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions