summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-27 09:58:40 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-27 09:58:40 +0000
commit04396b6e5039c0cd1ac655a8a9afe88bb8a1ebde (patch)
tree24bd3c02ce7531311c370d482c80da5359d1f40a
parent655a96cd5f12ff7fe593e7da5f34c7c92ef9b87d (diff)
sna: Don't force the creation of a GPU bo if it will be untiled
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 449bc721..a03e0bc7 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1169,8 +1169,8 @@ _sna_drawable_use_gpu_bo(DrawablePtr drawable,
return FALSE;
if (priv->gpu_bo == NULL &&
- sna_pixmap_choose_tiling(pixmap) != I915_TILING_NONE &&
- !box_inplace(pixmap, box))
+ (sna_pixmap_choose_tiling(pixmap) == I915_TILING_NONE ||
+ !box_inplace(pixmap, box)))
return FALSE;
get_drawable_deltas(drawable, pixmap, &dx, &dy);