[Mesa-dev] [PATCH 10/14] swr: disable blending for integer formats

Cherniak, Bruce bruce.cherniak at intel.com
Tue Nov 15 01:46:38 UTC 2016


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

> On Nov 12, 2016, at 5:00 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 
> The EXT_texture_integer test says that blending and alphatest should
> all be disabled. st/mesa takes care of alphatest already.
> 
> Fixes the ext_texture_integer-fbo-blending piglit test.
> 
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/gallium/drivers/swr/swr_state.cpp | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
> index 526d7e7..783afba 100644
> --- a/src/gallium/drivers/swr/swr_state.cpp
> +++ b/src/gallium/drivers/swr/swr_state.cpp
> @@ -1318,6 +1318,9 @@ swr_update_derived(struct pipe_context *pipe,
>                compileState.blendState.logicOpEnable = false;
>             }
> 
> +            if (info.type[0] == SWR_TYPE_SINT || info.type[0] == SWR_TYPE_UINT)
> +               compileState.blendState.blendEnable = false;
> +
>             if (compileState.blendState.blendEnable == false &&
>                 compileState.blendState.logicOpEnable == false &&
>                 ctx->depth_stencil->alpha.enabled == 0) {
> -- 
> 2.7.3
> 
> _______________________________________________
> 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