aboutsummaryrefslogtreecommitdiffstats
path: root/src/loader/loader_dri3_helper.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-10-21 12:28:00 +0200
committerMarek Olšák <[email protected]>2016-03-09 15:02:25 +0100
commitd943ac432de1f46cea47bdbf5ffe5365e2aef386 (patch)
treee2d3c5e38aef81af1fd376b292d43e217c6990c2 /src/loader/loader_dri3_helper.c
parent2188c77a0ee9b29f89dde316116d53fe22e526e0 (diff)
dri: add backbuffer use flag
This will be used by the next commit. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/loader/loader_dri3_helper.c')
-rw-r--r--src/loader/loader_dri3_helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
index 62bfe845c08..896f2252f36 100644
--- a/src/loader/loader_dri3_helper.c
+++ b/src/loader/loader_dri3_helper.c
@@ -858,7 +858,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format,
width, height,
format,
__DRI_IMAGE_USE_SHARE |
- __DRI_IMAGE_USE_SCANOUT,
+ __DRI_IMAGE_USE_SCANOUT |
+ __DRI_IMAGE_USE_BACKBUFFER,
buffer);
pixmap_buffer = buffer->image;
@@ -878,7 +879,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format,
(draw->ext->image->createImage)(draw->dri_screen,
width, height, format,
__DRI_IMAGE_USE_SHARE |
- __DRI_IMAGE_USE_LINEAR,
+ __DRI_IMAGE_USE_LINEAR |
+ __DRI_IMAGE_USE_BACKBUFFER,
buffer);
pixmap_buffer = buffer->linear_buffer;