From: José Fonseca Date: Fri, 19 Apr 2013 09:13:02 +0000 (+0100) Subject: gallivm: Fix half floats with MCJIT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbb690872eb0f3578880bbf8e58b8816078f912c;p=mesa.git gallivm: Fix half floats with MCJIT. Prevents: LLVM ERROR: Cannot select: intrinsic %llvm.x86.vcvtph2ps.128 --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index c51279556b6..024819ece19 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());