diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-12 19:49:30 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-12 19:54:55 +0000 |
commit | 99c239e380b9f5134afc75bf55bf3f69e5113e38 (patch) | |
tree | e23dd24234d3e9d2caca5ea5719895385daba963 | |
parent | 28792be1f31190171644d911d7b5573186fe2df2 (diff) |
sna: Treat backing pixmaps no differently from their forward facing cousins
Another fix for the large buffers overhaul.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 36191012..2e3df8ae 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -395,13 +395,6 @@ static inline uint32_t default_tiling(PixmapPtr pixmap) if (sna->kgem.gen == 21) return I915_TILING_X; - if (pixmap->usage_hint == CREATE_PIXMAP_USAGE_BACKING_PIXMAP) { - /* Treat this like a window, and require accelerated - * scrolling i.e. overlapped blits. - */ - return I915_TILING_X; - } - if (sna_damage_is_all(&priv->cpu_damage, pixmap->drawable.width, pixmap->drawable.height)) { @@ -765,6 +758,8 @@ static PixmapPtr sna_create_pixmap(ScreenPtr screen, if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE) flags &= ~KGEM_CAN_CREATE_GPU; + if (usage == CREATE_PIXMAP_USAGE_BACKING_PIXMAP) + usage = 0; force_create: pad = PixmapBytePad(width, depth); |