From c0472f9c34da78bccecb2c790b54b9dd9712a0b9 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 21 Aug 2009 07:42:29 +0100 Subject: llvmpipe: Centralize mask update logic. --- src/gallium/drivers/llvmpipe/lp_bld_logic.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gallium/drivers/llvmpipe/lp_bld_logic.h') 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 @@ -44,6 +44,15 @@ union lp_type type; 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 */ -- cgit v1.2.3