Re: [Mesa-dev] [PATCH] mesa/st: provide native integers implementation of ir_unop_any

2014-05-08 Thread Marek Olšák
This looks good to me. Marek On Thu, May 8, 2014 at 3:18 PM, Ilia Mirkin wrote: > Previously, ir_unop_any was implemented via a dot-product call, which > uses floating point multiplication and addition. The multiplication was > completely pointless, and the addition can just as well be done with

Re: [Mesa-dev] [PATCH] mesa/st: provide native integers implementation of ir_unop_any

2014-05-08 Thread Roland Scheidegger
Am 08.05.2014 15:18, schrieb Ilia Mirkin: > Previously, ir_unop_any was implemented via a dot-product call, which > uses floating point multiplication and addition. The multiplication was > completely pointless, and the addition can just as well be done with an > or. Since we know that the inputs a

[Mesa-dev] [PATCH] mesa/st: provide native integers implementation of ir_unop_any

2014-05-08 Thread Ilia Mirkin
Previously, ir_unop_any was implemented via a dot-product call, which uses floating point multiplication and addition. The multiplication was completely pointless, and the addition can just as well be done with an or. Since we know that the inputs are booleans, they must already be in canonical 0/~