agx: Wrap compiler header in extern "C"

So we can use it from GTest.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig
2022-04-12 18:06:12 -04:00
parent f0a973081f
commit 43c701424b

View File

@@ -33,6 +33,10 @@
#include "agx_opcodes.h" #include "agx_opcodes.h"
#include "agx_minifloat.h" #include "agx_minifloat.h"
#ifdef __cplusplus
extern "C" {
#endif
enum agx_dbg { enum agx_dbg {
AGX_DBG_MSGS = BITFIELD_BIT(0), AGX_DBG_MSGS = BITFIELD_BIT(0),
AGX_DBG_SHADERS = BITFIELD_BIT(1), AGX_DBG_SHADERS = BITFIELD_BIT(1),
@@ -666,4 +670,8 @@ unsigned agx_write_registers(agx_instr *I, unsigned d);
void agx_compute_liveness(agx_context *ctx); void agx_compute_liveness(agx_context *ctx);
void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I); void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I);
#ifdef __cplusplus
} /* extern C */
#endif
#endif #endif