I've already done this in my branch

On Sat, Apr 7, 2018 at 9:13 AM, Rob Clark <robdcl...@gmail.com> wrote:

> For better or worse, the rest of nir follows the typedef struct pattern.
> So I guess better to be consistent.
>
> Signed-off-by: Rob Clark <robdcl...@gmail.com>
> ---
>  src/compiler/nir/nir_deref.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/compiler/nir/nir_deref.h b/src/compiler/nir/nir_deref.h
> index 7597b777490..b7a9d4b0e63 100644
> --- a/src/compiler/nir/nir_deref.h
> +++ b/src/compiler/nir/nir_deref.h
> @@ -31,7 +31,7 @@
>  extern "C" {
>  #endif
>
> -struct nir_deref_path {
> +typedef struct nir_deref_path {
>     /** Short path so we can keep it on the stack most of the time. */
>     nir_deref_instr *_short_path[7];
>
> @@ -42,7 +42,7 @@ struct nir_deref_path {
>      * element in the array is a NULL pointer which acts as a terminator.
>      */
>     nir_deref_instr **path;
> -};
> +} nir_deref_path;
>
>  void nir_deref_path_init(struct nir_deref_path *path,
>                           nir_deref_instr *deref, void *mem_ctx);
> --
> 2.14.3
>
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to