On Sun, Feb 8, 2015 at 2:29 PM, Matt Turner <matts...@gmail.com> wrote:
>> +   case ir_unop_d2b:
>> +      assert(op[0]->type->base_type == GLSL_TYPE_DOUBLE);
>> +      for (unsigned c = 0; c < op[0]->type->components(); c++) {
>> +         data.b[c] = op[0]->value.d[c] != 0.0 ? true : false;
>
> ? true : false is a nop.

Keeping the style... that's how f2b was written. No idea why. Should I
just nuke it?
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to