[Mesa-dev] [PATCH 1/3] nir: Move the undef of nir_intrinsics.h macros to the .h.

Kenneth Graunke kenneth at whitecape.org
Fri Aug 19 00:15:04 UTC 2016


On Saturday, August 6, 2016 12:28:36 AM PDT Eric Anholt wrote:
> I wanted to include this from nir_builder as well, so it also needed the
> undefs.
> ---
>  src/compiler/nir/nir.h            | 3 ---
>  src/compiler/nir/nir_intrinsics.h | 3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
> index 379a5f8e022e..5e527d8add12 100644
> --- a/src/compiler/nir/nir.h
> +++ b/src/compiler/nir/nir.h
> @@ -868,9 +868,6 @@ typedef enum {
>     nir_num_intrinsics = nir_last_intrinsic + 1
>  } nir_intrinsic_op;
>  
> -#undef INTRINSIC
> -#undef LAST_INTRINSIC
> -
>  #define NIR_INTRINSIC_MAX_CONST_INDEX 3
>  
>  /** Represents an intrinsic
> diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h
> index 42c770f15942..d0f7f5db8337 100644
> --- a/src/compiler/nir/nir_intrinsics.h
> +++ b/src/compiler/nir/nir_intrinsics.h
> @@ -405,3 +405,6 @@ STORE(ssbo, 3, 1, WRMASK, xx, xx, 0)
>  STORE(shared, 2, 2, BASE, WRMASK, xx, 0)
>  
>  LAST_INTRINSIC(store_shared)
> +
> +#undef INTRINSIC
> +#undef LAST_INTRINSIC
> 

Patches 1-2 are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160818/0252d72b/attachment.sig>


More information about the mesa-dev mailing list