mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
2f19a974a5
commit
7caed50ff4
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue