summaryrefslogtreecommitdiff
path: root/src/sna/sna_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-01 17:41:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-01 18:11:03 +0100
commit1c8a33a72e29261d6bf5a6c160765cbafa4d0b88 (patch)
tree5604f38f1225bce4b2dc5a4347d322963061f815 /src/sna/sna_dri.c
parent9cb6756ce16491e42c6e21bc74a5f7de5432510f (diff)
sna: Allow scanouts to be untiled if need be
Fixes regression from commit 77fa8ab08b441934218ddb8f690be1a919f0ec64 [2.21.11] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Jun 25 22:25:25 2013 +0100 sna: Free just-allocated bo if we fail to set-tiling on CREATE_EXACT Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri.c')
-rw-r--r--src/sna/sna_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index ca5f0889..b65ebffe 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -243,7 +243,7 @@ sna_dri_create_buffer(DrawablePtr draw,
struct sna_dri_private *private;
PixmapPtr pixmap;
struct kgem_bo *bo;
- unsigned flags = CREATE_EXACT;
+ unsigned flags = 0;
uint32_t size;
int bpp;
@@ -1612,7 +1612,7 @@ sna_dri_flip_get_back(struct sna *sna, struct sna_dri_frame_event *info)
info->draw->height,
info->draw->bitsPerPixel,
get_private(info->front)->bo->tiling,
- CREATE_SCANOUT | CREATE_EXACT);
+ CREATE_SCANOUT);
if (bo == NULL)
return;