[Mesa-dev] [PATCH] st/xa: Fix performance regression introduced by commit "Cache render target surface"

Jakob Bornecrantz wallbraker at gmail.com
Thu May 8 04:47:21 PDT 2014


On Thu, May 8, 2014 at 9:15 AM, Thomas Hellstrom <thellstrom at vmware.com> wrote:
> The mentioned commit has the nasty side-effect of turning off accelerated
> copies.
>
> Cc: "10.1 10.2" <mesa-stable at lists.freedekstop.org>
> Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
> ---
>  src/gallium/state_trackers/xa/xa_context.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>

> diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c
> index 37de45b..df3043c 100644
> --- a/src/gallium/state_trackers/xa/xa_context.c
> +++ b/src/gallium/state_trackers/xa/xa_context.c
> @@ -223,7 +223,7 @@ XA_EXPORT int
>  xa_copy_prepare(struct xa_context *ctx,
>                 struct xa_surface *dst, struct xa_surface *src)
>  {
> -    if (src == dst || ctx->srf != NULL)
> +    if (src == dst)
>         return -XA_ERR_INVAL;
>
>      if (src->tex->format != dst->tex->format) {
> --
> 1.8.3.2
> _______________________________________________
> 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