[Mesa-dev] [Mesa-stable] [PATCH 4/4] meta: Avoid _swrast_BlitFramebuffer in the meta CopyTexSubImage code.

Chris Forbes chrisf at ijw.co.nz
Mon May 19 14:27:42 PDT 2014


Series is:

Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

On Mon, May 19, 2014 at 6:12 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> This is a replacement for bd44ac8b5ca08016bb064b37edaec95eccfdbcd5
> that should actually work.
>
> Fixes Piglit's copyteximage-border on swrast, as well as one of
> es3conform's packed_pixels_pixelstore test.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78546
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77705
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> Cc: "10.2" <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/drivers/common/meta.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
> index f90d5bd..b194b6e 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -2860,13 +2860,13 @@ copytexsubimage_using_blit_framebuffer(struct gl_context *ctx, GLuint dims,
>      * are too strict for CopyTexImage.  We know meta will be fine with format
>      * changes.
>      */
> -   _mesa_meta_and_swrast_BlitFramebuffer(ctx, x, y,
> -                                         x + width, y + height,
> -                                         xoffset, yoffset,
> -                                         xoffset + width, yoffset + height,
> -                                         mask, GL_NEAREST);
> +   mask = _mesa_meta_BlitFramebuffer(ctx, x, y,
> +                                     x + width, y + height,
> +                                     xoffset, yoffset,
> +                                     xoffset + width, yoffset + height,
> +                                     mask, GL_NEAREST);
>     ctx->Meta->Blit.no_ctsi_fallback = false;
> -   success = true;
> +   success = mask == 0x0;
>
>   out:
>     _mesa_lock_texture(ctx, texObj);
> --
> 1.9.2
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-stable


More information about the mesa-dev mailing list