Skip to contentSkip to conversation

glmark2: overlay version 2014.03 locally

PATCH New Denys Dmytriyenko 1 participant 2 messages Sep 14, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 glmark2: overlay version 2014.03 locally

Overlay older version 2014.03 from meta-oe before it got upgraded to 2017.07. New version of glmark2 uses EGL 1.5 APIs that are not yet supported by our SGX DDK 1.14 version.

---
 ...ace-should-be-destoryed-after-the-wl_wind.patch | 34 ++++++++++++
 .../files/Fix-configure-for-sqrt-check.patch       | 13 +++++
 ...-packages-to-be-used-by-the-enabled-flavo.patch | 43 ++++++++++++++++
 .../recipes-benchmark/glmark2/glmark2_git.bb       | 60 ++++++++++++++++++++++
 4 files changed, 150 insertions(+)
 create mode 100644 meta-arago-extras/recipes-benchmark/glmark2/files/0001-Fix-wl_surface-should-be-destoryed-after-the-wl_wind.patch
 create mode 100644 meta-arago-extras/recipes-benchmark/glmark2/files/Fix-configure-for-sqrt-check.patch
 create mode 100644 meta-arago-extras/recipes-benchmark/glmark2/files/build-Check-packages-to-be-used-by-the-enabled-flavo.patch
 create mode 100644 meta-arago-extras/recipes-benchmark/glmark2/glmark2_git.bb
meta-arago-extras/recipes-benchmark/glmark2/files/0001-Fix-wl_surface-should-be-destoryed-after-the-wl_wind.patch new file +34 -0
new file mode 100644
index 0000000..4395081
@@ -0,0 +1,34 @@
+From 9c74ec83e2929b1d5ab65d5137b6ba42edeb332d Mon Sep 17 00:00:00 2001
+From: Yong Gan <[email protected]>
+Date: Tue, 27 Oct 2015 18:15:20 +0800
+Subject: [PATCH] Fix: wl_surface should be destoryed after the wl_window
+ destroyed.
+
+Upstream-Status: Submitted [https://github.com/glmark2/glmark2/issues/12]
+
+Signed-off-by: Yong Gan <[email protected]>
+
+---
+ src/native-state-wayland.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/native-state-wayland.cpp b/src/native-state-wayland.cpp
+index 41fc743..cdcdf34 100644
+--- a/src/native-state-wayland.cpp
++++ b/src/native-state-wayland.cpp
+@@ -56,10 +56,10 @@ NativeStateWayland::~NativeStateWayland()
+             wl_shell_surface_destroy(window_->shell_surface);
+         if (window_->opaque_reqion)
+             wl_region_destroy(window_->opaque_reqion);
+-        if (window_->surface)
+-            wl_surface_destroy(window_->surface);
+         if (window_->native)
+             wl_egl_window_destroy(window_->native);
++        if (window_->surface)
++            wl_surface_destroy(window_->surface);
+         delete window_;
+     }
+ 
+-- 
+1.9.1
+
meta-arago-extras/recipes-benchmark/glmark2/files/Fix-configure-for-sqrt-check.patch new file +13 -0
new file mode 100644
index 0000000..fde8238
@@ -0,0 +1,13 @@
+Index: git/wscript
+===================================================================
+--- git.orig/wscript	2016-07-29 13:15:44.954249796 -0500
++++ git/wscript	2016-07-29 15:52:06.196768865 -0500
+@@ -90,7 +90,7 @@
+         ctx.check_cxx(lib = lib, uselib_store = uselib)
+ 
+     # Check required functions
+-    req_funcs = [('memset', 'string.h', []) ,('sqrt', 'math.h', ['m'])]
++    req_funcs = [('memset', 'string.h', [])]
+     for func, header, uselib in req_funcs:
+         ctx.check_cxx(function_name = func, header_name = header,
+                       uselib = uselib, mandatory = True)
meta-arago-extras/recipes-benchmark/glmark2/files/build-Check-packages-to-be-used-by-the-enabled-flavo.patch new file +43 -0

43 lines not on this page · raw message

meta-arago-extras/recipes-benchmark/glmark2/glmark2_git.bb new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 packagegroup-arago-tisdk-graphics: re-enable glmark2

---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +2 -3
index b772ffd..f8f4fea 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install graphics binaries"
 LICENSE = "MIT"
-PR = "r21"
+PR = "r22"
 
 inherit packagegroup
 
@@ -19,12 +19,11 @@ GRAPHICS_WAYLAND_append_k3 = "\
     chromium-wayland \
 "
 
-# Temporarily disable glmark2 due to gcc7/gles? issues
-#    glmark2
 GRAPHICS_RDEPENDS = "\
     libgbm \
     ti-sgx-ddk-km \
     ti-sgx-ddk-um \
+    glmark2 \
 "
 
 GRAPHICS_DISPLAY_UTILS = "\
Signature · 1 line
2.7.4