upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authormarquezini <felipemarquesini10@gmail.com>2026-11-22 05:50:20 -0300
committermarquezini <felipemarquesini10@gmail.com>2026-11-22 05:50:20 -0300
commit68a4073154ad1a5ab2ba8bafc3d48c48f47459f4 (patch)
treeeffceec1bcc694145da8896aef3438567147ba8c /runtime/src/thread_stacks.cpp
parent2aed14455052d973f53a3a986fa2fad77f81b659 (diff)
parent0d61c357656d92334eef97facec1ae4f7b2b60b1 (diff)
Merge main (0d61c35) into runtime/compute-path
Resolved along the lines in #291 (comment by ItsNotRexed, 2026-11-22 08:27): - Default-heap buffers stay in the GPU address arena: a VA is an arena offset, and every buffer's device address is heap_base + VA (upload and readback buffers: device address minus heap_base, as before). - Acceleration structures: a buffer created in RAYTRACING_ACCELERATION_STRUCTURE state on a ray-tracing device stays out of the arena and keeps main's model, its VA being the VkAccelerationStructureKHR's device address, so BLAS addresses in TLAS instance descriptions are what Vulkan reads. It is registered by that VA. BuildRaytracingAccelerationStructure turns build inputs and scratch into heap_base + VA, and the arena gets the build-input usage on ray-tracing devices. Resource keeps one va_ (gpu_va_/buffer_va_ removed). - buffer_at keeps the size& signature; main's only caller (WriteBufferImmediate) is the branch's version, and ExecuteIndirect resolves its buffers by id. - ~Resource keeps arena_release and main's defer_destroy. - Main's split context locks: pipeline registration and heap_base/zero page take resource_mutex_ (prepare looks pipelines up under its shared lock); VulkanPresenter takes resource_mutex_ shared, plus tracker_mutex_ while it records the back buffer's transition. - Standalone device: main's single instance-extension list and DXGI swapchain enable; info.presentation follows the same swapchain/surface condition, so create_window_presenter keeps working. Main's DeferredDeletionQueue, calibrated timestamps and ray-tracing extensions are kept next to the branch's presentation and feature enables. - Command IR: Dispatch and Draw follow main's DebugMarker, ExecuteIndirect and BuildAccelerationStructure in the variant.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions