diff options
author | Tobias Droste <[email protected]> | 2016-11-19 02:39:02 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-12-05 14:43:46 +0000 |
commit | b3119a3360824a93e193b326a57f71cda15bc96f (patch) | |
tree | b01b370a1cb1c53265e28fa6d641374b4e499b69 /src/gallium/targets/va/va.sym | |
parent | 44a672ef0ef69afb3b9511fdca1331a360cf281e (diff) |
configure.ac: Check gallium LLVM version in gallium_require_llvm
This moves the LLVM version check to the helper function
gallium_require_llvm() and uses the llvm_check_version_for() helper
instead of open conding the LLVM version check.
gallium_require_llvm is functionally the same as before, because
"enable_gallium_llvm" is only set to "yes" if the host cpu is x86:
if test "x$enable_gallium_llvm" = xauto; then
case "$host_cpu" in
i*86|x86_64|amd64) enable_gallium_llvm=yes;;
esac
fi
This function is also only called now when needed.
Before this patch llvmpipe would call this as soon as LLVM is
installed. Now it only gets called by llvmpipe if gallium
LLVM is actually enabled (i.e. only on x86).
Both reasons mentioned above remove the need to check host cpu
in the gallium_require_llvm function.
Signed-off-by: Tobias Droste <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/targets/va/va.sym')
0 files changed, 0 insertions, 0 deletions