userland: Upgrade to latest tip

Drop upstream applied patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2016-06-23 14:34:28 -07:00 committed by Andrei Gherzan
parent 43ecd9ac99
commit 5cac5e67f8
15 changed files with 66 additions and 169 deletions

View File

@ -1,7 +1,7 @@
From 1d750c8922cbb4276e4337d2af2776676c0bd224 Mon Sep 17 00:00:00 2001 From 83c5ac5892d0cd29caa8922ff8b639b9a373c3cb Mon Sep 17 00:00:00 2001
From: Dom Cobley <dc4@broadcom.com> From: Dom Cobley <dc4@broadcom.com>
Date: Tue, 9 Jul 2013 09:26:26 -0400 Date: Tue, 9 Jul 2013 09:26:26 -0400
Subject: [PATCH 03/13] Allow applications to set next resource handle Subject: [PATCH 01/13] Allow applications to set next resource handle
This patch adds provisions in userland to This patch adds provisions in userland to
let apps callers set the next rendereing dispmanx resource. let apps callers set the next rendereing dispmanx resource.
@ -204,5 +204,5 @@ index 8a5734c..51b3580 100644
FN(void, eglIntGetColorData_impl, (EGL_SURFACE_ID_T s, KHRN_IMAGE_FORMAT_T format, uint32_t width, uint32_t height, int32_t stride, uint32_t y_offset, void *data)) FN(void, eglIntGetColorData_impl, (EGL_SURFACE_ID_T s, KHRN_IMAGE_FORMAT_T format, uint32_t width, uint32_t height, int32_t stride, uint32_t y_offset, void *data))
-- --
2.7.4 2.9.0

View File

@ -1,114 +0,0 @@
From 9abccc4553b29643eee3c5a7edad641bc83f58f4 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 9 Aug 2015 23:59:32 -0700
Subject: [PATCH 02/13] cmake: generate and install pkgconfig files
many packages expect packageconfig support especially for detecting EGL
libraries. This patch helps in compiling those packages on RPi
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
CMakeLists.txt | 10 +++++++++-
pkgconfig/bcm_host.pc.in | 10 ++++++++++
pkgconfig/egl.pc.in | 13 +++++++++++++
pkgconfig/glesv2.pc.in | 12 ++++++++++++
pkgconfig/vg.pc.in | 11 +++++++++++
5 files changed, 55 insertions(+), 1 deletion(-)
create mode 100644 pkgconfig/bcm_host.pc.in
create mode 100644 pkgconfig/egl.pc.in
create mode 100644 pkgconfig/glesv2.pc.in
create mode 100644 pkgconfig/vg.pc.in
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aec0316..3113618 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,6 +113,14 @@ set(vmcs_host_apps_VERSION_MAJOR 1)
set(vmcs_host_apps_VERSION_MINOR 0)
include_directories("${PROJECT_BINARY_DIR}")
-
+include(FindPkgConfig QUIET)
+if(PKG_CONFIG_FOUND)
+ # Produce a pkg-config file
+ foreach(PCFILE bcm_host.pc egl.pc glesv2.pc vg.pc)
+ configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY)
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
+ endforeach()
+endif()
# Remove cache entry, if one added by command line
unset(KHRONOS_EGL_PLATFORM CACHE)
diff --git a/pkgconfig/bcm_host.pc.in b/pkgconfig/bcm_host.pc.in
new file mode 100644
index 0000000..c7237c5
--- /dev/null
+++ b/pkgconfig/bcm_host.pc.in
@@ -0,0 +1,10 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: bcm_host
+Description: Broadcom VideoCore host API library
+Version: 1
+Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm -pthread
+Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
diff --git a/pkgconfig/egl.pc.in b/pkgconfig/egl.pc.in
new file mode 100644
index 0000000..27a6236
--- /dev/null
+++ b/pkgconfig/egl.pc.in
@@ -0,0 +1,13 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: EGL
+Description: Fake EGL package for RPi
+Version: 10
+Requires: bcm_host
+Libs: -L${libdir} -lEGL -lGLESv2 -lbcm_host -lvchostif
+Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux \
+ -I${includedir}/interface/vcos/pthreads
+
diff --git a/pkgconfig/glesv2.pc.in b/pkgconfig/glesv2.pc.in
new file mode 100644
index 0000000..5900225
--- /dev/null
+++ b/pkgconfig/glesv2.pc.in
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: GLESv2
+Description: Fake GL ES 2 package for RPi
+Version: 10
+Requires: bcm_host
+Libs: -L${libdir} -lGLESv2
+Cflags: -I${includedir}
+
diff --git a/pkgconfig/vg.pc.in b/pkgconfig/vg.pc.in
new file mode 100644
index 0000000..8c39c98
--- /dev/null
+++ b/pkgconfig/vg.pc.in
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: OpenVG
+Description: Fake OpenVG package for RPi
+Version: 10
+Requires: bcm_host
+Libs: -L${libdir} -lOpenVG
+Cflags: -I${includedir}
--
2.7.4

View File

@ -1,7 +1,7 @@
From b8acbcddeb6774bdfc2f7329775a19cd362f47ea Mon Sep 17 00:00:00 2001 From 79ce2b4125359593f37c5b9744a37203e24249de Mon Sep 17 00:00:00 2001
From: Tomeu Vizoso <tomeu.vizoso@collabora.com> From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Date: Tue, 1 Oct 2013 13:19:20 +0200 Date: Tue, 1 Oct 2013 13:19:20 +0200
Subject: [PATCH 04/13] wayland: Add support for the Wayland winsys Subject: [PATCH 02/13] wayland: Add support for the Wayland winsys
* Adds EGL_WL_bind_wayland_display extension * Adds EGL_WL_bind_wayland_display extension
* Adds wayland-egl library * Adds wayland-egl library
@ -333,7 +333,7 @@ index 4f3ce49..84f6ec0 100644
/* OpenGL ES 1.1 and 2.0 functions */ /* OpenGL ES 1.1 and 2.0 functions */
diff --git a/interface/khronos/common/linux/khrn_client_platform_linux.c b/interface/khronos/common/linux/khrn_client_platform_linux.c diff --git a/interface/khronos/common/linux/khrn_client_platform_linux.c b/interface/khronos/common/linux/khrn_client_platform_linux.c
index a060f26..13c8c25 100644 index 9d43d15..00821d3 100644
--- a/interface/khronos/common/linux/khrn_client_platform_linux.c --- a/interface/khronos/common/linux/khrn_client_platform_linux.c
+++ b/interface/khronos/common/linux/khrn_client_platform_linux.c +++ b/interface/khronos/common/linux/khrn_client_platform_linux.c
@@ -37,6 +37,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @@ -37,6 +37,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@ -1595,7 +1595,7 @@ index 37fdae1..fe3619a 100755
} }
#endif #endif
diff --git a/interface/vmcs_host/vc_vchi_dispmanx.c b/interface/vmcs_host/vc_vchi_dispmanx.c diff --git a/interface/vmcs_host/vc_vchi_dispmanx.c b/interface/vmcs_host/vc_vchi_dispmanx.c
index 3c91e07..1d24b6e 100755 index d188068..3e668f5 100755
--- a/interface/vmcs_host/vc_vchi_dispmanx.c --- a/interface/vmcs_host/vc_vchi_dispmanx.c
+++ b/interface/vmcs_host/vc_vchi_dispmanx.c +++ b/interface/vmcs_host/vc_vchi_dispmanx.c
@@ -1316,3 +1316,45 @@ static void *dispmanx_notify_func( void *arg ) { @@ -1316,3 +1316,45 @@ static void *dispmanx_notify_func( void *arg ) {
@ -1876,5 +1876,5 @@ index 0000000..ad90d30
+ set(${_sources} ${${_sources}} PARENT_SCOPE) + set(${_sources} ${${_sources}} PARENT_SCOPE)
+endfunction() +endfunction()
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From 2d028f45ca223e30fb0947cb1dd7f0aee24b090a Mon Sep 17 00:00:00 2001 From b6ee187184456d66095146e3dc06b6baa29c17d7 Mon Sep 17 00:00:00 2001
From: Tomeu Vizoso <tomeu.vizoso@collabora.com> From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Date: Tue, 1 Oct 2013 13:19:20 +0200 Date: Tue, 1 Oct 2013 13:19:20 +0200
Subject: [PATCH 05/13] wayland: Add Wayland example Subject: [PATCH 03/13] wayland: Add Wayland example
--- ---
.../linux/apps/hello_pi/CMakeLists.txt | 1 + .../linux/apps/hello_pi/CMakeLists.txt | 1 +
@ -862,5 +862,5 @@ index fa4539e..37120ac 100755
- -
+make -C hello_wayland +make -C hello_wayland
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From f292e22f1988a0ce2ea7226dc882235daea6071b Mon Sep 17 00:00:00 2001 From e3df3fec01aefac3ec301f6f3d5ec3e91652b9c5 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 10 Aug 2015 02:38:27 -0700 Date: Mon, 10 Aug 2015 02:38:27 -0700
Subject: [PATCH 06/13] wayland-egl: Add bcm_host to dependencies Subject: [PATCH 04/13] wayland-egl: Add bcm_host to dependencies
It uses headers like vcos_platform_types.h but does not It uses headers like vcos_platform_types.h but does not
depend on module which should add the required include paths depend on module which should add the required include paths
@ -24,5 +24,5 @@ index 8bafc15..fd259c9 100644
Libs: -L${libdir} -lwayland-egl Libs: -L${libdir} -lwayland-egl
Cflags: -I${includedir} Cflags: -I${includedir}
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From 39de2c976a1a98cd6c8ee20154c63d302d9a0c54 Mon Sep 17 00:00:00 2001 From 6c9d407c9ec0859380e7bcf35cf915cef4b3687b Mon Sep 17 00:00:00 2001
From: "Yann E. MORIN" <yann.morin.1998@free.fr> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
Date: Sat, 24 Jan 2015 22:07:19 +0100 Date: Sat, 24 Jan 2015 22:07:19 +0100
Subject: [PATCH 07/13] interface: remove faulty assert() to make weston happy Subject: [PATCH 05/13] interface: remove faulty assert() to make weston happy
at runtime at runtime
This was removed after a discussion on IRC with the weston guys This was removed after a discussion on IRC with the weston guys
@ -13,7 +13,7 @@ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 file changed, 1 deletion(-) 1 file changed, 1 deletion(-)
diff --git a/interface/vmcs_host/vc_vchi_dispmanx.c b/interface/vmcs_host/vc_vchi_dispmanx.c diff --git a/interface/vmcs_host/vc_vchi_dispmanx.c b/interface/vmcs_host/vc_vchi_dispmanx.c
index 1d24b6e..e2e7ccc 100755 index 3e668f5..8e065dc 100755
--- a/interface/vmcs_host/vc_vchi_dispmanx.c --- a/interface/vmcs_host/vc_vchi_dispmanx.c
+++ b/interface/vmcs_host/vc_vchi_dispmanx.c +++ b/interface/vmcs_host/vc_vchi_dispmanx.c
@@ -1304,7 +1304,6 @@ static void *dispmanx_notify_func( void *arg ) { @@ -1304,7 +1304,6 @@ static void *dispmanx_notify_func( void *arg ) {
@ -25,5 +25,5 @@ index 1d24b6e..e2e7ccc 100755
} }
} else { } else {
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From 944e559da5c34db74321c811694132aeb30439b2 Mon Sep 17 00:00:00 2001 From e3ffe9438fe8417586d0045d00eb1368ca3a71b6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 6 Feb 2016 11:10:47 -0800 Date: Sat, 6 Feb 2016 11:10:47 -0800
Subject: [PATCH 08/13] zero-out wl buffers in egl_surface_free Subject: [PATCH 06/13] zero-out wl buffers in egl_surface_free
origins from buildroot origins from buildroot
@ -29,5 +29,5 @@ index 49cf7e5..512c83b 100644
#endif #endif
} }
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From bea88c648c775472cfc1d067e166e270ce610f3a Mon Sep 17 00:00:00 2001 From ed31a6a206c9e205bd5316e95788e5d7bb837e38 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 6 Feb 2016 11:11:41 -0800 Date: Sat, 6 Feb 2016 11:11:41 -0800
Subject: [PATCH 09/13] initialize front back wayland buffers Subject: [PATCH 07/13] initialize front back wayland buffers
origins from metrological wayland support origins from metrological wayland support
@ -30,5 +30,5 @@ index 512c83b..a429724 100644
} }
#endif #endif
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From f1cbd0eccc9e4677a2fd7714cffd88a5ecb24ed1 Mon Sep 17 00:00:00 2001 From 6e173040a825185013ccbbb33113442207f10eeb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 6 Feb 2016 11:09:18 -0800 Date: Sat, 6 Feb 2016 11:09:18 -0800
Subject: [PATCH 10/13] Remove RPC_FLUSH Subject: [PATCH 08/13] Remove RPC_FLUSH
Origins from buildroot Origins from buildroot
@ -23,5 +23,5 @@ index f9b7287..b04ffef 100644
} }
#endif #endif
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From 66d6b4040b5fa9a135a91ca2d152c539cce56159 Mon Sep 17 00:00:00 2001 From c4217231fd78daee83b0c0f312c1d392aa6e0f47 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 6 Feb 2016 13:12:47 -0800 Date: Sat, 6 Feb 2016 13:12:47 -0800
Subject: [PATCH 11/13] fix cmake dependency race Subject: [PATCH 09/13] fix cmake dependency race
Fixes errors like Fixes errors like
@ -74,5 +74,5 @@ index f0bae30..8c44c58 100644
struct wl_resource *resource; struct wl_resource *resource;
struct wl_dispmanx *dispmanx; struct wl_dispmanx *dispmanx;
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From b2b1a4f7564a7ba50b705f850edffbf6f437a896 Mon Sep 17 00:00:00 2001 From 377f6aada3b7569e3d662fc830e01b8c5ba8a15d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 18 Feb 2016 09:04:46 +0000 Date: Thu, 18 Feb 2016 09:04:46 +0000
Subject: [PATCH 12/13] Fix enum conversion warnings Subject: [PATCH 10/13] Fix enum conversion warnings
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- ---
@ -95,5 +95,5 @@ index f088296..83e3724 100644
omx->pixel_y = mmal->pixel_y; omx->pixel_y = mmal->pixel_y;
omx->layer = mmal->layer; omx->layer = mmal->layer;
-- --
2.7.4 2.9.0

View File

@ -1,7 +1,7 @@
From f8779a124fc447b63c1ba1795330bdc2d765dc7a Mon Sep 17 00:00:00 2001 From 6e634184ee4b3d2c98c3213a3931845ec3014754 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 29 Mar 2016 20:38:30 -0700 Date: Tue, 29 Mar 2016 20:38:30 -0700
Subject: [PATCH 13/13] Fix for framerate with nested composition Subject: [PATCH 11/13] Fix for framerate with nested composition
frame rate appears irregular and lower than expected when using nested composition. frame rate appears irregular and lower than expected when using nested composition.
@ -56,5 +56,5 @@ index 024f3ed..83970ec 100644
#ifdef ANDROID #ifdef ANDROID
CLIENT_UNLOCK(); CLIENT_UNLOCK();
-- --
2.8.0 2.9.0

View File

@ -1,7 +1,7 @@
From 4e9aa3fffb458ca4fafd2241c18e9c8008b66ad8 Mon Sep 17 00:00:00 2001 From 559209ce15027b3370466ccb56223a7a66d2a40c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com> From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 2 Apr 2016 10:37:24 -0700 Date: Sat, 2 Apr 2016 10:37:24 -0700
Subject: [PATCH] build shared library for vchostif Subject: [PATCH 12/13] build shared library for vchostif
Fixes #149 Fixes #149
@ -24,5 +24,5 @@ index 22949a8..f8c2f2f 100755
#add_library(bufman vc_vchi_bufman.c ) #add_library(bufman vc_vchi_bufman.c )
-- --
2.8.0 2.9.0

View File

@ -1,7 +1,16 @@
implement buffer wrapping interface for dispmanx From 5b55a152651eece345d9ea1e0e40ecd9fc4ca2d5 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 2 Apr 2016 10:54:59 -0700
Subject: [PATCH 13/13] implement buffer wrapping interface for dispmanx
Courtesy: Zan Dobersek Courtesy: Zan Dobersek
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
interface/khronos/ext/egl_wayland.c | 42 +++++++++++++++++++++++++++++++++++++
interface/wayland/dispmanx.xml | 10 +++++++++
2 files changed, 52 insertions(+)
diff --git a/interface/khronos/ext/egl_wayland.c b/interface/khronos/ext/egl_wayland.c diff --git a/interface/khronos/ext/egl_wayland.c b/interface/khronos/ext/egl_wayland.c
index 5730743..9ef89cd 100644 index 5730743..9ef89cd 100644
--- a/interface/khronos/ext/egl_wayland.c --- a/interface/khronos/ext/egl_wayland.c
@ -78,3 +87,6 @@ index c18626d..11ed1ef 100644
</interface> </interface>
</protocol> </protocol>
--
2.9.0

View File

@ -16,24 +16,23 @@ COMPATIBLE_MACHINE = "raspberrypi"
SRCBRANCH = "master" SRCBRANCH = "master"
SRCFORK = "raspberrypi" SRCFORK = "raspberrypi"
SRCREV = "17c28b9d1d234893b73adeb95efc4959b617fc85" SRCREV = "0147f98bdd4fdc822d25d8a70cf5adc5adb89096"
SRC_URI = "\ SRC_URI = "\
git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
file://0002-cmake-generate-and-install-pkgconfig-files.patch \ file://0001-Allow-applications-to-set-next-resource-handle.patch \
file://0003-Allow-applications-to-set-next-resource-handle.patch \ file://0002-wayland-Add-support-for-the-Wayland-winsys.patch \
file://0004-wayland-Add-support-for-the-Wayland-winsys.patch \ file://0003-wayland-Add-Wayland-example.patch \
file://0005-wayland-Add-Wayland-example.patch \ file://0004-wayland-egl-Add-bcm_host-to-dependencies.patch \
file://0006-wayland-egl-Add-bcm_host-to-dependencies.patch \ file://0005-interface-remove-faulty-assert-to-make-weston-happy-.patch \
file://0007-interface-remove-faulty-assert-to-make-weston-happy-.patch \ file://0006-zero-out-wl-buffers-in-egl_surface_free.patch \
file://0008-zero-out-wl-buffers-in-egl_surface_free.patch \ file://0007-initialize-front-back-wayland-buffers.patch \
file://0009-initialize-front-back-wayland-buffers.patch \ file://0008-Remove-RPC_FLUSH.patch \
file://0010-Remove-RPC_FLUSH.patch \ file://0009-fix-cmake-dependency-race.patch \
file://0011-fix-cmake-dependency-race.patch \ file://0010-Fix-enum-conversion-warnings.patch \
file://0012-Fix-enum-conversion-warnings.patch \ file://0011-Fix-for-framerate-with-nested-composition.patch \
file://0013-Fix-for-framerate-with-nested-composition.patch \ file://0012-build-shared-library-for-vchostif.patch \
file://0014-build-shared-library-for-vchostif.patch \ file://0013-implement-buffer-wrapping-interface-for-dispmanx.patch \
file://0015-wl-dispmanx-buffer-wrapping.patch \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"