[Mesa-dev] [PATCH 1/5] i965/nir: Remove the prog parameter from brw_nir_lower_inputs

Jason Ekstrand jason at jlekstrand.net
Fri Oct 2 21:19:35 PDT 2015


On Oct 2, 2015 8:51 PM, "Kenneth Graunke" <kenneth at whitecape.org> wrote:
>
> On Friday, October 02, 2015 07:48:47 PM Jason Ekstrand wrote:
> > ---
> >  src/mesa/drivers/dri/i965/brw_nir.c | 6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/brw_nir.c
b/src/mesa/drivers/dri/i965/brw_nir.c
> > index cc9430c..4f19655 100644
> > --- a/src/mesa/drivers/dri/i965/brw_nir.c
> > +++ b/src/mesa/drivers/dri/i965/brw_nir.c
> > @@ -28,9 +28,7 @@
> >  #include "program/prog_to_nir.h"
> >
> >  static void
> > -brw_nir_lower_inputs(nir_shader *nir,
> > -                     const struct gl_program *prog,
> > -                     bool is_scalar)
> > +brw_nir_lower_inputs(nir_shader *nir, bool is_scalar)
> >  {
> >     nir_assign_var_locations(&nir->inputs, &nir->num_inputs,
> >                              is_scalar ? type_size_scalar :
type_size_vec4);
> > @@ -141,7 +139,7 @@ brw_create_nir(struct brw_context *brw,
> >     /* Get rid of split copies */
> >     nir_optimize(nir, is_scalar);
> >
> > -   brw_nir_lower_inputs(nir, prog, is_scalar);
> > +   brw_nir_lower_inputs(nir, is_scalar);
> >     brw_nir_lower_outputs(nir, is_scalar);
> >     nir_assign_var_locations(&nir->uniforms,
> >                              &nir->num_uniforms,
> >
>
> This is actually used in by pending patch series.  But it looks like
> everything I need is in nir_shader_info, so I should be able to rebase
> onto this without much trouble.
>
> Series is:
> Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

Thanks!  One more step away from tyranny. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151002/fe2f8954/attachment.html>


More information about the mesa-dev mailing list