gallivm: Fix lp_build_sum_vector.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 21 Aug 2010 10:31:22 +0000 (11:31 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Aug 2010 12:26:29 +0000 (13:26 +0100)
commite18c7f68b4a18ba3f9ebfd0a4a24e3528cf44800
treec596d44801474eb8a4fe85668318341486fd9510
parent1bb97610e969918015f46efe6fe32c6c71a8293a
gallivm: Fix lp_build_sum_vector.

The result is scalar, so when argument is zero/undef we can pass vector
zero/undef.

Also, support the scalar case.
src/gallium/auxiliary/gallivm/lp_bld_arit.c