[Mesa-dev] [PATCH 06/18] intel/common/gen_decoder: make useable from C++ source

Rogovin, Kevin kevin.rogovin at intel.com
Mon Nov 13 13:58:24 UTC 2017


Hi,

Oh MY! I missed that it was added to the driver (because miraculously the patch applied cleanly anyway).

Thanks, I will drop this patch if I make a v3.

-Kevin

-----Original Message-----
From: Landwerlin, Lionel G 
Sent: Monday, November 13, 2017 3:45 PM
To: Rogovin, Kevin <kevin.rogovin at intel.com>; mesa-dev at lists.freedesktop.org
Subject: Re: [Mesa-dev] [PATCH 06/18] intel/common/gen_decoder: make useable from C++ source

On 13/11/17 13:17, kevin.rogovin at intel.com wrote:
> From: Kevin Rogovin <kevin.rogovin at intel.com>
>
> Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
> ---
>   src/intel/common/gen_decoder.h | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/src/intel/common/gen_decoder.h 
> b/src/intel/common/gen_decoder.h index 8b00b6edc2..e3b2457dfd 100644
> --- a/src/intel/common/gen_decoder.h
> +++ b/src/intel/common/gen_decoder.h
> @@ -34,6 +34,10 @@
>   extern "C" {
>   #endif

The line above shows you can drop this patch.

>   
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>   struct gen_spec;
>   struct gen_group;
>   struct gen_field;
> @@ -185,6 +189,9 @@ void gen_print_group(FILE *out,
>                        struct gen_group *group,
>                        uint64_t offset, const uint32_t *p,
>                        bool color);
> +#ifdef __cplusplus
> +}
> +#endif
>   
>   #ifdef __cplusplus
>   }




More information about the mesa-dev mailing list