From: Ilia Mirkin Date: Sat, 12 Nov 2016 18:27:28 +0000 (-0500) Subject: swr: disable blending for integer formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7caed50ff4224b0966bae7628cf99f8163cac4dc;p=mesa.git swr: disable blending for integer formats 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 Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 526d7e7307d..783afba2b42 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) {