From 12c013d25ed0c08f748b0a7250cbcef1cded26b0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 1 Jul 2013 13:28:57 +0100 Subject: sna: Do not use userptr for GetImage on unsupported architectures If the system cannot blt to a CPU buffer, we should even attempt to do so for GetImage. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 80bc1986..dfa33560 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -14324,6 +14324,9 @@ sna_get_image_blt(PixmapPtr pixmap, if (!sna->kgem.has_userptr || !USE_USERPTR_DOWNLOADS) return false; + if (!sna->kgem.can_blt_cpu) + return false; + if (flags & (MOVE_WHOLE_HINT | MOVE_INPLACE_HINT)) return false; -- cgit v1.2.3