Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7807>
#include "util/u_suballoc.h"
#include "util/u_threaded_context.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if UTIL_ARCH_BIG_ENDIAN
#define SI_BIG_ENDIAN 1
#else
struct pb_buffer *imported_buf,
bool dedicated);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "radeon/radeon_winsys.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SI_PM4_MAX_DW 176
// forward defines
void si_pm4_emit(struct si_context *sctx, struct si_pm4_state *state);
void si_pm4_reset_emitted(struct si_context *sctx, bool first_cs);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// Use LDS symbols when supported by LLVM. Can be disabled for testing the old
// path on newer LLVM for now. Should be removed in the long term.
#define USE_LDS_SYMBOLS (true)
return selector ? selector->info.uses_bindless_images : false;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "si_pm4.h"
#include "util/u_blitter.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SI_NUM_GRAPHICS_SHADERS (PIPE_SHADER_TESS_EVAL + 1)
#define SI_NUM_SHADERS (PIPE_SHADER_COMPUTE + 1)
return SI_NUM_IMAGE_SLOTS - 1 - slot;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif