summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhaowei Yuan <zhaowei.yuan@samsung.com>2018-10-26 10:51:36 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2019-04-08 23:00:54 +0800
commit496c7ec16925e16185a5573d9e482230f86c6a96 (patch)
treeafe96746f55c4728e1ef811be871fe674776178c /src
parent80b6fe1c87212c60b4663a67c778dc7e2a42857b (diff)
downloadmesa-496c7ec16925e16185a5573d9e482230f86c6a96.tar.gz
mesa-496c7ec16925e16185a5573d9e482230f86c6a96.tar.bz2
mesa-496c7ec16925e16185a5573d9e482230f86c6a96.zip
EGL_DRI2 : expose local_buffers for all platforms
The original purpose of local_buffers is to unify similar buffers for all kinds of platforms in commit:640b6e, but it was moved into scope of HAVE_TIZEN_PLATFORM in commit:f46e50 mistakenly, so revert it and expose local_buffers for all platforms. Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com> Change-Id: I0e2a8466aed0758858e43ea872c6199ca583940e
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 99617a6a9e4..1e128d02691 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -279,6 +279,9 @@ struct dri2_egl_surface
__DRIbuffer buffers[5];
bool have_fake_front;
+ /* EGL-owned buffers */
+ __DRIbuffer *local_buffers[__DRI_BUFFER_COUNT];
+
#ifdef HAVE_X11_PLATFORM
xcb_drawable_t drawable;
xcb_xfixes_region_t region;
@@ -312,9 +315,6 @@ struct dri2_egl_surface
__DRIimage *dri_image_back;
__DRIimage *dri_image_front;
- /* EGL-owned buffers */
- __DRIbuffer *local_buffers[__DRI_BUFFER_COUNT];
-
/* Used to record all the tbm_surface created by tpl_surface and their ages.
* Usually Tizen uses at most triple buffers in tpl_surface (tbm_surface_queue)
* so hardcode the number of color_buffers to 3.