From c2c48db6a4b1afc854aa46b59f7c5ec9c7faa570 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Sun, 19 Jan 2025 19:32:47 -0500 Subject: [PATCH] vk/bvh: Fix clang build error with turnip Make sure that struct vk_bvh_geometry_data is defined before vk_fill_geometry_data(), to fix this error: In file included from ../src/freedreno/vulkan/tu_acceleration_structure.cc:29: ../src/vulkan/runtime/vk_acceleration_structure.h:138:1: error: 'vk_fill_geometry_data' has C-linkage specified, but returns incomplete type 'struct vk_bvh_geometry_data' which could be incompatible with C [-Werror,-Wreturn-type-c-linkage] Part-of: --- src/vulkan/runtime/vk_acceleration_structure.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/runtime/vk_acceleration_structure.h b/src/vulkan/runtime/vk_acceleration_structure.h index 3893377a8eb..f83fe11689b 100644 --- a/src/vulkan/runtime/vk_acceleration_structure.h +++ b/src/vulkan/runtime/vk_acceleration_structure.h @@ -28,6 +28,8 @@ #include "vk_object.h" #include "radix_sort/radix_sort_vk.h" +#include "bvh/vk_bvh.h" + #ifdef __cplusplus extern "C" { #endif