diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-04-19 10:13:02 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-04-19 10:13:19 +0100 |
commit | dbb690872eb0f3578880bbf8e58b8816078f912c (patch) | |
tree | d27340e636302c3fef2a16cae21c71b76b1ff4d1 | |
parent | e87015f5089a2c4a99e0288e1adeeabb5a7ca7e3 (diff) |
gallivm: Fix half floats with MCJIT.
Prevents:
LLVM ERROR: Cannot select: intrinsic %llvm.x86.vcvtph2ps.128
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index c51279556b..024819ece1 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -276,6 +276,9 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, * add set this attribute. */ MAttrs.push_back("+avx"); + if (util_cpu_caps.has_f16c) { + MAttrs.push_back("+f16c"); + } builder.setMAttrs(MAttrs); } builder.setJITMemoryManager(JITMemoryManager::CreateDefaultMemManager()); |