summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch')
-rw-r--r--meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch b/meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch
new file mode 100644
index 00000000..61a7cbf9
--- /dev/null
+++ b/meta-xilinx-mali400/recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch
@@ -0,0 +1,33 @@
1From 534a0f99b38f7a32fc07562bec3e992dfad448c0 Mon Sep 17 00:00:00 2001
2From: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
3Date: Mon, 3 Feb 2020 13:00:36 -0800
4Subject: [PATCH] src: gl-state-egl: Use native_display to load EGL funcs
5 through glad
6
7EGL_DEFAULT_DISPLAY may not be suiitable for all the backends like GBM.
8Instead, use the already initialized display and only fallback to
9EGL_DEFAULT_DISPLAY if the display is unintialized (which is already
10been taken care).
11
12Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
13Upstream-status: Pending
14---
15 src/gl-state-egl.cpp | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/gl-state-egl.cpp b/src/gl-state-egl.cpp
19index 8d7d66e..316b856 100644
20--- a/src/gl-state-egl.cpp
21+++ b/src/gl-state-egl.cpp
22@@ -317,7 +317,7 @@ GLStateEGL::init_display(void* native_display, GLVisualConfig& visual_config)
23 return false;
24 }
25
26- if (gladLoadEGLUserPtr(EGL_NO_DISPLAY, load_egl_func, &egl_lib_) == 0) {
27+ if (gladLoadEGLUserPtr(native_display, load_egl_func, &egl_lib_) == 0) {
28 Log::error("Loading EGL entry points failed\n");
29 return false;
30 }
31--
322.7.4
33