llvmpipe: disable VSX in ppc due to LLVM PPC bug
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 17 Nov 2015 14:16:46 +0000 (16:16 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 18 Nov 2015 19:27:29 +0000 (21:27 +0200)
commit4581f8428e0e1d2f6787d0765823c7883bd2cfcd
treef5395764792752b1f0dc417e551d5b37498277e4
parent8e68113c1a78c48f26e820f4beb2dda9e4b99f32
llvmpipe: disable VSX in ppc due to LLVM PPC bug

This patch disables the use of VSX instructions, as they cause some
piglit tests to fail

For more details, see: https://llvm.org/bugs/show_bug.cgi?id=25503#c7

With this patch, ppc64le reaches parity with x86-64 as far as piglit test
suite is concerned.

v2:
- Added check that we have at least LLVM 3.4
- Added the LLVM bug URL as a comment in the code

v3:

- Only disable VSX if Altivec is supported, because if Altivec support
is missing, then VSX support doesn't exist anyway.

- Change original patch description.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp