userland: Update to latest

Forward port the patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2017-03-04 00:53:53 -08:00
parent 8873478623
commit a23003794f
14 changed files with 51 additions and 46 deletions

View File

@ -1,7 +1,7 @@
From 4b68419e58ef31e72abab688d0c7cc5db80efc13 Mon Sep 17 00:00:00 2001 From f6540119d5b064361ffcb370373794932f97bfdd 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 01/12] 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.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From e3d2d0007e1c6c32ab7d9a28f1e399d42b511333 Mon Sep 17 00:00:00 2001 From 5f9e011a6c15b3a05b3be412d7ba5c1077ececf1 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 02/12] 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
@ -68,7 +68,7 @@ index 4a88665..5da71a9 100644
+ +
+*~ +*~
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98252c3..d6ae907 100644 index cfc8ae5..673a5ad 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -24,6 +24,17 @@ include(makefiles/cmake/global_settings.cmake) @@ -24,6 +24,17 @@ include(makefiles/cmake/global_settings.cmake)
@ -1542,7 +1542,7 @@ index 0000000..8bafc15
+Libs: -L${libdir} -lwayland-egl +Libs: -L${libdir} -lwayland-egl
+Cflags: -I${includedir} +Cflags: -I${includedir}
diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
index 0b3adc9..f44d01f 100755 index fde18da..6718215 100755
--- a/interface/vmcs_host/CMakeLists.txt --- a/interface/vmcs_host/CMakeLists.txt
+++ b/interface/vmcs_host/CMakeLists.txt +++ b/interface/vmcs_host/CMakeLists.txt
@@ -9,13 +9,24 @@ add_definitions(-fno-strict-aliasing) @@ -9,13 +9,24 @@ add_definitions(-fno-strict-aliasing)
@ -1551,12 +1551,12 @@ index 0b3adc9..f44d01f 100755
-add_library(vchostif -add_library(vchostif
- ${VMCS_TARGET}/vcfilesys.c ${VMCS_TARGET}/vcmisc.c - ${VMCS_TARGET}/vcfilesys.c ${VMCS_TARGET}/vcmisc.c
- vc_vchi_gencmd.c vc_vchi_filesys.c - vc_vchi_gencmd.c vc_vchi_filesys.c vc_vchi_gpuserv.c
- vc_vchi_tvservice.c vc_vchi_cecservice.c - vc_vchi_tvservice.c vc_vchi_cecservice.c
- vc_vchi_dispmanx.c vc_service_common.c) - vc_vchi_dispmanx.c vc_service_common.c)
+set(VCHOSTIF_SOURCE +set(VCHOSTIF_SOURCE
+ ${VMCS_TARGET}/vcfilesys.c ${VMCS_TARGET}/vcmisc.c + ${VMCS_TARGET}/vcfilesys.c ${VMCS_TARGET}/vcmisc.c
+ vc_vchi_gencmd.c vc_vchi_filesys.c + vc_vchi_gencmd.c vc_vchi_filesys.c vc_vchi_gpuserv.c
+ vc_vchi_tvservice.c vc_vchi_cecservice.c + vc_vchi_tvservice.c vc_vchi_cecservice.c
+ vc_vchi_dispmanx.c vc_service_common.c) + vc_vchi_dispmanx.c vc_service_common.c)
# ${VMCS_TARGET}/vmcs_main.c # ${VMCS_TARGET}/vmcs_main.c
@ -1885,5 +1885,5 @@ index 0000000..ad90d30
+ set(${_sources} ${${_sources}} PARENT_SCOPE) + set(${_sources} ${${_sources}} PARENT_SCOPE)
+endfunction() +endfunction()
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 8a4b3ea902bbcc08452e13a61ffbdc834bc13ea3 Mon Sep 17 00:00:00 2001 From 08679675740d92f022e0fd46207a42589c9f6c51 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 03/12] 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 8225dd5..0be6ce7 100755
- -
+make -C hello_wayland +make -C hello_wayland
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 718402e1be80ff9fb9863e847e31072ec735a5eb Mon Sep 17 00:00:00 2001 From eb9d0eb386b9b3df519a299887b45962c03e732c 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 04/12] 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.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 2a6e3d53a75fe44ec6fa3ae64c8ca5664b614979 Mon Sep 17 00:00:00 2001 From ef3162e061a3231fbf836208f98c38c7c5581a9e 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 05/12] 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
@ -25,5 +25,5 @@ index 45f4cff..5d0368c 100755
} }
} else { } else {
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From a3d43c1b754fc0576b428d36a877b9b50dd5d1ce Mon Sep 17 00:00:00 2001 From 846e9271cf6a264e7e1f4e33be64df990ff39a74 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 06/12] 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 42350bf..1f923d9 100644
#endif #endif
} }
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 5b37f53cff07f37b281c25f987b9dbdacc264bf6 Mon Sep 17 00:00:00 2001 From 15510fdf1c753c967b509046616b1e1a11b5b772 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 07/12] 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 1f923d9..9a9582c 100644
} }
#endif #endif
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 14a749a3f840e93db548373b907a7a0e664dcfdb Mon Sep 17 00:00:00 2001 From 1df080ab9528b82321cf87d71927314294ef7121 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 08/12] 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.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From b5392c39d7407a5226c9314bc01ed82877ff0539 Mon Sep 17 00:00:00 2001 From 11842307cc0e32bac6ef7622e7791ca7a0e9fa61 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 09/12] fix cmake dependency race Subject: [PATCH 09/13] fix cmake dependency race
Fixes errors like Fixes errors like
@ -42,7 +42,7 @@ index 1d81ca3..d6cd415 100644
add_library (vcos SHARED ${SOURCES}) add_library (vcos SHARED ${SOURCES})
target_link_libraries (vcos pthread dl rt) target_link_libraries (vcos pthread dl rt)
diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
index f44d01f..9bcc2c3 100755 index 6718215..c415176 100755
--- a/interface/vmcs_host/CMakeLists.txt --- a/interface/vmcs_host/CMakeLists.txt
+++ b/interface/vmcs_host/CMakeLists.txt +++ b/interface/vmcs_host/CMakeLists.txt
@@ -17,14 +17,6 @@ set(VCHOSTIF_SOURCE @@ -17,14 +17,6 @@ set(VCHOSTIF_SOURCE
@ -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.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From 098faed5e7035b51f14700fdf4cf5875aa7af97e Mon Sep 17 00:00:00 2001 From 532dc7dc11877a9dae0f3d101c9bfdacc50840ca 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 10/12] Fix for framerate with nested composition Subject: [PATCH 10/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 03fe67b..13a110c 100644
#ifdef ANDROID #ifdef ANDROID
CLIENT_UNLOCK(); CLIENT_UNLOCK();
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From b533d784484caead1dc84c766127e1d3854d2aad Mon Sep 17 00:00:00 2001 From 37ff90075102407d3abb3899b8c6ef64f6230207 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 11/12] build shared library for vchostif Subject: [PATCH 11/13] build shared library for vchostif
Fixes #149 Fixes #149
@ -11,7 +11,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
index 9bcc2c3..0ef753f 100755 index c415176..d0cca1a 100755
--- a/interface/vmcs_host/CMakeLists.txt --- a/interface/vmcs_host/CMakeLists.txt
+++ b/interface/vmcs_host/CMakeLists.txt +++ b/interface/vmcs_host/CMakeLists.txt
@@ -17,7 +17,7 @@ set(VCHOSTIF_SOURCE @@ -17,7 +17,7 @@ set(VCHOSTIF_SOURCE
@ -24,5 +24,5 @@ index 9bcc2c3..0ef753f 100755
#add_library(bufman vc_vchi_bufman.c ) #add_library(bufman vc_vchi_bufman.c )
-- --
2.10.2 2.12.0

View File

@ -1,7 +1,7 @@
From ee5ebfcf0e030efed17f2a45fbb018a02dd421b3 Mon Sep 17 00:00:00 2001 From ce130bff946c3b78fc4dbbf98d9b16b5152f2e85 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:54:59 -0700 Date: Sat, 2 Apr 2016 10:54:59 -0700
Subject: [PATCH 12/12] implement buffer wrapping interface for dispmanx Subject: [PATCH 12/13] implement buffer wrapping interface for dispmanx
Courtesy: Zan Dobersek Courtesy: Zan Dobersek
@ -88,5 +88,5 @@ index c18626d..11ed1ef 100644
</protocol> </protocol>
-- --
2.10.2 2.12.0

View File

@ -1,11 +1,16 @@
From 81f421b051c726bbe180ee5f7d93cf13a3935904 Mon Sep 17 00:00:00 2001 From 14d915a63a4e69290966543ce12edd615bfa9a25 Mon Sep 17 00:00:00 2001
From: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com> From: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com>
Date: Thu, 19 Jan 2017 18:56:07 +0000 Date: Thu, 19 Jan 2017 18:56:07 +0000
Subject: [PATCH 13/13] Implement triple buffering for wayland Subject: [PATCH 13/13] Implement triple buffering for wayland
Change from double to triple buffering for wayland. This enables higher frame rates without tearing artifacts by allowing both the glFinish and the buffer release interlock to operate without pushing the frame period to two vertical intervals Change from double to triple buffering for wayland.
This enables higher frame rates without tearing artifacts
by allowing both the glFinish and the buffer release
interlock to operate without pushing the frame period
to two vertical intervals
Signed-off-by: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com> Signed-off-by: Jeff Wannamaker <jeff_wannamaker@cable.comcast.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- ---
interface/khronos/egl/egl_client.c | 3 ++- interface/khronos/egl/egl_client.c | 3 ++-
interface/khronos/egl/egl_client_surface.c | 8 ++++++++ interface/khronos/egl/egl_client_surface.c | 8 ++++++++
@ -81,5 +86,5 @@ index e328b77..58a3184 100644
Validity: Validity:
-- --
2.7.1 2.12.0

View File

@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi"
SRCBRANCH = "master" SRCBRANCH = "master"
SRCFORK = "raspberrypi" SRCFORK = "raspberrypi"
SRCREV = "338428cf852c658e39987c06b845cb6332394109" SRCREV = "cdb5da59f939eb4078e90ed0e3c231c498ba9957"
SRC_URI = "\ SRC_URI = "\
git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \