From 1510b97c70bfe3437791ce4058a1880b925a9239 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Mon, 13 Mar 2023 14:52:44 +0100 Subject: [PATCH] ir3: C++-proofing Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/ir3/ir3_compiler.h | 4 ++++ src/freedreno/ir3/ir3_nir.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h index 3d45a37..510d268 100644 --- a/src/freedreno/ir3/ir3_compiler.h +++ b/src/freedreno/ir3/ir3_compiler.h @@ -35,6 +35,8 @@ #include "ir3.h" +BEGINC; + struct ir3_ra_reg_set; struct ir3_shader; @@ -328,4 +330,6 @@ ir3_debug_print(struct ir3 *ir, const char *when) } } +ENDC; + #endif /* IR3_COMPILER_H_ */ diff --git a/src/freedreno/ir3/ir3_nir.h b/src/freedreno/ir3/ir3_nir.h index 033cf1a..3214648 100644 --- a/src/freedreno/ir3/ir3_nir.h +++ b/src/freedreno/ir3/ir3_nir.h @@ -33,6 +33,8 @@ #include "ir3_shader.h" +BEGINC; + bool ir3_nir_apply_trig_workarounds(nir_shader *shader); bool ir3_nir_lower_imul(nir_shader *shader); bool ir3_nir_lower_io_offsets(nir_shader *shader); @@ -131,4 +133,6 @@ is_intrinsic_load(nir_intrinsic_op op) } } +ENDC; + #endif /* IR3_NIR_H_ */ -- 2.7.4