diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-12-02 14:37:54 -0800 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-12-04 11:18:40 +0000 |
commit | 80bcc2e0edd65cc3ff4958a973f3d27cf239bb46 (patch) | |
tree | 1996ec5b6b425603d27e33d7a7d50910843a0eb0 /recipes-graphics | |
parent | 8e35fbffb086728699667b3572ddf30d90ffdb5f (diff) | |
download | meta-raspberrypi-80bcc2e0edd65cc3ff4958a973f3d27cf239bb46.tar.gz |
userland: Fix weston build with userland graphics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/userland/files/0024-userland-Sync-needed-defines-for-weston-build.patch | 38 | ||||
-rw-r--r-- | recipes-graphics/userland/userland_git.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0024-userland-Sync-needed-defines-for-weston-build.patch b/recipes-graphics/userland/files/0024-userland-Sync-needed-defines-for-weston-build.patch new file mode 100644 index 0000000..ec74cc2 --- /dev/null +++ b/recipes-graphics/userland/files/0024-userland-Sync-needed-defines-for-weston-build.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 4a3e515d3ea7ff0fc4063b9677b056af4ee7a3f6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 2 Dec 2020 14:28:01 -0800 | ||
4 | Subject: [PATCH] userland: Sync needed defines for weston build | ||
5 | |||
6 | eglext.h from userland is not sufficient to compile latest weston, | ||
7 | therefore import needed defines and typedefs from latest mesa | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | interface/khronos/include/EGL/eglext.h | 14 ++++++++++++++ | ||
12 | 1 file changed, 14 insertions(+) | ||
13 | |||
14 | diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h | ||
15 | index 6842bf9..7118e92 100755 | ||
16 | --- a/interface/khronos/include/EGL/eglext.h | ||
17 | +++ b/interface/khronos/include/EGL/eglext.h | ||
18 | @@ -225,6 +225,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st | ||
19 | |||
20 | #endif | ||
21 | |||
22 | +typedef void* EGLSyncKHR; | ||
23 | +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); | ||
24 | +typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); | ||
25 | +#ifndef EGL_ANDROID_native_fence_sync | ||
26 | +#define EGL_ANDROID_native_fence_sync 1 | ||
27 | +#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 | ||
28 | +#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 | ||
29 | +#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 | ||
30 | +#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 | ||
31 | +typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync); | ||
32 | +#ifdef EGL_EGLEXT_PROTOTYPES | ||
33 | +EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync); | ||
34 | +#endif | ||
35 | +#endif /* EGL_ANDROID_native_fence_sync */ | ||
36 | |||
37 | #ifdef __cplusplus | ||
38 | } | ||
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb index 32aa4a5..4a9fd21 100644 --- a/recipes-graphics/userland/userland_git.bb +++ b/recipes-graphics/userland/userland_git.bb | |||
@@ -44,6 +44,7 @@ SRC_URI = "\ | |||
44 | file://0021-cmake-Disable-format-overflow-warning-as-error.patch \ | 44 | file://0021-cmake-Disable-format-overflow-warning-as-error.patch \ |
45 | file://0022-all-host_applications-remove-non-existent-projects.patch \ | 45 | file://0022-all-host_applications-remove-non-existent-projects.patch \ |
46 | file://0023-hello_pi-optionally-build-wayland-specific-app.patch \ | 46 | file://0023-hello_pi-optionally-build-wayland-specific-app.patch \ |
47 | file://0024-userland-Sync-needed-defines-for-weston-build.patch \ | ||
47 | " | 48 | " |
48 | 49 | ||
49 | SRC_URI_remove_toolchain-clang = "file://0021-cmake-Disable-format-overflow-warning-as-error.patch" | 50 | SRC_URI_remove_toolchain-clang = "file://0021-cmake-Disable-format-overflow-warning-as-error.patch" |