We'd like to include some of these in C++ code later.
Specifically, ACO is written in C++ and we would like to use
some of this code in ACO in order to avoid code duplication.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
#define AC_MAX_WAVES_PER_CHIP (64 * 40)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct ac_wave_info {
unsigned se; /* shader engine */
unsigned sh; /* shader array */
unsigned ac_get_wave_info(enum chip_class chip_class,
struct ac_wave_info waves[AC_MAX_WAVES_PER_CHIP]);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "util/u_dynarray.h"
#include "compiler/shader_enums.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct ac_rtld_part;
struct ac_shader_config;
struct radeon_info;
bool ac_rtld_upload(struct ac_rtld_upload_info *u);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* AC_RTLD_H */
#include "ac_binary.h"
#include "compiler/nir/nir.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum ac_image_dim {
ac_image_1d,
ac_image_2d,
signed char *face_vgpr_index,
signed char *ancillary_vgpr_index);
+#ifdef __cplusplus
+}
+#endif
+
#endif