llvmpipe: Also reset the state in lp_scene_bin_reset
[mesa.git] / src / gallium / drivers / llvmpipe / lp_bld_alpha.c
index e50643790c8aa4c3f6eef0a48e31ada6c118deab..518969c3202bb8d23b08085a2fec5beff3f8976f 100644 (file)
@@ -43,7 +43,7 @@
 
 
 void
-lp_build_alpha_test(LLVMBuilderRef builder,
+lp_build_alpha_test(struct gallivm_state *gallivm,
                     unsigned func,
                     struct lp_type type,
                     struct lp_build_mask_context *mask,
@@ -54,7 +54,7 @@ lp_build_alpha_test(LLVMBuilderRef builder,
    struct lp_build_context bld;
    LLVMValueRef test;
 
-   lp_build_context_init(&bld, builder, type);
+   lp_build_context_init(&bld, gallivm, type);
 
    test = lp_build_cmp(&bld, func, alpha, ref);