mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
llvmpipe: Fix build errors on x86.
The errors were introduced by
efc82aef35.
This commit is contained in:
parent
7db49853f0
commit
709e57ae4f
2 changed files with 5 additions and 4 deletions
|
|
@ -562,11 +562,12 @@ finalize_function(struct gallivm_state *gallivm,
|
|||
/* XXX: Generic code:
|
||||
*/
|
||||
static void
|
||||
lp_emit_emms(LLVMBuilderRef builder)
|
||||
lp_emit_emms(struct gallivm_state *gallivm)
|
||||
{
|
||||
#ifdef PIPE_ARCH_X86
|
||||
/* Avoid corrupting the FPU stack on 32bit OSes. */
|
||||
lp_build_intrinsic(builder, "llvm.x86.mmx.emms", LLVMVoidType(), NULL, 0);
|
||||
lp_build_intrinsic(gallivm->builder, "llvm.x86.mmx.emms",
|
||||
LLVMVoidTypeInContext(gallivm->context), NULL, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -720,7 +721,7 @@ generate_setup_variant(struct gallivm_state *gallivm,
|
|||
init_args(gallivm, &args, variant);
|
||||
emit_tri_coef(gallivm, &variant->key, &args);
|
||||
|
||||
lp_emit_emms(builder);
|
||||
lp_emit_emms(gallivm);
|
||||
LLVMBuildRetVoid(builder);
|
||||
|
||||
variant->jit_function = finalize_function(gallivm, builder,
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ test_sincos(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
|
|||
#else /* !PIPE_ARCH_SSE */
|
||||
|
||||
static boolean
|
||||
test_sincos(unsigned verbose, FILE *fp)
|
||||
test_sincos(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue