[Mesa-dev] [PATCH] swr: allow alphatest without blend or logicop

Cherniak, Bruce bruce.cherniak at intel.com
Mon Nov 7 21:18:37 UTC 2016


Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com> 

> On Nov 7, 2016, at 1:23 PM, Tim Rowley <timothy.o.rowley at intel.com> wrote:
> 
> We need to compile a blend function when alphatest is enabled.
> ---
> src/gallium/drivers/swr/swr_state.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
> index 3e02322..424bff2 100644
> --- a/src/gallium/drivers/swr/swr_state.cpp
> +++ b/src/gallium/drivers/swr/swr_state.cpp
> @@ -1300,7 +1300,8 @@ swr_update_derived(struct pipe_context *pipe,
>                    sizeof(compileState.blendState));
> 
>             if (compileState.blendState.blendEnable == false &&
> -                compileState.blendState.logicOpEnable == false) {
> +                compileState.blendState.logicOpEnable == false &&
> +                ctx->depth_stencil->alpha.enabled == 0) {
>                SwrSetBlendFunc(ctx->swrContext, target, NULL);
>                continue;
>             }
> -- 
> 2.7.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list