[Mesa-dev] [PATCH] st/mesa: add check for color logicop in blit_copy_pixels()

Marek Olšák maraeo at gmail.com
Thu Jan 14 07:31:28 PST 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Jan 14, 2016 at 12:41 AM, Brian Paul <brianp at vmware.com> wrote:
> We check that a bunch of raster operations are disabled in
> blit_copy_pixels().  We also need to check that color logicop is
> disabled.
> ---
>  src/mesa/state_tracker/st_cb_drawpixels.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
> index 7ed52dd..04a9de0 100644
> --- a/src/mesa/state_tracker/st_cb_drawpixels.c
> +++ b/src/mesa/state_tracker/st_cb_drawpixels.c
> @@ -1302,6 +1302,7 @@ blit_copy_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
>         ctx->_ImageTransferState == 0x0 &&
>         !ctx->Color.BlendEnabled &&
>         !ctx->Color.AlphaEnabled &&
> +       (!ctx->Color.ColorLogicOpEnabled || ctx->Color.LogicOp == GL_COPY) &&
>         !ctx->Depth.Test &&
>         !ctx->Fog.Enabled &&
>         !ctx->Stencil.Enabled &&
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list