radv: Use HPLOC for TLAS builds
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

The BVH quality is comparable to PLOC but the build is much faster.

Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39116>
This commit is contained in:
Konstantin Seurer 2025-12-31 20:01:01 +01:00
parent a6a62363df
commit 091b43b970

View file

@ -287,6 +287,9 @@ radv_get_build_config(VkDevice _device, struct vk_acceleration_structure_build_s
VkGeometryTypeKHR geometry_type = vk_get_as_geometry_type(state->build_info);
if (state->build_info->type == VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR)
state->config.internal_type = VK_INTERNAL_BUILD_TYPE_HPLOC;
uint32_t encode_key = 0;
if (radv_use_bvh8(pdev)) {
/*