gallivm: Emit vector selects.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 19 Apr 2013 13:04:15 +0000 (14:04 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 20 Apr 2013 22:25:36 +0000 (23:25 +0100)
commit1e266c7ef01251ecf72347a2ba1d174b035cbe3b
treefdb521772c6fc645b48045a562757a9035a4ad3b
parent26b39df08f480b3f1d71608ef3c2b56b8be94f3e
gallivm: Emit vector selects.

They are supported on LLVM 3.1, at least on x86. (I haven't tested on PPC
though.)

Actually lp_build_linear_mip_levels() already has been emitting them for
some time.

This avoids intrinsics, which tend to be an obstacle for certain
optimization passes.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_logic.c