amd: drop support for LLVM 10
It doesn't support RDNA 2. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10199>
This commit is contained in:
@@ -4698,13 +4698,11 @@ LLVMValueRef ac_build_main(const struct ac_shader_args *args, struct ac_llvm_con
|
||||
|
||||
ctx->main_function = main_function;
|
||||
|
||||
if (LLVM_VERSION_MAJOR >= 11) {
|
||||
/* Enable denormals for FP16 and FP64: */
|
||||
LLVMAddTargetDependentFunctionAttr(main_function, "denormal-fp-math", "ieee,ieee");
|
||||
/* Disable denormals for FP32: */
|
||||
LLVMAddTargetDependentFunctionAttr(main_function, "denormal-fp-math-f32",
|
||||
"preserve-sign,preserve-sign");
|
||||
}
|
||||
/* Enable denormals for FP16 and FP64: */
|
||||
LLVMAddTargetDependentFunctionAttr(main_function, "denormal-fp-math", "ieee,ieee");
|
||||
/* Disable denormals for FP32: */
|
||||
LLVMAddTargetDependentFunctionAttr(main_function, "denormal-fp-math-f32",
|
||||
"preserve-sign,preserve-sign");
|
||||
return main_function;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user