|
Pablo Greco |
6cafd5 |
From 4a343a4b563e84c6258efbddf1d910f9dd6e0300 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
6cafd5 |
From: Erik Kurzinger <ekurzinger@nvidia.com>
|
|
Pablo Greco |
6cafd5 |
Date: Wed, 25 Mar 2020 08:38:09 -0700
|
|
Pablo Greco |
6cafd5 |
Subject: [PATCH] add EGL_WL_bind_wayland_display definitions to
|
|
Pablo Greco |
6cafd5 |
wayland-egl-ext.h
|
|
Pablo Greco |
6cafd5 |
|
|
Pablo Greco |
6cafd5 |
The definitions for the EGL_WL_bind_wayland_display extension were previously
|
|
Pablo Greco |
6cafd5 |
provided by eglmesaext.h, included through eglext.h. However, recent versions
|
|
Pablo Greco |
6cafd5 |
of the eglext.h header shipped with mesa (which most distributions use) no
|
|
Pablo Greco |
6cafd5 |
longer include platform headers. This causes the build to fail due to undefined
|
|
Pablo Greco |
6cafd5 |
symbols.
|
|
Pablo Greco |
6cafd5 |
|
|
Pablo Greco |
6cafd5 |
This change adds the required definitions to wayland-egl-ext.h ensuring they're
|
|
Pablo Greco |
6cafd5 |
always available. This also avoids having a dependency on the aforementioned
|
|
Pablo Greco |
6cafd5 |
mesa header.
|
|
Pablo Greco |
6cafd5 |
|
|
Pablo Greco |
6cafd5 |
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
|
|
Pablo Greco |
6cafd5 |
---
|
|
Pablo Greco |
6cafd5 |
wayland-egl/wayland-egl-ext.h | 24 ++++++++++++++++++++++++
|
|
Pablo Greco |
6cafd5 |
1 file changed, 24 insertions(+)
|
|
Pablo Greco |
6cafd5 |
|
|
Pablo Greco |
6cafd5 |
diff --git a/wayland-egl/wayland-egl-ext.h b/wayland-egl/wayland-egl-ext.h
|
|
Pablo Greco |
6cafd5 |
index 6688e45..a258bf4 100644
|
|
Pablo Greco |
6cafd5 |
--- a/wayland-egl/wayland-egl-ext.h
|
|
Pablo Greco |
6cafd5 |
+++ b/wayland-egl/wayland-egl-ext.h
|
|
Pablo Greco |
6cafd5 |
@@ -23,6 +23,30 @@
|
|
Pablo Greco |
6cafd5 |
#ifndef WAYLAND_EGL_EXT_H
|
|
Pablo Greco |
6cafd5 |
#define WAYLAND_EGL_EXT_H
|
|
Pablo Greco |
6cafd5 |
|
|
Pablo Greco |
6cafd5 |
+#ifndef EGL_WL_bind_wayland_display
|
|
Pablo Greco |
6cafd5 |
+#define EGL_WL_bind_wayland_display 1
|
|
Pablo Greco |
6cafd5 |
+#define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
|
|
Pablo Greco |
6cafd5 |
+#define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
|
|
Pablo Greco |
6cafd5 |
+#define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
|
|
Pablo Greco |
6cafd5 |
+struct wl_display;
|
|
Pablo Greco |
6cafd5 |
+struct wl_resource;
|
|
Pablo Greco |
6cafd5 |
+#define EGL_WAYLAND_BUFFER_WL 0x31D5
|
|
Pablo Greco |
6cafd5 |
+#define EGL_WAYLAND_PLANE_WL 0x31D6
|
|
Pablo Greco |
6cafd5 |
+#define EGL_TEXTURE_Y_U_V_WL 0x31D7
|
|
Pablo Greco |
6cafd5 |
+#define EGL_TEXTURE_Y_UV_WL 0x31D8
|
|
Pablo Greco |
6cafd5 |
+#define EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
|
Pablo Greco |
6cafd5 |
+#define EGL_TEXTURE_EXTERNAL_WL 0x31DA
|
|
Pablo Greco |
6cafd5 |
+#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
|
|
Pablo Greco |
6cafd5 |
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
|
|
Pablo Greco |
6cafd5 |
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
|
|
Pablo Greco |
6cafd5 |
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
|
Pablo Greco |
6cafd5 |
+#ifdef EGL_EGLEXT_PROTOTYPES
|
|
Pablo Greco |
6cafd5 |
+EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
|
|
Pablo Greco |
6cafd5 |
+EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
|
|
Pablo Greco |
6cafd5 |
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
|
Pablo Greco |
6cafd5 |
+#endif
|
|
Pablo Greco |
6cafd5 |
+#endif /* EGL_WL_bind_wayland_display */
|
|
Pablo Greco |
6cafd5 |
+
|
|
Pablo Greco |
6cafd5 |
#ifndef EGL_WL_wayland_eglstream
|
|
Pablo Greco |
6cafd5 |
#define EGL_WL_wayland_eglstream 1
|
|
Pablo Greco |
6cafd5 |
#define EGL_WAYLAND_EGLSTREAM_WL 0x334B
|