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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28447>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user