mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-10 05:20:39 +01:00
radv: Use HPLOC for TLAS builds
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:
parent
a6a62363df
commit
091b43b970
1 changed files with 3 additions and 0 deletions
|
|
@ -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)) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue