Mesa (10.1): st/xa: Fix performance regression introduced by commit " Cache render target surface"
Carl Worth
cworth at kemper.freedesktop.org
Fri May 9 14:48:24 UTC 2014
Module: Mesa
Branch: 10.1
Commit: e16de70a90a5a5a651e677b78f146382394c0d4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e16de70a90a5a5a651e677b78f146382394c0d4b
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Thu May 8 09:08:10 2014 +0200
st/xa: Fix performance regression introduced by commit "Cache render target surface"
The mentioned commit has the nasty side-effect of turning off accelerated
copies.
Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>
Reviewed-by: Rob Clark <robdclark at gmail.com>
(cherry picked from commit 9306b7c171b29ac99f837e9efcd0281caf1d332e)
---
src/gallium/state_trackers/xa/xa_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c
index 71d3ddb..7fba2a7 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) {
More information about the mesa-commit
mailing list