mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
vulkan/runtime: avoid emitting empty build_leaves
Seen in GravityMark. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32835>
This commit is contained in:
parent
2b9b34887e
commit
a224105a26
1 changed files with 3 additions and 0 deletions
|
|
@ -546,6 +546,9 @@ build_leaves(VkCommandBuffer commandBuffer,
|
|||
|
||||
const VkAccelerationStructureBuildRangeInfoKHR *build_range_info = &ppBuildRangeInfos[i][j];
|
||||
|
||||
if (build_range_info->primitiveCount == 0)
|
||||
continue;
|
||||
|
||||
leaf_consts.geom_data = vk_fill_geometry_data(pInfos[i].type, bvh_states[i].leaf_node_count, j, geom, build_range_info);
|
||||
|
||||
disp->CmdPushConstants(commandBuffer, layout,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue