<p dir="ltr"><br>
On Dec 16, 2014 10:10 AM, "Connor Abbott" <<a href="mailto:cwabbott0@gmail.com">cwabbott0@gmail.com</a>> wrote:<br>
><br>
> On Tue, Dec 16, 2014 at 1:04 AM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> > ---<br>
> > src/glsl/nir/nir_opcodes.h | 6 +++---<br>
> > src/glsl/nir/nir_opt_copy_propagate.c | 2 +-<br>
> > 2 files changed, 4 insertions(+), 4 deletions(-)<br>
> ><br>
> > diff --git a/src/glsl/nir/nir_opcodes.h b/src/glsl/nir/nir_opcodes.h<br>
> > index 36a50d7..bee4bd1 100644<br>
> > --- a/src/glsl/nir/nir_opcodes.h<br>
> > +++ b/src/glsl/nir/nir_opcodes.h<br>
> > @@ -186,7 +186,7 @@ BINOP(isub, nir_type_int)<br>
> > BINOP(fmul, nir_type_float)<br>
> > BINOP(imul, nir_type_int) /* low 32-bits of signed/unsigned integer multiply */<br>
> > BINOP(imul_high, nir_type_int) /* high 32-bits of signed integer multiply */<br>
> > -BINOP(umul_high, nir_type_int) /* high 32-bits of unsigned integer multiply */<br>
> > +BINOP(umul_high, nir_type_unsigned) /* high 32-bits of unsigned integer multiply */<br>
> ><br>
> > BINOP(fdiv, nir_type_float)<br>
> > BINOP(idiv, nir_type_int)<br>
> > @@ -223,8 +223,8 @@ BINOP_COMPARE(ilt, nir_type_int)<br>
> > BINOP_COMPARE(ige, nir_type_int)<br>
> > BINOP_COMPARE(ieq, nir_type_int)<br>
> > BINOP_COMPARE(ine, nir_type_int)<br>
> > -BINOP_COMPARE(ult, nir_type_int)<br>
> > -BINOP_COMPARE(uge, nir_type_int)<br>
> > +BINOP_COMPARE(ult, nir_type_unsigned)<br>
> > +BINOP_COMPARE(uge, nir_type_unsigned)<br>
> ><br>
> > /** integer-aware GLSL-style comparisons that compare floats and ints */<br>
> > BINOP_REDUCE(ball_fequal, 1, nir_type_bool, nir_type_float)<br>
> > diff --git a/src/glsl/nir/nir_opt_copy_propagate.c b/src/glsl/nir/nir_opt_copy_propagate.c<br>
> > index a2be047..b710181 100644<br>
> > --- a/src/glsl/nir/nir_opt_copy_propagate.c<br>
> > +++ b/src/glsl/nir/nir_opt_copy_propagate.c<br>
> > @@ -61,7 +61,7 @@ is_swizzleless_move(nir_alu_instr *instr)<br>
> ><br>
> > for (unsigned i = 0; i < 4; i++) {<br>
> > if (!((instr->dest.write_mask >> i) & 1))<br>
> > - break;<br>
> > + continue;<br>
><br>
><br>
> This one isn't a typo... we know the destination is SSA here, so if<br>
> the i'th bit of the writemask is false, then all higher bits must be<br>
> false too. That being said, we could just replace the whole loop with<br>
> something like:</p>
<p dir="ltr">Yeah, you pointed that out before. Since the commit message is explicitly about typos, I'll just kill this hunk for now.</p>
<p dir="ltr">><br>
> for (unsigned i = 0; i < instr->dest.dest.ssa.num_components; i++) {<br>
> if (instr->src[0].swizzle[i] != i)<br>
> return false;<br>
> }<br>
><br>
> > if (instr->src[0].swizzle[i] != i)<br>
> > return false;<br>
> > }<br>
> > --<br>
> > 2.2.0<br>
> ><br>
> > _______________________________________________<br>
> > mesa-dev mailing list<br>
> > <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>