mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
gallium: Restore VSX for llvm >= 4
Accidentally dropped in4fdd455eeb. Fixes:4fdd455e("gallium: Require LLVM >= 3.4) Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
2efc804892
commit
5a9dec7534
1 changed files with 14 additions and 0 deletions
|
|
@ -410,6 +410,20 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
|||
if (util_cpu_caps.has_altivec) {
|
||||
MAttrs.push_back("-vsx");
|
||||
}
|
||||
#else
|
||||
/*
|
||||
* Bug 25503 is fixed, by the same fix that fixed
|
||||
* bug 26775, in versions of LLVM later than 3.8 (starting with 3.8.1).
|
||||
* BZ 33531 actually comprises more than one bug, all of
|
||||
* which are fixed in LLVM 4.0.
|
||||
*
|
||||
* With LLVM 4.0 or higher:
|
||||
* Make sure VSX instructions are ENABLED (if supported), unless
|
||||
* VSX instructions are explicitly enabled/disabled via GALLIVM_VSX=1 or 0.
|
||||
*/
|
||||
if (util_cpu_caps.has_altivec) {
|
||||
MAttrs.push_back(util_cpu_caps.has_vsx ? "+vsx" : "-vsx");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue