gallivm: Detect VSX separately from Altivec
authorVicki Pfau <vi@endrift.com>
Sun, 19 Aug 2018 21:17:01 +0000 (14:17 -0700)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 30 Aug 2018 04:09:49 +0000 (06:09 +0200)
commit8c0e3f3822f294c6146e41170f0ef3e3a91770f5
tree2bd0896b22dacacf8999e52b1ada06406581cd1f
parent3e04c67950fe3edcabedc72516de63c5c20510e2
gallivm: Detect VSX separately from Altivec

Previously gallivm would attempt to use VSX instructions on all systems
where it detected that Altivec is supported; however, VSX was added to
POWER long after Altivec, causing lots of crashes on older POWER/PPC
hardware, e.g. PPC Macs. By detecting VSX separately from Altivec we can
automatically disable it on hardware that supports Altivec but not VSX

Signed-off-by: Vicki Pfau <vi@endrift.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/util/u_cpu_detect.c
src/gallium/auxiliary/util/u_cpu_detect.h