gallivm: Use bitmasks for scalar masks.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 11 Mar 2010 15:36:51 +0000 (15:36 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 11 Mar 2010 15:42:41 +0000 (15:42 +0000)
commite24e5324ed1adce8da8ff268f7047ad8172bb248
treea674998f05fa3005a60bce58c1fd0818798a7c1c
parent99f11f653012e8e18502cb0f5cce3cd1e0643c23
gallivm: Use bitmasks for scalar masks.

We could use single 1 bit conditions for scalar masks, but a lot of code
expects masks. The compiler easily optimzes away masks
extensions/truncations so consistency is preferable.

We can revisit this when LLVM backends have more support for vector
conditions.
src/gallium/auxiliary/gallivm/lp_bld_logic.c