projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium: separate out floating-point CAPs into its own enum
[mesa.git]
/
src
/
gallium
/
drivers
/
llvmpipe
/
lp_bld_alpha.c
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_alpha.c
b/src/gallium/drivers/llvmpipe/lp_bld_alpha.c
index 8514030cde45bc962b89462b6f07c6645e61a462..518969c3202bb8d23b08085a2fec5beff3f8976f 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_alpha.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_alpha.c
@@
-43,22
+43,25
@@
void
void
-lp_build_alpha_test(
LLVMBuilderRef builder
,
-
const struct pipe_alpha_state *state
,
+lp_build_alpha_test(
struct gallivm_state *gallivm
,
+
unsigned func
,
struct lp_type type,
struct lp_build_mask_context *mask,
LLVMValueRef alpha,
struct lp_type type,
struct lp_build_mask_context *mask,
LLVMValueRef alpha,
- LLVMValueRef ref)
+ LLVMValueRef ref,
+ boolean do_branch)
{
struct lp_build_context bld;
{
struct lp_build_context bld;
+ LLVMValueRef test;
- lp_build_context_init(&bld,
builder
, type);
+ lp_build_context_init(&bld,
gallivm
, type);
- if(state->enabled) {
- LLVMValueRef test = lp_build_cmp(&bld, state->func, alpha, ref);
+ test = lp_build_cmp(&bld, func, alpha, ref);
-
lp_build_name(test, "alpha_mask");
+ lp_build_name(test, "alpha_mask");
- lp_build_mask_update(mask, test);
- }
+ lp_build_mask_update(mask, test);
+
+ if (do_branch)
+ lp_build_mask_check(mask);
}
}