From 2630c81937115602faa352fca369d89fbb926b33 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 7 Sep 2012 11:23:02 +0100 Subject: sna/dri: Make sure we set the SCANOUT flag when creating bo for pageflips In case we should be creating an untiled framebuffer, we need to make sure we honour the scanout alignment. Signed-off-by: Chris Wilson --- src/sna/sna_dri.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 63292469..de84ac73 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -257,7 +257,7 @@ sna_dri_create_buffer(DrawablePtr draw, draw->height, draw->bitsPerPixel, color_tiling(sna, draw), - CREATE_EXACT); + CREATE_SCANOUT | CREATE_EXACT); break; case DRI2BufferStencil: @@ -1558,7 +1558,7 @@ sna_dri_schedule_flip(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front, draw->height, draw->bitsPerPixel, get_private(info->front)->bo->tiling, - CREATE_EXACT); + CREATE_SCANOUT | CREATE_EXACT); info->back->name = kgem_bo_flink(&sna->kgem, get_private(info->back)->bo); sna->dri.flip_pending = info; @@ -2023,7 +2023,8 @@ blit: draw->width, draw->height, draw->bitsPerPixel, - I915_TILING_X, CREATE_EXACT); + get_private(info->front)->bo->tiling, + CREATE_SCANOUT | CREATE_EXACT); name = kgem_bo_flink(&sna->kgem, bo); } get_private(info->back)->bo = bo; -- cgit v1.2.3