summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/mesa.spec6
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h18
2 files changed, 12 insertions, 12 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 315293bff00..2d3d21bed6b 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -28,6 +28,7 @@ BuildRequires: pkgconfig(libdrm) >= 2.4.75
BuildRequires: pkgconfig(libudev) > 150
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-server)
+BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(tpl-egl)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(libtdm)
@@ -68,8 +69,8 @@ cp %{SOURCE1002} .
--disable-dri3 \
--enable-gles2 \
--enable-shared-glapi \
- --disable-gbm \
- --with-platforms=tizen \
+ --enable-gbm \
+ --with-platforms=tizen,wayland,drm \
%ifarch %ix86 x86_64
--with-dri-drivers="i915,swrast" \
--with-gallium-drivers="i915,swrast"
@@ -101,4 +102,5 @@ cp 99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d
%{_libdir}/libglapi*
%{_libdir}/driver/*
%{_libdir}/dri/*
+%{_libdir}/libgbm*
/etc/udev/rules.d/99-GPU-Acceleration.rules
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 1e128d02691..c82923fef6d 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -315,19 +315,10 @@ struct dri2_egl_surface
__DRIimage *dri_image_back;
__DRIimage *dri_image_front;
- /* 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.
- */
- struct {
- tbm_surface_h tbm_surface;
- int age;
- } color_buffers[3], *back;
-
int buffer_count;
#endif
-#if defined(HAVE_WAYLAND_PLATFORM) || defined(HAVE_DRM_PLATFORM)
+#if defined(HAVE_WAYLAND_PLATFORM) || defined(HAVE_DRM_PLATFORM) || defined(HAVE_TIZEN_PLATFORM)
struct {
#ifdef HAVE_WAYLAND_PLATFORM
struct wl_buffer *wl_buffer;
@@ -342,6 +333,13 @@ struct dri2_egl_surface
#ifdef HAVE_DRM_PLATFORM
struct gbm_bo *bo;
#endif
+#ifdef HAVE_TIZEN_PLATFORM
+ /* 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.
+ */
+ tbm_surface_h tbm_surface;
+#endif
bool locked;
int age;
} color_buffers[4], *back, *current;