gallivm: Refactor lp_build_broadcast(_scalar) to share code.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Jun 2012 17:07:10 +0000 (18:07 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Jun 2012 19:20:34 +0000 (20:20 +0100)
commit638779e44555b3c3789638a95693357cf59f5595
tree835d123d856ec84c2176a958e503155f5916e370
parentbf679ce1dcc9cb90bb0092a550a03ad391f6ba72
gallivm: Refactor lp_build_broadcast(_scalar) to share code.

Doesn't really change the generated assembly, but produces more compact IR,
and of course, makes code more consistent.

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