blob: 2f37989fd82fa3b608210df14b79b06ab2d50c7f [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From cc25f8abd4498004a276a4ee40e37681fa42422a Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Hugo Hromic <hhromic@gmail.com>
3Date: Sun, 13 May 2018 10:49:04 +0100
Brad Bishop26bdd442019-08-16 17:08:17 -04004Subject: [PATCH 17/19] khronos: backport typedef for
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005 EGL_EXT_image_dma_buf_import
6
7The `gstreamer1.0-plugins-base` package version `1.14` uses `EGL_EXT_image_dma_buf_import`, which
8expects the `EGLuint64KHR` typedef that is present in recent versions of Khronos.
9However, the older version included in userland does not provide it.
10
11This patch backports the missing typedef from recent Khronos into userland.
12See: <https://www.khronos.org/registry/EGL/api/EGL/eglext.h>
13
14Submitted to userland in <https://github.com/raspberrypi/userland/pull/467>
15
16Upstream-Status: Submitted
17---
18 interface/khronos/include/EGL/eglext.h | 4 ++++
19 1 file changed, 4 insertions(+)
20
21diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h
22index d7e5ba7..dcc90ce 100755
23--- a/interface/khronos/include/EGL/eglext.h
24+++ b/interface/khronos/include/EGL/eglext.h
25@@ -190,6 +190,10 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSy
26 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
27 #endif
28
29+#ifndef EGL_KHR_uint64_typedef
30+#define EGL_KHR_uint64_typedef 1
31+typedef khronos_uint64_t EGLuint64KHR;
32+#endif /* EGL_KHR_uint64_typedef */
33
34 #ifndef EGL_WL_bind_wayland_display
35 #define EGL_WL_bind_wayland_display 1
36--
Brad Bishop26bdd442019-08-16 17:08:17 -0400372.22.0
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038