diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-01 13:28:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-01 13:28:57 +0100 |
commit | 12c013d25ed0c08f748b0a7250cbcef1cded26b0 (patch) | |
tree | 570f4150a3f3155eab721945e55807f3c5abbe79 | |
parent | 7d9163983ea2e960c0a7b55266fcc532b9c6e382 (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |