summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-12-14 18:34:42 -0800
committerAndrei Gherzan <andrei@gherzan.ro>2016-12-29 19:33:17 +0100
commit90c45b48f6a28feee4163fd0b46d3c54919d2d07 (patch)
treea85060355a220e3bd8868e9ad59e6e7c583125eb
parent96b9c633d7232e451c771220dcebc733b60276d9 (diff)
downloadmeta-raspberrypi-90c45b48f6a28feee4163fd0b46d3c54919d2d07.tar.gz
userland: Update to latest
* Regenerate forward patches * Remove upstreamed ones Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-graphics/userland/userland/0001-Allow-applications-to-set-next-resource-handle.patch6
-rw-r--r--recipes-graphics/userland/userland/0002-wayland-Add-support-for-the-Wayland-winsys.patch36
-rw-r--r--recipes-graphics/userland/userland/0003-wayland-Add-Wayland-example.patch4
-rw-r--r--recipes-graphics/userland/userland/0004-wayland-egl-Add-bcm_host-to-dependencies.patch6
-rw-r--r--recipes-graphics/userland/userland/0005-interface-remove-faulty-assert-to-make-weston-happy-.patch6
-rw-r--r--recipes-graphics/userland/userland/0006-zero-out-wl-buffers-in-egl_surface_free.patch6
-rw-r--r--recipes-graphics/userland/userland/0007-initialize-front-back-wayland-buffers.patch6
-rw-r--r--recipes-graphics/userland/userland/0008-Remove-RPC_FLUSH.patch6
-rw-r--r--recipes-graphics/userland/userland/0009-fix-cmake-dependency-race.patch6
-rw-r--r--recipes-graphics/userland/userland/0010-Fix-enum-conversion-warnings.patch99
-rw-r--r--recipes-graphics/userland/userland/0010-Fix-for-framerate-with-nested-composition.patch (renamed from recipes-graphics/userland/userland/0011-Fix-for-framerate-with-nested-composition.patch)6
-rw-r--r--recipes-graphics/userland/userland/0011-build-shared-library-for-vchostif.patch (renamed from recipes-graphics/userland/userland/0012-build-shared-library-for-vchostif.patch)6
-rw-r--r--recipes-graphics/userland/userland/0012-implement-buffer-wrapping-interface-for-dispmanx.patch (renamed from recipes-graphics/userland/userland/0013-implement-buffer-wrapping-interface-for-dispmanx.patch)6
-rw-r--r--recipes-graphics/userland/userland_git.bb9
14 files changed, 55 insertions, 153 deletions
diff --git a/recipes-graphics/userland/userland/0001-Allow-applications-to-set-next-resource-handle.patch b/recipes-graphics/userland/userland/0001-Allow-applications-to-set-next-resource-handle.patch
index b5bf461..4f72845 100644
--- a/recipes-graphics/userland/userland/0001-Allow-applications-to-set-next-resource-handle.patch
+++ b/recipes-graphics/userland/userland/0001-Allow-applications-to-set-next-resource-handle.patch
@@ -1,7 +1,7 @@
1From 2b87c1271a5b2fc60a7bcfcaf902f3ef69ccad24 Mon Sep 17 00:00:00 2001 1From 4b68419e58ef31e72abab688d0c7cc5db80efc13 Mon Sep 17 00:00:00 2001
2From: Dom Cobley <dc4@broadcom.com> 2From: Dom Cobley <dc4@broadcom.com>
3Date: Tue, 9 Jul 2013 09:26:26 -0400 3Date: Tue, 9 Jul 2013 09:26:26 -0400
4Subject: [PATCH 01/13] Allow applications to set next resource handle 4Subject: [PATCH 01/12] Allow applications to set next resource handle
5 5
6This patch adds provisions in userland to 6This patch adds provisions in userland to
7let apps callers set the next rendereing dispmanx resource. 7let apps callers set the next rendereing dispmanx resource.
@@ -204,5 +204,5 @@ index 8a5734c..51b3580 100644
204 204
205 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)) 205 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))
206-- 206--
2072.10.0 2072.10.2
208 208
diff --git a/recipes-graphics/userland/userland/0002-wayland-Add-support-for-the-Wayland-winsys.patch b/recipes-graphics/userland/userland/0002-wayland-Add-support-for-the-Wayland-winsys.patch
index 2abe5ce..6cc8ea8 100644
--- a/recipes-graphics/userland/userland/0002-wayland-Add-support-for-the-Wayland-winsys.patch
+++ b/recipes-graphics/userland/userland/0002-wayland-Add-support-for-the-Wayland-winsys.patch
@@ -1,7 +1,7 @@
1From 3a0e094a6aac53c9ddc4b28feb77cfc1a319880d Mon Sep 17 00:00:00 2001 1From e3d2d0007e1c6c32ab7d9a28f1e399d42b511333 Mon Sep 17 00:00:00 2001
2From: Tomeu Vizoso <tomeu.vizoso@collabora.com> 2From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
3Date: Tue, 1 Oct 2013 13:19:20 +0200 3Date: Tue, 1 Oct 2013 13:19:20 +0200
4Subject: [PATCH 02/13] wayland: Add support for the Wayland winsys 4Subject: [PATCH 02/12] wayland: Add support for the Wayland winsys
5 5
6* Adds EGL_WL_bind_wayland_display extension 6* Adds EGL_WL_bind_wayland_display extension
7* Adds wayland-egl library 7* Adds wayland-egl library
@@ -22,7 +22,7 @@ vc_vchi_dispmanx.h
22 README.md | 4 + 22 README.md | 4 +
23 buildme | 10 +- 23 buildme | 10 +-
24 .../linux/apps/raspicam/CMakeLists.txt | 2 +- 24 .../linux/apps/raspicam/CMakeLists.txt | 2 +-
25 interface/khronos/CMakeLists.txt | 52 ++++- 25 interface/khronos/CMakeLists.txt | 53 ++++-
26 interface/khronos/common/khrn_client.c | 15 ++ 26 interface/khronos/common/khrn_client.c | 15 ++
27 interface/khronos/common/khrn_client.h | 10 + 27 interface/khronos/common/khrn_client.h | 10 +
28 interface/khronos/common/khrn_client_mangle.h | 3 + 28 interface/khronos/common/khrn_client_mangle.h | 3 +
@@ -47,7 +47,7 @@ vc_vchi_dispmanx.h
47 interface/vmcs_host/vc_vchi_dispmanx.h | 15 ++ 47 interface/vmcs_host/vc_vchi_dispmanx.h | 15 ++
48 interface/wayland/dispmanx.xml | 123 +++++++++++ 48 interface/wayland/dispmanx.xml | 123 +++++++++++
49 makefiles/cmake/Wayland.cmake | 72 ++++++ 49 makefiles/cmake/Wayland.cmake | 72 ++++++
50 30 files changed, 1258 insertions(+), 97 deletions(-) 50 30 files changed, 1258 insertions(+), 98 deletions(-)
51 create mode 100644 interface/khronos/common/linux/khrn_wayland.c 51 create mode 100644 interface/khronos/common/linux/khrn_wayland.c
52 copy interface/{vmcs_host/vc_vchi_dispmanx.h => khronos/common/linux/khrn_wayland.h} (56%) 52 copy interface/{vmcs_host/vc_vchi_dispmanx.h => khronos/common/linux/khrn_wayland.h} (56%)
53 create mode 100644 interface/khronos/ext/egl_wayland.c 53 create mode 100644 interface/khronos/ext/egl_wayland.c
@@ -68,10 +68,10 @@ index 4a88665..5da71a9 100644
68+ 68+
69+*~ 69+*~
70diff --git a/CMakeLists.txt b/CMakeLists.txt 70diff --git a/CMakeLists.txt b/CMakeLists.txt
71index d3159c7..58eb8f7 100644 71index 98252c3..d6ae907 100644
72--- a/CMakeLists.txt 72--- a/CMakeLists.txt
73+++ b/CMakeLists.txt 73+++ b/CMakeLists.txt
74@@ -19,6 +19,17 @@ include(makefiles/cmake/global_settings.cmake) 74@@ -24,6 +24,17 @@ include(makefiles/cmake/global_settings.cmake)
75 include(makefiles/cmake/arm-linux.cmake) 75 include(makefiles/cmake/arm-linux.cmake)
76 include(makefiles/cmake/vmcs.cmake) 76 include(makefiles/cmake/vmcs.cmake)
77 77
@@ -102,7 +102,7 @@ index 358d2b4..4da4448 100644
102+ 102+
103+$ BUILD_WAYLAND=1 ./buildme. 103+$ BUILD_WAYLAND=1 ./buildme.
104diff --git a/buildme b/buildme 104diff --git a/buildme b/buildme
105index d778276..f509864 100755 105index 1061745..d0e6e54 100755
106--- a/buildme 106--- a/buildme
107+++ b/buildme 107+++ b/buildme
108@@ -8,6 +8,10 @@ fi 108@@ -8,6 +8,10 @@ fi
@@ -132,10 +132,10 @@ index d778276..f509864 100755
132 132
133 if [ "$1" != "" ]; then 133 if [ "$1" != "" ]; then
134diff --git a/host_applications/linux/apps/raspicam/CMakeLists.txt b/host_applications/linux/apps/raspicam/CMakeLists.txt 134diff --git a/host_applications/linux/apps/raspicam/CMakeLists.txt b/host_applications/linux/apps/raspicam/CMakeLists.txt
135index 2afc145..126211f 100644 135index e6aa6b8..69059cb 100644
136--- a/host_applications/linux/apps/raspicam/CMakeLists.txt 136--- a/host_applications/linux/apps/raspicam/CMakeLists.txt
137+++ b/host_applications/linux/apps/raspicam/CMakeLists.txt 137+++ b/host_applications/linux/apps/raspicam/CMakeLists.txt
138@@ -26,7 +26,7 @@ add_executable(raspividyuv ${COMMON_SOURCES} RaspiVidYUV.c) 138@@ -28,7 +28,7 @@ add_executable(raspividyuv ${COMMON_SOURCES} RaspiVidYUV.c)
139 139
140 set (MMAL_LIBS mmal_core mmal_util mmal_vc_client) 140 set (MMAL_LIBS mmal_core mmal_util mmal_vc_client)
141 141
@@ -145,7 +145,7 @@ index 2afc145..126211f 100644
145 target_link_libraries(raspivid ${MMAL_LIBS} vcos bcm_host) 145 target_link_libraries(raspivid ${MMAL_LIBS} vcos bcm_host)
146 target_link_libraries(raspividyuv ${MMAL_LIBS} vcos bcm_host) 146 target_link_libraries(raspividyuv ${MMAL_LIBS} vcos bcm_host)
147diff --git a/interface/khronos/CMakeLists.txt b/interface/khronos/CMakeLists.txt 147diff --git a/interface/khronos/CMakeLists.txt b/interface/khronos/CMakeLists.txt
148index 4231af4..7506e5c 100644 148index 9ad615b..3d3571a 100644
149--- a/interface/khronos/CMakeLists.txt 149--- a/interface/khronos/CMakeLists.txt
150+++ b/interface/khronos/CMakeLists.txt 150+++ b/interface/khronos/CMakeLists.txt
151@@ -6,6 +6,12 @@ 151@@ -6,6 +6,12 @@
@@ -161,7 +161,7 @@ index 4231af4..7506e5c 100644
161 set(EGL_SOURCE 161 set(EGL_SOURCE
162 egl/egl_client_config.c 162 egl/egl_client_config.c
163 egl/egl_client_context.c 163 egl/egl_client_context.c
164@@ -55,19 +61,63 @@ set(CLIENT_SOURCE 164@@ -55,12 +61,56 @@ set(CLIENT_SOURCE
165 common/khrn_int_hash_asm.s 165 common/khrn_int_hash_asm.s
166 common/khrn_client_cache.c) 166 common/khrn_client_cache.c)
167 167
@@ -218,11 +218,13 @@ index 4231af4..7506e5c 100644
218 # TODO do we need EGL_static and GLESv2_static now that khrn_static exists? 218 # TODO do we need EGL_static and GLESv2_static now that khrn_static exists?
219 add_library(EGL_static STATIC ${EGL_SOURCE}) 219 add_library(EGL_static STATIC ${EGL_SOURCE})
220 add_library(GLESv2_static STATIC ${GLES_SOURCE}) 220 add_library(GLESv2_static STATIC ${GLES_SOURCE})
221 add_library(khrn_static STATIC 221@@ -72,8 +122,7 @@ include_directories (../../host_applications/linux/libs/sm )
222 ${EGL_SOURCE} ${GLES_SOURCE} ${VG_SOURCE} ${WFC_SOURCE} ${CLIENT_SOURCE}) 222 set(VCSM_LIBS vcsm)
223 223 add_definitions(-DKHRONOS_HAVE_VCSM)
224-target_link_libraries(EGL khrn_client vchiq_arm vcos bcm_host -lm) 224 endif()
225+target_link_libraries(EGL ${EGL_LIBS}) 225-
226-target_link_libraries(EGL khrn_client vchiq_arm vcos bcm_host ${VCSM_LIBS} -lm)
227+target_link_libraries(EGL ${EGL_LIBS} ${VCSM_LIBS})
226 target_link_libraries(GLESv2 EGL khrn_client vcos) 228 target_link_libraries(GLESv2 EGL khrn_client vcos)
227 target_link_libraries(WFC EGL) 229 target_link_libraries(WFC EGL)
228 target_link_libraries(OpenVG EGL) 230 target_link_libraries(OpenVG EGL)
@@ -1883,5 +1885,5 @@ index 0000000..ad90d30
1883+ set(${_sources} ${${_sources}} PARENT_SCOPE) 1885+ set(${_sources} ${${_sources}} PARENT_SCOPE)
1884+endfunction() 1886+endfunction()
1885-- 1887--
18862.10.0 18882.10.2
1887 1889
diff --git a/recipes-graphics/userland/userland/0003-wayland-Add-Wayland-example.patch b/recipes-graphics/userland/userland/0003-wayland-Add-Wayland-example.patch
index 98f18c8..bbd9727 100644
--- a/recipes-graphics/userland/userland/0003-wayland-Add-Wayland-example.patch
+++ b/recipes-graphics/userland/userland/0003-wayland-Add-Wayland-example.patch
@@ -1,7 +1,7 @@
1From 6ee44bd040bf8e8abf9c5a7be7f6ea4b82d5671a Mon Sep 17 00:00:00 2001 1From 8a4b3ea902bbcc08452e13a61ffbdc834bc13ea3 Mon Sep 17 00:00:00 2001
2From: Tomeu Vizoso <tomeu.vizoso@collabora.com> 2From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
3Date: Tue, 1 Oct 2013 13:19:20 +0200 3Date: Tue, 1 Oct 2013 13:19:20 +0200
4Subject: [PATCH 03/13] wayland: Add Wayland example 4Subject: [PATCH 03/12] wayland: Add Wayland example
5 5
6--- 6---
7 .../linux/apps/hello_pi/CMakeLists.txt | 1 + 7 .../linux/apps/hello_pi/CMakeLists.txt | 1 +
diff --git a/recipes-graphics/userland/userland/0004-wayland-egl-Add-bcm_host-to-dependencies.patch b/recipes-graphics/userland/userland/0004-wayland-egl-Add-bcm_host-to-dependencies.patch
index 0f9e528..752b61a 100644
--- a/recipes-graphics/userland/userland/0004-wayland-egl-Add-bcm_host-to-dependencies.patch
+++ b/recipes-graphics/userland/userland/0004-wayland-egl-Add-bcm_host-to-dependencies.patch
@@ -1,7 +1,7 @@
1From 5f01581e1288040507154ccc38d8bd99b13ed855 Mon Sep 17 00:00:00 2001 1From 718402e1be80ff9fb9863e847e31072ec735a5eb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 10 Aug 2015 02:38:27 -0700 3Date: Mon, 10 Aug 2015 02:38:27 -0700
4Subject: [PATCH 04/13] wayland-egl: Add bcm_host to dependencies 4Subject: [PATCH 04/12] wayland-egl: Add bcm_host to dependencies
5 5
6It uses headers like vcos_platform_types.h but does not 6It uses headers like vcos_platform_types.h but does not
7depend on module which should add the required include paths 7depend on module which should add the required include paths
@@ -24,5 +24,5 @@ index 8bafc15..fd259c9 100644
24 Libs: -L${libdir} -lwayland-egl 24 Libs: -L${libdir} -lwayland-egl
25 Cflags: -I${includedir} 25 Cflags: -I${includedir}
26-- 26--
272.10.0 272.10.2
28 28
diff --git a/recipes-graphics/userland/userland/0005-interface-remove-faulty-assert-to-make-weston-happy-.patch b/recipes-graphics/userland/userland/0005-interface-remove-faulty-assert-to-make-weston-happy-.patch
index 9a3aa46..05b0dfa 100644
--- a/recipes-graphics/userland/userland/0005-interface-remove-faulty-assert-to-make-weston-happy-.patch
+++ b/recipes-graphics/userland/userland/0005-interface-remove-faulty-assert-to-make-weston-happy-.patch
@@ -1,7 +1,7 @@
1From 6e333fef608c5738d2d9a812de29fc8b1edd24cc Mon Sep 17 00:00:00 2001 1From 2a6e3d53a75fe44ec6fa3ae64c8ca5664b614979 Mon Sep 17 00:00:00 2001
2From: "Yann E. MORIN" <yann.morin.1998@free.fr> 2From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3Date: Sat, 24 Jan 2015 22:07:19 +0100 3Date: Sat, 24 Jan 2015 22:07:19 +0100
4Subject: [PATCH 05/13] interface: remove faulty assert() to make weston happy 4Subject: [PATCH 05/12] interface: remove faulty assert() to make weston happy
5 at runtime 5 at runtime
6 6
7This was removed after a discussion on IRC with the weston guys 7This was removed after a discussion on IRC with the weston guys
@@ -25,5 +25,5 @@ index 45f4cff..5d0368c 100755
25 } 25 }
26 } else { 26 } else {
27-- 27--
282.10.0 282.10.2
29 29
diff --git a/recipes-graphics/userland/userland/0006-zero-out-wl-buffers-in-egl_surface_free.patch b/recipes-graphics/userland/userland/0006-zero-out-wl-buffers-in-egl_surface_free.patch
index 5ec459e..f4da1c1 100644
--- a/recipes-graphics/userland/userland/0006-zero-out-wl-buffers-in-egl_surface_free.patch
+++ b/recipes-graphics/userland/userland/0006-zero-out-wl-buffers-in-egl_surface_free.patch
@@ -1,7 +1,7 @@
1From 16b837f5d6e8a62ba11029c005488880d02befbf Mon Sep 17 00:00:00 2001 1From a3d43c1b754fc0576b428d36a877b9b50dd5d1ce Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:10:47 -0800 3Date: Sat, 6 Feb 2016 11:10:47 -0800
4Subject: [PATCH 06/13] zero-out wl buffers in egl_surface_free 4Subject: [PATCH 06/12] zero-out wl buffers in egl_surface_free
5 5
6origins from buildroot 6origins from buildroot
7 7
@@ -29,5 +29,5 @@ index 42350bf..1f923d9 100644
29 #endif 29 #endif
30 } 30 }
31-- 31--
322.10.0 322.10.2
33 33
diff --git a/recipes-graphics/userland/userland/0007-initialize-front-back-wayland-buffers.patch b/recipes-graphics/userland/userland/0007-initialize-front-back-wayland-buffers.patch
index 90f4a84..47f633a 100644
--- a/recipes-graphics/userland/userland/0007-initialize-front-back-wayland-buffers.patch
+++ b/recipes-graphics/userland/userland/0007-initialize-front-back-wayland-buffers.patch
@@ -1,7 +1,7 @@
1From efe05f6bdb77da027ddc2384e9a9043655a2a03b Mon Sep 17 00:00:00 2001 1From 5b37f53cff07f37b281c25f987b9dbdacc264bf6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:11:41 -0800 3Date: Sat, 6 Feb 2016 11:11:41 -0800
4Subject: [PATCH 07/13] initialize front back wayland buffers 4Subject: [PATCH 07/12] initialize front back wayland buffers
5 5
6origins from metrological wayland support 6origins from metrological wayland support
7 7
@@ -30,5 +30,5 @@ index 1f923d9..9a9582c 100644
30 } 30 }
31 #endif 31 #endif
32-- 32--
332.10.0 332.10.2
34 34
diff --git a/recipes-graphics/userland/userland/0008-Remove-RPC_FLUSH.patch b/recipes-graphics/userland/userland/0008-Remove-RPC_FLUSH.patch
index a5c2ed1..7491842 100644
--- a/recipes-graphics/userland/userland/0008-Remove-RPC_FLUSH.patch
+++ b/recipes-graphics/userland/userland/0008-Remove-RPC_FLUSH.patch
@@ -1,7 +1,7 @@
1From bf98ea35dcbf86e7b422c8706efcbc01ddb2f6b9 Mon Sep 17 00:00:00 2001 1From 14a749a3f840e93db548373b907a7a0e664dcfdb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:09:18 -0800 3Date: Sat, 6 Feb 2016 11:09:18 -0800
4Subject: [PATCH 08/13] Remove RPC_FLUSH 4Subject: [PATCH 08/12] Remove RPC_FLUSH
5 5
6Origins from buildroot 6Origins from buildroot
7 7
@@ -23,5 +23,5 @@ index f9b7287..b04ffef 100644
23 } 23 }
24 #endif 24 #endif
25-- 25--
262.10.0 262.10.2
27 27
diff --git a/recipes-graphics/userland/userland/0009-fix-cmake-dependency-race.patch b/recipes-graphics/userland/userland/0009-fix-cmake-dependency-race.patch
index 3e5cce8..3f57d1e 100644
--- a/recipes-graphics/userland/userland/0009-fix-cmake-dependency-race.patch
+++ b/recipes-graphics/userland/userland/0009-fix-cmake-dependency-race.patch
@@ -1,7 +1,7 @@
1From 028957cc519abf5e52d22966d219973294112e54 Mon Sep 17 00:00:00 2001 1From b5392c39d7407a5226c9314bc01ed82877ff0539 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 13:12:47 -0800 3Date: Sat, 6 Feb 2016 13:12:47 -0800
4Subject: [PATCH 09/13] fix cmake dependency race 4Subject: [PATCH 09/12] fix cmake dependency race
5 5
6Fixes errors like 6Fixes errors like
7 7
@@ -74,5 +74,5 @@ index f0bae30..8c44c58 100644
74 struct wl_resource *resource; 74 struct wl_resource *resource;
75 struct wl_dispmanx *dispmanx; 75 struct wl_dispmanx *dispmanx;
76-- 76--
772.10.0 772.10.2
78 78
diff --git a/recipes-graphics/userland/userland/0010-Fix-enum-conversion-warnings.patch b/recipes-graphics/userland/userland/0010-Fix-enum-conversion-warnings.patch
deleted file mode 100644
index 0b03aed..0000000
--- a/recipes-graphics/userland/userland/0010-Fix-enum-conversion-warnings.patch
+++ /dev/null
@@ -1,99 +0,0 @@
1From 67b00c2b44cec5a7519acfdde43d5ea27c5ff6a8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 18 Feb 2016 09:04:46 +0000
4Subject: [PATCH 10/13] Fix enum conversion warnings
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 interface/mmal/openmaxil/mmalomx_core.c | 4 ++--
9 interface/mmal/openmaxil/mmalomx_parameters.c | 6 +++---
10 interface/mmal/openmaxil/mmalomx_util_params_video.c | 8 ++++----
11 3 files changed, 9 insertions(+), 9 deletions(-)
12
13diff --git a/interface/mmal/openmaxil/mmalomx_core.c b/interface/mmal/openmaxil/mmalomx_core.c
14index 9bc632b..20d4fc7 100644
15--- a/interface/mmal/openmaxil/mmalomx_core.c
16+++ b/interface/mmal/openmaxil/mmalomx_core.c
17@@ -281,7 +281,7 @@ static OMX_ERRORTYPE mmalomx_ComponentGetParameter(
18 {
19 OMX_PARAM_PORTDEFINITIONTYPE *param = (OMX_PARAM_PORTDEFINITIONTYPE *)pParam;
20 PARAM_GET_PORT(port, component, param->nPortIndex);
21- return mmalil_error_to_mmal(mmalomx_get_port_settings(port, param));
22+ return mmalil_error_to_omx(mmalomx_get_port_settings(port, param));
23 }
24 return OMX_ErrorNone;
25 break;
26@@ -475,7 +475,7 @@ static OMX_ERRORTYPE mmalomx_ComponentSetParameter(
27 {
28 OMX_PARAM_PORTDEFINITIONTYPE *param = (OMX_PARAM_PORTDEFINITIONTYPE *)pParam;
29 PARAM_GET_PORT(port, component, param->nPortIndex);
30- return mmalil_error_to_mmal(mmalomx_set_port_settings(port, param));
31+ return mmalil_error_to_omx(mmalomx_set_port_settings(port, param));
32 }
33 return OMX_ErrorNone;
34 break;
35diff --git a/interface/mmal/openmaxil/mmalomx_parameters.c b/interface/mmal/openmaxil/mmalomx_parameters.c
36index a20a5bd..c4f97d4 100644
37--- a/interface/mmal/openmaxil/mmalomx_parameters.c
38+++ b/interface/mmal/openmaxil/mmalomx_parameters.c
39@@ -170,7 +170,7 @@ static OMX_ERRORTYPE mmalomx_parameter_get_xlat(MMALOMX_COMPONENT_T *component,
40
41 if (xlat->fn.custom)
42 {
43- return mmalil_error_to_mmal(xlat->fn.custom(MMALOMX_PARAM_MAPPING_TO_OMX, xlat, mmal_header,
44+ return mmalil_error_to_omx(xlat->fn.custom(MMALOMX_PARAM_MAPPING_TO_OMX, xlat, mmal_header,
45 pParam, mmal_port));
46 }
47
48@@ -554,14 +554,14 @@ OMX_ERRORTYPE mmalomx_parameter_set(MMALOMX_COMPONENT_T *component,
49 port->mmal->format->es->video.par.num = param->nX;
50 port->mmal->format->es->video.par.den = param->nY;
51 mmal_rational_simplify(&port->mmal->format->es->video.par);
52- return mmalil_error_to_mmal(mmal_port_format_commit(port->mmal));
53+ return mmalil_error_to_omx(mmal_port_format_commit(port->mmal));
54 }
55 case OMX_IndexParamColorSpace:
56 {
57 OMX_PARAM_COLORSPACETYPE *param = (OMX_PARAM_COLORSPACETYPE *)pParam;
58 PARAM_GET_PORT(port, component, param->nPortIndex);
59 port->mmal->format->es->video.color_space = mmalil_omx_color_space_to_mmal(param->eColorSpace);
60- return mmalil_error_to_mmal(mmal_port_format_commit(port->mmal));
61+ return mmalil_error_to_omx(mmal_port_format_commit(port->mmal));
62 }
63 case OMX_IndexParamBrcmVideoCroppingDisable:
64 {
65diff --git a/interface/mmal/openmaxil/mmalomx_util_params_video.c b/interface/mmal/openmaxil/mmalomx_util_params_video.c
66index f088296..83e3724 100644
67--- a/interface/mmal/openmaxil/mmalomx_util_params_video.c
68+++ b/interface/mmal/openmaxil/mmalomx_util_params_video.c
69@@ -56,11 +56,11 @@ static MMAL_STATUS_T mmalomx_param_mapping_displayregion(MMALOMX_PARAM_MAPPING_D
70 mmal->set = omx->set;
71 mmal->display_num = omx->num;
72 mmal->fullscreen = omx->fullscreen;
73- mmal->transform = omx->transform;
74+ mmal->transform = (MMAL_DISPLAYTRANSFORM_T)omx->transform;
75 rect_to_mmal(&mmal->dest_rect, &omx->dest_rect);
76 rect_to_mmal(&mmal->src_rect, &omx->src_rect);
77 mmal->noaspect = omx->noaspect;
78- mmal->mode = omx->mode;
79+ mmal->mode = (MMAL_DISPLAYMODE_T)omx->mode;
80 mmal->pixel_x = omx->pixel_x;
81 mmal->pixel_y = omx->pixel_y;
82 mmal->layer = omx->layer;
83@@ -72,11 +72,11 @@ static MMAL_STATUS_T mmalomx_param_mapping_displayregion(MMALOMX_PARAM_MAPPING_D
84 omx->set = mmal->set;
85 omx->num = mmal->display_num;
86 omx->fullscreen = mmal->fullscreen;
87- omx->transform = mmal->transform;
88+ omx->transform = (OMX_DISPLAYTRANSFORMTYPE)mmal->transform;
89 rect_to_omx(&omx->dest_rect, &mmal->dest_rect);
90 rect_to_omx(&omx->src_rect, &mmal->src_rect);
91 omx->noaspect = mmal->noaspect;
92- omx->mode = mmal->mode;
93+ omx->mode = (OMX_DISPLAYMODETYPE)mmal->mode;
94 omx->pixel_x = mmal->pixel_x;
95 omx->pixel_y = mmal->pixel_y;
96 omx->layer = mmal->layer;
97--
982.10.0
99
diff --git a/recipes-graphics/userland/userland/0011-Fix-for-framerate-with-nested-composition.patch b/recipes-graphics/userland/userland/0010-Fix-for-framerate-with-nested-composition.patch
index 9d4b930..8a34f3f 100644
--- a/recipes-graphics/userland/userland/0011-Fix-for-framerate-with-nested-composition.patch
+++ b/recipes-graphics/userland/userland/0010-Fix-for-framerate-with-nested-composition.patch
@@ -1,7 +1,7 @@
1From 497637d8eff4e83b5ede26733c4f36371b1d2f07 Mon Sep 17 00:00:00 2001 1From 098faed5e7035b51f14700fdf4cf5875aa7af97e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 29 Mar 2016 20:38:30 -0700 3Date: Tue, 29 Mar 2016 20:38:30 -0700
4Subject: [PATCH 11/13] Fix for framerate with nested composition 4Subject: [PATCH 10/12] Fix for framerate with nested composition
5 5
6frame rate appears irregular and lower than expected when using nested composition. 6frame rate appears irregular and lower than expected when using nested composition.
7 7
@@ -56,5 +56,5 @@ index 03fe67b..13a110c 100644
56 #ifdef ANDROID 56 #ifdef ANDROID
57 CLIENT_UNLOCK(); 57 CLIENT_UNLOCK();
58-- 58--
592.10.0 592.10.2
60 60
diff --git a/recipes-graphics/userland/userland/0012-build-shared-library-for-vchostif.patch b/recipes-graphics/userland/userland/0011-build-shared-library-for-vchostif.patch
index 3e3a7f9..f2455e5 100644
--- a/recipes-graphics/userland/userland/0012-build-shared-library-for-vchostif.patch
+++ b/recipes-graphics/userland/userland/0011-build-shared-library-for-vchostif.patch
@@ -1,7 +1,7 @@
1From 18f5ef775b4a367bf7fe972c9a2b4cd29f2f1043 Mon Sep 17 00:00:00 2001 1From b533d784484caead1dc84c766127e1d3854d2aad Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 2 Apr 2016 10:37:24 -0700 3Date: Sat, 2 Apr 2016 10:37:24 -0700
4Subject: [PATCH 12/13] build shared library for vchostif 4Subject: [PATCH 11/12] build shared library for vchostif
5 5
6Fixes #149 6Fixes #149
7 7
@@ -24,5 +24,5 @@ index 9bcc2c3..0ef753f 100755
24 #add_library(bufman vc_vchi_bufman.c ) 24 #add_library(bufman vc_vchi_bufman.c )
25 25
26-- 26--
272.10.0 272.10.2
28 28
diff --git a/recipes-graphics/userland/userland/0013-implement-buffer-wrapping-interface-for-dispmanx.patch b/recipes-graphics/userland/userland/0012-implement-buffer-wrapping-interface-for-dispmanx.patch
index 8b5c6b5..aa3e0ef 100644
--- a/recipes-graphics/userland/userland/0013-implement-buffer-wrapping-interface-for-dispmanx.patch
+++ b/recipes-graphics/userland/userland/0012-implement-buffer-wrapping-interface-for-dispmanx.patch
@@ -1,7 +1,7 @@
1From d692c61077235e7b791f115b3140680580903c95 Mon Sep 17 00:00:00 2001 1From ee5ebfcf0e030efed17f2a45fbb018a02dd421b3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 2 Apr 2016 10:54:59 -0700 3Date: Sat, 2 Apr 2016 10:54:59 -0700
4Subject: [PATCH 13/13] implement buffer wrapping interface for dispmanx 4Subject: [PATCH 12/12] implement buffer wrapping interface for dispmanx
5 5
6Courtesy: Zan Dobersek 6Courtesy: Zan Dobersek
7 7
@@ -88,5 +88,5 @@ index c18626d..11ed1ef 100644
88 88
89 </protocol> 89 </protocol>
90-- 90--
912.10.0 912.10.2
92 92
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index 84d6854..bba7541 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi"
16 16
17SRCBRANCH = "master" 17SRCBRANCH = "master"
18SRCFORK = "raspberrypi" 18SRCFORK = "raspberrypi"
19SRCREV = "100f8bb3e74e29d04fb99857183cc34aaa712e3f" 19SRCREV = "7ade0399c4e46fb6277e3e0ec400711ab54ab504"
20 20
21SRC_URI = "\ 21SRC_URI = "\
22 git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ 22 git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
@@ -29,10 +29,9 @@ SRC_URI = "\
29 file://0007-initialize-front-back-wayland-buffers.patch \ 29 file://0007-initialize-front-back-wayland-buffers.patch \
30 file://0008-Remove-RPC_FLUSH.patch \ 30 file://0008-Remove-RPC_FLUSH.patch \
31 file://0009-fix-cmake-dependency-race.patch \ 31 file://0009-fix-cmake-dependency-race.patch \
32 file://0010-Fix-enum-conversion-warnings.patch \ 32 file://0010-Fix-for-framerate-with-nested-composition.patch \
33 file://0011-Fix-for-framerate-with-nested-composition.patch \ 33 file://0011-build-shared-library-for-vchostif.patch \
34 file://0012-build-shared-library-for-vchostif.patch \ 34 file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \
35 file://0013-implement-buffer-wrapping-interface-for-dispmanx.patch \
36" 35"
37S = "${WORKDIR}/git" 36S = "${WORKDIR}/git"
38 37