st/xa: Fix performance regression introduced by commit "Cache render target surface"
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 8 May 2014 07:08:10 +0000 (09:08 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 9 May 2014 06:40:12 +0000 (08:40 +0200)
The mentioned commit has the nasty side-effect of turning off accelerated
copies.

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/state_trackers/xa/xa_context.c

index 37de45b..df3043c 100644 (file)
@@ -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) {