diff options
author | Ilia Mirkin <[email protected]> | 2016-11-12 13:27:28 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-15 20:25:43 -0500 |
commit | 7caed50ff4224b0966bae7628cf99f8163cac4dc (patch) | |
tree | 0531ca6a3646286a3a163ad79d2a6b96d5098eda /src/gallium | |
parent | 2f19a974a58b259889d2ac49801adea3477c6877 (diff) |
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 <[email protected]>
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |