From 7c51cabaecac52348766c622e80ed14b9854e54d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 5 Jun 2012 12:59:46 +0100 Subject: [PATCH] sna: Try to create Y-tiled pixmaps for initial source bo Signed-off-by: Chris Wilson --- src/sna/sna_render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index e06e3c26..e28823f3 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -338,7 +338,7 @@ use_cpu_bo(struct sna *sna, PixmapPtr pixmap, const BoxRec *box) } if (priv->source_count++*w*h >= (int)pixmap->drawable.width * pixmap->drawable.height && - I915_TILING_NONE != kgem_choose_tiling(&sna->kgem, I915_TILING_X, + I915_TILING_NONE != kgem_choose_tiling(&sna->kgem, I915_TILING_Y, pixmap->drawable.width, pixmap->drawable.height, pixmap->drawable.bitsPerPixel)) { @@ -396,7 +396,7 @@ move_to_gpu(PixmapPtr pixmap, const BoxRec *box) migrate = true; if ((priv->create & KGEM_CAN_CREATE_GPU) == 0 || kgem_choose_tiling(&to_sna_from_pixmap(pixmap)->kgem, - I915_TILING_X, + I915_TILING_Y, pixmap->drawable.width, pixmap->drawable.height, pixmap->drawable.bitsPerPixel) == I915_TILING_NONE) @@ -413,7 +413,7 @@ move_to_gpu(PixmapPtr pixmap, const BoxRec *box) count = priv->source_count++; if ((priv->create & KGEM_CAN_CREATE_GPU) == 0 || kgem_choose_tiling(&to_sna_from_pixmap(pixmap)->kgem, - I915_TILING_X, + I915_TILING_Y, pixmap->drawable.width, pixmap->drawable.height, pixmap->drawable.bitsPerPixel) == I915_TILING_NONE)