[yocto] [meta-raspberrypi][PATCH] userland: Add missing EGL_CAST defines

Andrei Gherzan andrei at gherzan.ro
Fri Jul 14 06:36:57 PDT 2017


On Fri, Jul 14, 2017 at 2:31 PM, Khem Raj <raj.khem at gmail.com> wrote:

> On Fri, Jul 14, 2017 at 2:03 AM, Andrea Galbusera <gizero at gmail.com>
> wrote:
> > Needed by libepoxy
> >
> > Signed-off-by: Andrea Galbusera <gizero at gmail.com>
> > ---
> >  .../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
> >
> > diff --git a/recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch
> b/recipes-graphics/userland/userland/0015-EGL-glplatform.
> h-define-EGL_CAST.patch
> > new file mode 100644
> > index 0000000..5a80a26
> > --- /dev/null
> > +++ b/recipes-graphics/userland/userland/0015-EGL-glplatform.
> h-define-EGL_CAST.patch
> > @@ -0,0 +1,32 @@
> > +From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001
> > +From: Andrea Galbusera <gizero at gmail.com>
> > +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 */
> > +--
>
> LGTM
> please merge it


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

Regards,
Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170714/74b93cde/attachment.html>


More information about the yocto mailing list