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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user