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