gallivm/ppc64le: allow environmental control of Altivec code generation
authorBen Crocker <bcrocker@redhat.com>
Thu, 28 Sep 2017 18:09:13 +0000 (14:09 -0400)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 5 Oct 2017 00:14:14 +0000 (02:14 +0200)
commit1359af930ee5baf8444b0acc3d55b1e5e1a3879e
treeb0c8a94ecb34a929d341b5a6ce391748e5cfffd5
parente93f056a4e5babde516c9ef53ae3547f68f1b824
gallivm/ppc64le: allow environmental control of Altivec code generation

In check_os_altivec_support(), allow control of Altivec (first PPC vector
instruction set) code generation via a new environmental control,
GALLIVM_ALTIVEC, which is expected to take on a value of 1 or 0.
The default is to enable Altivec code generation.

This environmental control of Altivec code generation is initially
available only #ifdef DEBUG.

Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ben Crocker <bcrocker@redhat.com>
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_cpu_detect.c