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 <imirkin@alum.mit.edu>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
Ilia Mirkin 2016-11-12 13:27:28 -05:00
parent 2f19a974a5
commit 7caed50ff4

View file

@ -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) {