diff options
author | Paul Berry <[email protected]> | 2012-04-27 07:40:34 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-05-10 10:30:00 -0700 |
commit | 434fc8bde41f07687ad8941ceba03c4b3e0e75bb (patch) | |
tree | 4ef8732c92f158d0a9f4f2fe0955e01f95ab31d7 /src/mesa/drivers/dri/i965 | |
parent | b0bb125736fd29dbad6cfa8d4de0c44eaf5e28ad (diff) |
intel: Add extern "C" declarations to headers
These declarations are necessary to allow C++ code to call C code
without causing unresolved symbols (which would make the driver fail
to load).
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state.h | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_hiz.h | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_hiz.h | 8 |
5 files changed, 39 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 47f56e21f5d..141fb658d71 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -37,6 +37,9 @@ #include "brw_structs.h" #include "main/imports.h" +#ifdef __cplusplus +extern "C" { +#endif /* Glossary: * @@ -1188,4 +1191,8 @@ brw_program_reloc(struct brw_context *brw, uint32_t state_offset, bool brw_do_cubemap_normalize(struct exec_list *instructions); +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index c4c62b2bf4a..675b50a1456 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -38,6 +38,10 @@ #include "brw_defines.h" #include "program/prog_instruction.h" +#ifdef __cplusplus +extern "C" { +#endif + #define BRW_SWIZZLE4(a,b,c,d) (((a)<<0) | ((b)<<2) | ((c)<<4) | ((d)<<6)) #define BRW_GET_SWZ(swz, idx) (((swz) >> ((idx)*2)) & 0x3) @@ -1107,4 +1111,8 @@ void brw_optimize(struct brw_compile *p); void brw_remove_duplicate_mrf_moves(struct brw_compile *p); void brw_remove_grf_to_mrf_moves(struct brw_compile *p); +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 8a0e92fab08..659cb0a2898 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -35,6 +35,10 @@ #include "brw_context.h" +#ifdef __cplusplus +extern "C" { +#endif + extern const struct brw_tracked_state brw_blend_constant_color; extern const struct brw_tracked_state brw_cc_vp; extern const struct brw_tracked_state brw_cc_unit; @@ -208,4 +212,8 @@ uint32_t get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset, int fs_attr, bool two_side_color); +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/mesa/drivers/dri/i965/gen6_hiz.h b/src/mesa/drivers/dri/i965/gen6_hiz.h index 0a13ba076ac..5d6eefc2d64 100644 --- a/src/mesa/drivers/dri/i965/gen6_hiz.h +++ b/src/mesa/drivers/dri/i965/gen6_hiz.h @@ -25,6 +25,10 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + struct intel_context; struct intel_mipmap_tree; @@ -77,3 +81,7 @@ gen6_resolve_depth_slice(struct intel_context *intel, struct intel_mipmap_tree *mt, uint32_t level, uint32_t layer); + +#ifdef __cplusplus +} +#endif diff --git a/src/mesa/drivers/dri/i965/gen7_hiz.h b/src/mesa/drivers/dri/i965/gen7_hiz.h index b89ffb00711..6c0fc84eca1 100644 --- a/src/mesa/drivers/dri/i965/gen7_hiz.h +++ b/src/mesa/drivers/dri/i965/gen7_hiz.h @@ -25,6 +25,10 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + struct intel_context; struct intel_mipmap_tree; @@ -41,3 +45,7 @@ gen7_resolve_depth_slice(struct intel_context *intel, struct intel_mipmap_tree *mt, uint32_t level, uint32_t layer); + +#ifdef __cplusplus +} +#endif |