llvmpipe: Initialize bld ctx via lp_build_context_init instead of ad-hoc and broken code.
This commit is contained in:
@@ -75,10 +75,7 @@ add_test(LLVMModuleRef module, const char *name, lp_func_t lp_func)
|
||||
LLVMValueRef ret;
|
||||
struct lp_build_context bld;
|
||||
|
||||
bld.builder = builder;
|
||||
bld.type.floating = 1;
|
||||
bld.type.width = 32;
|
||||
bld.type.length = 4;
|
||||
lp_build_context_init(&bld, builder, lp_float32_vec4_type());
|
||||
|
||||
LLVMSetFunctionCallConv(func, LLVMCCallConv);
|
||||
|
||||
|
||||
@@ -72,10 +72,7 @@ add_sincos_test(LLVMModuleRef module, boolean sin)
|
||||
LLVMValueRef ret;
|
||||
struct lp_build_context bld;
|
||||
|
||||
bld.builder = builder;
|
||||
bld.type.floating = 1;
|
||||
bld.type.width = 32;
|
||||
bld.type.length = 4;
|
||||
lp_build_context_init(&bld, builder, lp_float32_vec4_type());
|
||||
|
||||
LLVMSetFunctionCallConv(func, LLVMCCallConv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user