summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-07-29 08:29:13 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:21 +0100
commit4639f8aad5db08cf9386a910c02a4dc205740d8b (patch)
tree265203f53728e6f4ec076e91dffefc5ea9ace48f /src/gallium/drivers/llvmpipe/lp_bld.h
parent833323b8d02a08b4f53847a521e14c707efd8beb (diff)
llvmpipe: Translate logicops.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld.h b/src/gallium/drivers/llvmpipe/lp_bld.h
index 44343f644b..e722e0b7a1 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld.h
@@ -115,4 +115,17 @@ lp_build_loop_end(LLVMBuilderRef builder,
struct lp_build_loop_state *state);
+/**
+ * Apply a logic op.
+ *
+ * src/dst parameters are packed values. It should work regardless the inputs
+ * are scalars, or a vector.
+ */
+LLVMValueRef
+lp_build_logicop(LLVMBuilderRef builder,
+ unsigned logicop_func,
+ LLVMValueRef src,
+ LLVMValueRef dst);
+
+
#endif /* !LP_BLD_H */