gallivm: use LLVM opaque pointers in lp_bld_conv.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>
This commit is contained in:
Mihai Preda 2022-05-02 15:44:19 +03:00 committed by Mihai Preda
parent 6867b184ca
commit f1fc0bb567

View file

@ -229,7 +229,7 @@ lp_build_float_to_half(struct gallivm_state *gallivm,
*/
LLVMValueRef f16 = lp_build_intrinsic_unary(builder, "llvm.convert.to.fp16", i16t, f32);
#else
LLVMValueRef f16 = LLVMBuildCall(builder, func, &f32, 1, "");
LLVMValueRef f16 = LLVMBuildCall2(builder, func_type, func, &f32, 1, "");
#endif
ref_result = LLVMBuildInsertElement(builder, ref_result, f16, index, "");
}