Skip to contentSkip to conversation

userland: Add missing EGL_CAST defines

PATCH In review Andrea Galbusera 3 participants 4 messages Jul 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 userland: Add missing EGL_CAST defines

Needed by libepoxy

---
 .../0015-EGL-glplatform.h-define-EGL_CAST.patch    | 32 ++++++++++++++++++++++
 recipes-graphics/userland/userland_git.bb          |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch
recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch new file +32 -0
new file mode 100644
index 0000000..5a80a26
@@ -0,0 +1,32 @@
+From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001
+From: Andrea Galbusera <[email protected]>
+Date: Fri, 14 Jul 2017 09:52:54 +0200
+Subject: [PATCH] EGL/glplatform.h: define EGL_CAST
+
+C++ / C typecast macros for special EGL handle values: used by libepoxy code
+The definition comes from the updated version of this header in mesa.
+
+Upstream-Status: Pending
+---
+ interface/khronos/include/EGL/eglplatform.h | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h
+index 1f7c930..c39d425 100644
+--- a/interface/khronos/include/EGL/eglplatform.h
++++ b/interface/khronos/include/EGL/eglplatform.h
+@@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i
+ #include "interface/khronos/common/khrn_client_mangle.h"
+ #endif
+ 
++/* C++ / C typecast macros for special EGL handle values */
++#if defined(__cplusplus)
++#define EGL_CAST(type, value) (static_cast<type>(value))
++#else
++#define EGL_CAST(type, value) ((type) (value))
++#endif
++
+ #endif /* __eglplatform_h */
+-- 
+2.7.4
+
recipes-graphics/userland/userland_git.bb +1 -0
index 26bbfaf..893fcba 100644
@@ -34,6 +34,7 @@ SRC_URI = "\
     file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \
     file://0013-Implement-triple-buffering-for-wayland.patch \
     file://0014-GLES2-gl2ext.h-Define-GL_R8_EXT-and-GL_RG8_EXT.patch \
+    file://0015-EGL-glplatform.h-define-EGL_CAST.patch \
 "
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.7.4
#1 lore raw

Hello,

Quoted 61 lines · Andrea Galbusera

Needed by libepoxy

---
 .../0015-EGL-glplatform.h-define-EGL_CAST.patch    | 32
++++++++++++++++++++++
 recipes-graphics/userland/userland_git.bb          |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 recipes-graphics/userland/

userland/0015-EGL-glplatform.h-define-EGL_CAST.patch

recipes-graphics/userland/userland/0015-EGL-glplatform. renamed from recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch +0 -0

h-define-EGL_CAST.patch
new file mode 100644
index 0000000..5a80a26

recipes-graphics/userland/userland/0015-EGL-glplatform. new file +0 -0

h-define-EGL_CAST.patch

recipes-graphics/userland/userland/0015-EGL-glplatform. new file +6 -0
@@ -0,0 +1,32 @@
+From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001
+From: Andrea Galbusera <[email protected]>
+Date: Fri, 14 Jul 2017 09:52:54 +0200
+Subject: [PATCH] EGL/glplatform.h: define EGL_CAST
+
+C++ / C typecast macros for special EGL handle values: used by libepoxy

code

recipes-graphics/userland/userland/0015-EGL-glplatform. new file +8 -0
+The definition comes from the updated version of this header in mesa.
+
+Upstream-Status: Pending
+---
+ interface/khronos/include/EGL/eglplatform.h | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/interface/khronos/include/EGL/eglplatform.h

b/interface/khronos/include/EGL/eglplatform.h +index 1f7c930..c39d425 100644
+--- a/interface/khronos/include/EGL/eglplatform.h ++++ b/interface/khronos/include/EGL/eglplatform.h +@@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_ GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i
+ #include "interface/khronos/common/khrn_client_mangle.h"
+ #endif

recipes-graphics/userland/userland/0015-EGL-glplatform. new file +12 -0
+
++/* C++ / C typecast macros for special EGL handle values */
++#if defined(__cplusplus)
++#define EGL_CAST(type, value) (static_cast<type>(value))
++#else
++#define EGL_CAST(type, value) ((type) (value))
++#endif
++
+ #endif /* __eglplatform_h */
+--
+2.7.4
+
recipes-graphics/userland/userland_git.bb +0 -0
index 26bbfaf..893fcba 100644

recipes-graphics/userland/userland_git.bb SRC_URI = "\ · line 40

Quoted 7 lines
recipes-graphics/userland/userland_git.bb +1 -0
@@ -34,6 +34,7 @@ SRC_URI = "\
     file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \
     file://0013-Implement-triple-buffering-for-wayland.patch \
     file://0014-GLES2-gl2ext.h-Define-GL_R8_EXT-and-GL_RG8_EXT.patch \
+    file://0015-EGL-glplatform.h-define-EGL_CAST.patch \
 "
 S = "${WORKDIR}/git"
 

Looks good to me.
--
Andrei Gherzan

#2 lore raw
In reply to Andrea Galbusera
Quoted 35 lines · Andrea Galbusera

Needed by libepoxy

---
 .../0015-EGL-glplatform.h-define-EGL_CAST.patch    | 32 ++++++++++++++++++++++
 recipes-graphics/userland/userland_git.bb          |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch
recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch new file +20 -0
new file mode 100644
index 0000000..5a80a26
@@ -0,0 +1,32 @@
+From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001
+From: Andrea Galbusera <[email protected]>
+Date: Fri, 14 Jul 2017 09:52:54 +0200
+Subject: [PATCH] EGL/glplatform.h: define EGL_CAST
+
+C++ / C typecast macros for special EGL handle values: used by libepoxy code
+The definition comes from the updated version of this header in mesa.
+
+Upstream-Status: Pending
+---
+ interface/khronos/include/EGL/eglplatform.h | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h
+index 1f7c930..c39d425 100644
+--- a/interface/khronos/include/EGL/eglplatform.h
++++ b/interface/khronos/include/EGL/eglplatform.h
+@@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i
+ #include "interface/khronos/common/khrn_client_mangle.h"
+ #endif

recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch line 30

Quoted 10 lines
recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch new file +10 -0
+
++/* C++ / C typecast macros for special EGL handle values */
++#if defined(__cplusplus)
++#define EGL_CAST(type, value) (static_cast<type>(value))
++#else
++#define EGL_CAST(type, value) ((type) (value))
++#endif
++
+ #endif /* __eglplatform_h */
+--

LGTM
please merge it

Quoted 17 lines
recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch new file +2 -0
+2.7.4
+
recipes-graphics/userland/userland_git.bb +1 -1
index 26bbfaf..893fcba 100644
@@ -34,6 +34,7 @@ SRC_URI = "\
     file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \
     file://0013-Implement-triple-buffering-for-wayland.patch \
     file://0014-GLES2-gl2ext.h-Define-GL_R8_EXT-and-GL_RG8_EXT.patch \
+    file://0015-EGL-glplatform.h-define-EGL_CAST.patch \
 "
 S = "${WORKDIR}/git"
 
--

2.7.4

#3 lore raw
Quoted 56 lines · Khem Raj
Quoted 5 lines · Andrea Galbusera

Needed by libepoxy

---
 .../0015-EGL-glplatform.h-define-EGL_CAST.patch    | 32

++++++++++++++++++++++

Quoted 3 lines
 recipes-graphics/userland/userland_git.bb          |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 recipes-graphics/userland/

userland/0015-EGL-glplatform.h-define-EGL_CAST.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-graphics/userland/userland/0015-EGL-glplatform. h-define-EGL_CAST.patch

recipes-graphics/userland/userland/0015-EGL-glplatform.

Quoted 4 lines

new file mode 100644
index 0000000..5a80a26

recipes-graphics/userland/userland/0015-EGL-glplatform. new file +0 -0

h-define-EGL_CAST.patch

recipes-graphics/userland/userland/0015-EGL-glplatform. line 6

Quoted 7 lines
recipes-graphics/userland/userland/0015-EGL-glplatform. new file +6 -0
@@ -0,0 +1,32 @@
+From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001
+From: Andrea Galbusera <[email protected]>
+Date: Fri, 14 Jul 2017 09:52:54 +0200
+Subject: [PATCH] EGL/glplatform.h: define EGL_CAST
+
+C++ / C typecast macros for special EGL handle values: used by libepoxy

code

recipes-graphics/userland/userland/0015-EGL-glplatform. line 14

Quoted 8 lines
recipes-graphics/userland/userland/0015-EGL-glplatform. new file +8 -0
+The definition comes from the updated version of this header in mesa.
+
+Upstream-Status: Pending
+---
+ interface/khronos/include/EGL/eglplatform.h | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/interface/khronos/include/EGL/eglplatform.h

b/interface/khronos/include/EGL/eglplatform.h

recipes-graphics/userland/userland/0015-EGL-glplatform. line 18

Quoted 4 lines
recipes-graphics/userland/userland/0015-EGL-glplatform. new file +4 -0
+index 1f7c930..c39d425 100644
+--- a/interface/khronos/include/EGL/eglplatform.h
++++ b/interface/khronos/include/EGL/eglplatform.h
+@@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_

GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i

recipes-graphics/userland/userland/0015-EGL-glplatform. line 30

Quoted 12 lines
recipes-graphics/userland/userland/0015-EGL-glplatform. new file +12 -0
+ #include "interface/khronos/common/khrn_client_mangle.h"
+ #endif
+
++/* C++ / C typecast macros for special EGL handle values */
++#if defined(__cplusplus)
++#define EGL_CAST(type, value) (static_cast<type>(value))
++#else
++#define EGL_CAST(type, value) ((type) (value))
++#endif
++
+ #endif /* __eglplatform_h */
+--
Quoted 2 lines

LGTM
please merge it

Your wish is my command :) Merged in master after builds passed. Thanks for you contribution, Andrea.

Regards,
Andrei