gallivm: disable NEON instructions if they are not supported
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 11 Mar 2019 20:18:48 +0000 (21:18 +0100)
committerMatt Turner <mattst88@gmail.com>
Mon, 22 Apr 2019 16:47:49 +0000 (09:47 -0700)
commite983a975c6843c307380d7caa083eee89e02bd3c
treeff16aa491fc4e87c94246a6b577ef31247e45872
parentbc6bfc861fd3484c4cc51f24ccb0bf64239fcfd7
gallivm: disable NEON instructions if they are not supported

The LLVM project made some questionable decisions about defaults for
armv7 (e.g. they enable NEON that is not there on NVIDIA and Marvell
platforms).

On top of that, getHostCPUFeatures() doesn't disable missing machine
attributes. Finally, -neon alone is not sufficient to disable emmision
of NEON instructions.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp