summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_swizzle_swizzle.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-05-08 09:06:36 -0400
committerIlia Mirkin <[email protected]>2014-05-14 09:40:37 -0400
commit04b7e65814cd2174185109d3c55c86eb4134f09b (patch)
treee23cae18955fe62ba1cd77010bf9c94aa3ce5dd4 /src/glsl/opt_swizzle_swizzle.cpp
parent209522070e370d927ede7b4fa60aca57566159f8 (diff)
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 <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/glsl/opt_swizzle_swizzle.cpp')
0 files changed, 0 insertions, 0 deletions