mesa/st: provide native integers implementation of ir_unop_any
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 8 May 2014 13:06:36 +0000 (09:06 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 14 May 2014 13:40:37 +0000 (09:40 -0400)
commit04b7e65814cd2174185109d3c55c86eb4134f09b
treee23cae18955fe62ba1cd77010bf9c94aa3ce5dd4
parent209522070e370d927ede7b4fa60aca57566159f8
mesa/st: provide native integers implementation of ir_unop_any

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/~0 format, and the final SNE can also be avoided.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp