summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-benchmark/glmark2/glmark2/0001-gl-state-egl-Avoid-build-failure-due-to-miss-macro-d.patch
blob: db61eb2c8fdbd8c0b634ad4dab7230a08430ceb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From b2c3e7f58710bb5cc119845d72bc7c4ba5b4cb16 Mon Sep 17 00:00:00 2001
From: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com>
Date: Tue, 13 Mar 2018 13:28:52 +0700
Subject: [PATCH] gl-state-egl: Avoid build failure due to miss macro
 declaration

This commit avoids the following error:

| ../src/gl-state-egl.cpp: In member function 'bool GLStateEGL::gotValidDisplay()':
| ../src/gl-state-egl.cpp:420:41: error: 'EGL_PLATFORM_GBM_KHR' was not declared in this scope
|  #define GLMARK2_NATIVE_EGL_DISPLAY_ENUM EGL_PLATFORM_GBM_KHR
|                                          ^
| ../src/gl-state-egl.cpp:444:17: note: in expansion of macro 'GLMARK2_NATIVE_EGL_DISPLAY_ENUM'
|                  GLMARK2_NATIVE_EGL_DISPLAY_ENUM, native_display_, NULL);
|                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../src/gl-state-egl.cpp:420:41: note: suggested alternative: 'EGL_PLATFORM_GBM_MESA'
|  #define GLMARK2_NATIVE_EGL_DISPLAY_ENUM EGL_PLATFORM_GBM_KHR
|                                          ^
| ../src/gl-state-egl.cpp:444:17: note: in expansion of macro 'GLMARK2_NATIVE_EGL_DISPLAY_ENUM'
|                  GLMARK2_NATIVE_EGL_DISPLAY_ENUM, native_display_, NULL);
|                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com>
---
 src/gl-state-egl.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gl-state-egl.cpp b/src/gl-state-egl.cpp
index 6f4f420..0edcdc1 100644
--- a/src/gl-state-egl.cpp
+++ b/src/gl-state-egl.cpp
@@ -440,8 +440,7 @@ GLStateEGL::gotValidDisplay()
                 eglGetProcAddress("eglGetPlatformDisplayEXT"));
 
         if (get_platform_display != nullptr) {
-            egl_display_ = get_platform_display(
-                GLMARK2_NATIVE_EGL_DISPLAY_ENUM, native_display_, NULL);
+            eglGetDisplay(native_display_);
         }
 
         if (!egl_display_) {
-- 
2.7.4