diff options
author | Si Chen <sichen@vmware.com> | 2013-12-18 02:17:55 -0800 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-01-07 16:04:42 +0000 |
commit | 72c6d0e506ad0e8262dddbc7a7cf2d6813761753 (patch) | |
tree | e05ac43e669da8a3cf09a7631e9fbb0d171623e4 /src/gallium/drivers/llvmpipe/lp_bld_blend.h | |
parent | 2a0fb946e147f5482c93702fbf46ffdf5208f57c (diff) |
llvmpipe: Implement alpha_to_coverage for non-MSAA framebuffers.
Implement Alpha to Coverage by discarding a fragment alpha component is
less than 0.5. This is a joint work of Jose and Si.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_blend.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_blend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_blend.h b/src/gallium/drivers/llvmpipe/lp_bld_blend.h index 249a3454159..adfab85dc09 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_blend.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_blend.h @@ -38,6 +38,7 @@ struct pipe_blend_state; struct lp_type; struct lp_build_context; +struct lp_build_mask_context; LLVMValueRef @@ -99,5 +100,11 @@ lp_build_blend_func_reverse(unsigned rgb_func, boolean lp_build_blend_func_commutative(unsigned func); +void +lp_build_alpha_to_coverage(struct gallivm_state *gallivm, + struct lp_type type, + struct lp_build_mask_context *mask, + LLVMValueRef alpha, + boolean do_branch); #endif /* !LP_BLD_BLEND_H */ |