llvmpipe: Initialize bld ctx via lp_build_context_init instead of ad-hoc and broken...
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 17 Oct 2010 17:15:15 +0000 (10:15 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 17 Oct 2010 17:15:15 +0000 (10:15 -0700)
src/gallium/drivers/llvmpipe/lp_test_round.c
src/gallium/drivers/llvmpipe/lp_test_sincos.c

index 57b0ee5..0770c7a 100644 (file)
@@ -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);
 
index 7ab357f..79939b1 100644 (file)
@@ -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);