Skip to content

vulkan/runtime: Add a shared framework for BVH building

Connor Abbott requested to merge cwabbott0/mesa:review/vulkan-rt into main

This adapts the driver-agnostic parts of the radv BVH building code into common code. Turnip will be the first user, in a following MR, and we should also convert radv.

This doesn't handle saving/restoring state, and as a result it doesn't provide a generic VkCmdBuildAccelerationStructuresKHR. Drivers are expected to save/restore state and call vk_cmd_build_acceleration_structures themselves. Drivers may also want to add markers for performance tools to consume. Because the only state trashed is the compute shader and push constants, this should be relatively easy for drivers to handle.

Merge request reports