llvmpipe: refactor generate_fragment() code
[mesa.git] / src / gallium / drivers / llvmpipe / lp_bld_logic.h
index 0989f9f20784a0c9e48eedc746304823c51e17d0..40d64eb2c1917c2089865224b7105e2f2b2c56f3 100644 (file)
 
 #include <llvm-c/Core.h>  
 
+#include "pipe/p_defines.h" /* For PIPE_FUNC_xxx */
 
-union lp_type type;
+
+struct lp_type;
 struct lp_build_context;
 
 
+LLVMValueRef
+lp_build_compare(LLVMBuilderRef builder,
+                 const struct lp_type type,
+                 unsigned func,
+                 LLVMValueRef a,
+                 LLVMValueRef b);
+
+
 /**
  * @param func is one of PIPE_FUNC_xxx
  */
@@ -64,7 +74,7 @@ LLVMValueRef
 lp_build_select_aos(struct lp_build_context *bld,
                     LLVMValueRef a,
                     LLVMValueRef b,
-                    boolean cond[4]);
+                    const boolean cond[4]);
 
 
 #endif /* !LP_BLD_LOGIC_H */