diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-09-10 14:59:11 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-09-11 13:30:14 +0100 |
commit | 277d768d10d8a98a7cae8b709ff78bb8d1f695f1 (patch) | |
tree | d195c7bbf75750495f3b4f242de4737d7a9918a9 /src/gallium/drivers/llvmpipe/lp_bld_alpha.c | |
parent | dcc5d7f67220bc93aa7a351658649877c7e4cf69 (diff) |
llvmpipe: Don't store display the alpha ref value in the key.
It's never used.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_alpha.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_alpha.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_alpha.c b/src/gallium/drivers/llvmpipe/lp_bld_alpha.c index 8514030cde..e28efe778f 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_alpha.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_alpha.c @@ -44,21 +44,20 @@ void lp_build_alpha_test(LLVMBuilderRef builder, - const struct pipe_alpha_state *state, + unsigned func, struct lp_type type, struct lp_build_mask_context *mask, LLVMValueRef alpha, LLVMValueRef ref) { struct lp_build_context bld; + LLVMValueRef test; lp_build_context_init(&bld, builder, 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); } |