gallivm: optimize SoA AoS fallback fetch path a little
authorRoland Scheidegger <sroland@vmware.com>
Wed, 21 Dec 2016 03:23:55 +0000 (04:23 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 21 Dec 2016 03:48:24 +0000 (04:48 +0100)
commit5b950319ced820ee112f38f69b5694179c15815d
treec928ec2483c738d987140c9766b9dcc8778a127f
parentd7d23aee4b41de64781fe249ca9a99a9166b097d
gallivm: optimize SoA AoS fallback fetch path a little

We should do transpose, not extract/insert, at least with "sufficient" amount
of channels (for 4 channels, extract/insert shuffles generated otherwise look
truly terrifying). Albeit we shouldn't fallback to that so often in any case.
v2: ditch the extract/insert path, not worth keeping (we're going to avoid
hitting the fallback that often with future patches).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c