[Mesa-dev] [PATCH 05/26] nir/types: Add a wrapper for count_attribute_slots

Alejandro PiƱeiro apinheiro at igalia.com
Thu Apr 7 07:49:27 UTC 2016


Hi,

I pushed this patch to master. We are using it on our
vertex_attrib_64bit work, and it is easier to have it on master, as we
are rebasing really often.

I talked the other day with Rob Clark, and he was ok with pushing if I
want. So this is a FYI, so you are aware of the pushing.

Thanks

BR

On 03/04/16 01:25, Jason Ekstrand wrote:
>
> This one.  Feel free to push it if you want.
>
> On Mar 26, 2016 9:27 AM, "Rob Clark" <robdclark at gmail.com
> <mailto:robdclark at gmail.com>> wrote:
>
>     On Fri, Mar 25, 2016 at 7:12 PM, Jason Ekstrand
>     <jason at jlekstrand.net <mailto:jason at jlekstrand.net>> wrote:
>     >
>
>     Reviewed-by: Rob Clark <robdclark at gmail.com
>     <mailto:robdclark at gmail.com>>
>
>     > ---
>     >  src/compiler/nir_types.cpp | 7 +++++++
>     >  src/compiler/nir_types.h   | 3 +++
>     >  2 files changed, 10 insertions(+)
>     >
>     > diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
>     > index 3669cfe..70e9cd3 100644
>     > --- a/src/compiler/nir_types.cpp
>     > +++ b/src/compiler/nir_types.cpp
>     > @@ -124,6 +124,13 @@ glsl_get_aoa_size(const struct glsl_type *type)
>     >     return type->arrays_of_arrays_size();
>     >  }
>     >
>     > +unsigned
>     > +glsl_count_attribute_slots(const struct glsl_type *type,
>     > +                           bool vertex_input_slots)
>     > +{
>     > +   return type->count_attribute_slots(vertex_input_slots);
>     > +}
>     > +
>     >  const char *
>     >  glsl_get_struct_elem_name(const struct glsl_type *type,
>     unsigned index)
>     >  {
>     > diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
>     > index 0748783..5efdd85 100644
>     > --- a/src/compiler/nir_types.h
>     > +++ b/src/compiler/nir_types.h
>     > @@ -68,6 +68,9 @@ unsigned glsl_get_length(const struct
>     glsl_type *type);
>     >
>     >  unsigned glsl_get_aoa_size(const struct glsl_type *type);
>     >
>     > +unsigned glsl_count_attribute_slots(const struct glsl_type *type,
>     > +                                    bool vertex_input_slots);
>     > +
>     >  const char *glsl_get_struct_elem_name(const struct glsl_type *type,
>     >                                        unsigned index);
>     >
>     > --
>     > 2.5.0.400.gff86faf
>     >
>     > _______________________________________________
>     > mesa-dev mailing list
>     > mesa-dev at lists.freedesktop.org
>     <mailto:mesa-dev at lists.freedesktop.org>
>     > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list