summaryrefslogtreecommitdiff
path: root/saa/saa_accel.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-12-14 10:18:16 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-12-15 08:30:29 +0100
commit0eef22437093d29f572abea845fff9c03fca5e4e (patch)
tree16b21627bc66981fbf8f34317733f4ac2d4b4af3 /saa/saa_accel.c
parentafd2f828b8a8b2ccc6ebe4d56104db3d03d08493 (diff)
saa: Only try to accelerate pixmaps that are driver pixmaps
Trying to accelerate scratch pixmaps doesn't work currently, and I'm not sure it's a big benefit either. This is in line with what EXA does. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrants <jakob@vmware.com>
Diffstat (limited to 'saa/saa_accel.c')
-rw-r--r--saa/saa_accel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/saa/saa_accel.c b/saa/saa_accel.c
index 7bd5d61..5e1501b 100644
--- a/saa/saa_accel.c
+++ b/saa/saa_accel.c
@@ -61,6 +61,11 @@ saa_hw_copy_nton(DrawablePtr pSrcDrawable,
src_spix = saa_pixmap(pSrcPixmap);
dst_spix = saa_pixmap(pDstPixmap);
+ if (src_spix->auth_loc != saa_loc_driver ||
+ dst_spix->auth_loc != saa_loc_driver)
+ return FALSE;
+
+
ordering = (nbox == 1 || (dx > 0 && dy > 0) ||
(pDstDrawable != pSrcDrawable &&
(pDstDrawable->type != DRAWABLE_WINDOW ||