<p dir="ltr"><br>
On Nov 23, 2015 20:50, "Matt Turner" <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br>
><br>
> On Mon, Nov 23, 2015 at 6:11 PM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> > This matches what we're already doing for inputs and outputs<br>
> > ---<br>
> > src/mesa/drivers/dri/i965/brw_nir.c | 9 +++++++++<br>
> > 1 file changed, 9 insertions(+)<br>
> ><br>
> > diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c<br>
> > index 91358d8..e602df7 100644<br>
> > --- a/src/mesa/drivers/dri/i965/brw_nir.c<br>
> > +++ b/src/mesa/drivers/dri/i965/brw_nir.c<br>
> > @@ -171,6 +171,14 @@ brw_nir_lower_outputs(nir_shader *nir, bool is_scalar)<br>
> > }<br>
> > }<br>
> ><br>
> > +static void<br>
> > +brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar)<br>
> > +{<br>
> > + nir_assign_var_locations(&nir->uniforms,<br>
> > + &nir->num_uniforms,<br>
> > + is_scalar ? type_size_scalar : type_size_vec4);<br>
> > +}<br>
> > +<br>
> > static bool<br>
> > should_clone_nir()<br>
> > {<br>
> > @@ -298,6 +306,7 @@ brw_lower_nir(nir_shader *nir,<br>
> ><br>
> > OPT_V(brw_nir_lower_inputs, devinfo, is_scalar);<br>
> > OPT_V(brw_nir_lower_outputs, is_scalar);<br>
> > + OPT_V(brw_nir_lower_uniforms, is_scalar);<br>
> > nir_assign_var_locations(&nir->uniforms,<br>
> > &nir->num_uniforms,<br>
> > is_scalar ? type_size_scalar : type_size_vec4);<br>
><br>
> Did you mean to delete this?</p>
<p dir="ltr">Yes, yes I did. I'll get that fixed.</p>