diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-07 11:23:02 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-07 11:23:02 +0100 |
commit | 2630c81937115602faa352fca369d89fbb926b33 (patch) | |
tree | 3274bcae7f9327383f9794b8c9b111f76225a17e | |
parent | aeef03520f1b2a4b8638ff1ed4fbf19c9b35e7c8 (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri.c | 7 |
1 files 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; |