llvmpipe: try to be sensible about whether to branch after mask updates
[mesa.git] / src / gallium / drivers / llvmpipe / lp_bld_alpha.h
index 634575670db6778a0d0aeeecbd9150800e6d6be6..27ca8aad4d4406283fbf44c4ed70d31b932a516d 100644 (file)
@@ -35,7 +35,7 @@
 #define LP_BLD_ALPHA_H
 
 
-#include <llvm-c/Core.h>  
+#include "gallivm/lp_bld.h"
 
 struct pipe_alpha_state;
 struct lp_type;
@@ -44,11 +44,12 @@ struct lp_build_mask_context;
 
 void
 lp_build_alpha_test(LLVMBuilderRef builder,
-                    const struct pipe_alpha_state *state,
+                    unsigned func,
                     struct lp_type type,
                     struct lp_build_mask_context *mask,
                     LLVMValueRef alpha,
-                    LLVMValueRef ref);
+                    LLVMValueRef ref,
+                    boolean do_branch);
 
 
 #endif /* !LP_BLD_ALPHA_H */