summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_blend.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-18 13:30:04 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:34 +0100
commit4a414d8f876031ffd299e8e0417da1ea7bf9b96b (patch)
treeacf1c74186eca2480d3b87704bd33c3cc871ef56 /src/gallium/drivers/llvmpipe/lp_bld_blend.h
parent3014919211b361817c5365f7cbb8d2ef8ca61234 (diff)
llvmpipe: Code generate logic ops.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_blend.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_blend.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_blend.h b/src/gallium/drivers/llvmpipe/lp_bld_blend.h
index 36f53dae93..d19e18846c 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_blend.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_blend.h
@@ -91,4 +91,17 @@ lp_build_blend_soa(LLVMBuilderRef builder,
LLVMValueRef res[4]);
+/**
+ * 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_BLEND_H */