summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_logic.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-21 07:42:29 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:37 +0100
commitc0472f9c34da78bccecb2c790b54b9dd9712a0b9 (patch)
treebe554214b9b558b85bf42e163747317e1f9dd076 /src/gallium/drivers/llvmpipe/lp_bld_logic.h
parent3dbf00f9ab0d2e771c72a74d9db32c048ce7df4e (diff)
llvmpipe: Centralize mask update logic.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_logic.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_logic.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_logic.h b/src/gallium/drivers/llvmpipe/lp_bld_logic.h
index 0989f9f207..8ba73b94ed 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_logic.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_logic.h
@@ -45,6 +45,15 @@ struct lp_build_context;
/**
+ * Bitwise AND the mask with the given value, if a previous mask was set.
+ */
+void
+lp_build_mask_and(LLVMBuilderRef builder,
+ LLVMValueRef *mask,
+ LLVMValueRef value);
+
+
+/**
* @param func is one of PIPE_FUNC_xxx
*/
LLVMValueRef