diff options
author | Thomas Hellstrom <[email protected]> | 2014-05-08 09:08:10 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2014-05-09 08:40:12 +0200 |
commit | 9306b7c171b29ac99f837e9efcd0281caf1d332e (patch) | |
tree | 053caf1d55040d41f3b7fc1c59e1e4456b967e09 /src/gallium/state_trackers/xa | |
parent | c5f0c98c49a78777b2564a53028e345195ef275f (diff) |
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" <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Jakob Bornecrantz <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xa')
-rw-r--r-- | src/gallium/state_trackers/xa/xa_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c index 37de45b8864..df3043c8929 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) { |