mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
radv: Use PLOC for TLAS builds
Improves control performance by about 1%. Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26481>
This commit is contained in:
parent
71bd479a7f
commit
719619c477
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ build_config(uint32_t leaf_count, const VkAccelerationStructureBuildGeometryInfo
|
|||
if (leaf_count <= 4)
|
||||
config.internal_type = INTERNAL_BUILD_TYPE_LBVH;
|
||||
else if (build_info->type == VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR)
|
||||
config.internal_type = INTERNAL_BUILD_TYPE_LBVH;
|
||||
config.internal_type = INTERNAL_BUILD_TYPE_PLOC;
|
||||
else if (!(build_info->flags & VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT_KHR) &&
|
||||
!(build_info->flags & VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_UPDATE_BIT_KHR))
|
||||
config.internal_type = INTERNAL_BUILD_TYPE_PLOC;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue