summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-04-02 10:59:11 -0700
committerAndrei Gherzan <andrei@gherzan.ro>2016-04-13 05:16:26 +0200
commitf1b7034077b0728d2b48646bbc016b3bb7539751 (patch)
treeed7458cb28a072aaca4759a7c6f3b0b629460d38 /recipes-graphics
parent4f8930b9d05d649e42dbfc0ec3083ec847c87e56 (diff)
downloadmeta-raspberrypi-f1b7034077b0728d2b48646bbc016b3bb7539751.tar.gz
userland: Fix a build regression in builds not using wayland
Update userland to latest Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/userland/userland/0013-Fix-for-framerate-with-nested-composition.patch21
-rw-r--r--recipes-graphics/userland/userland/0014-Fix-errors-due-to-ignored-return-code.patch43
-rw-r--r--recipes-graphics/userland/userland_git.bb3
3 files changed, 12 insertions, 55 deletions
diff --git a/recipes-graphics/userland/userland/0013-Fix-for-framerate-with-nested-composition.patch b/recipes-graphics/userland/userland/0013-Fix-for-framerate-with-nested-composition.patch
index 2fa9d66..ff9ccce 100644
--- a/recipes-graphics/userland/userland/0013-Fix-for-framerate-with-nested-composition.patch
+++ b/recipes-graphics/userland/userland/0013-Fix-for-framerate-with-nested-composition.patch
@@ -1,17 +1,17 @@
1From e5affc4ff145eedf61e2625a8919622c92d0b8ba Mon Sep 17 00:00:00 2001 1From f8779a124fc447b63c1ba1795330bdc2d765dc7a 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 13/14] Fix for framerate with nested composition 4Subject: [PATCH 13/13] 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
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 9---
10 interface/khronos/egl/egl_client.c | 9 ++++++++- 10 interface/khronos/egl/egl_client.c | 8 ++++++++
11 1 file changed, 8 insertions(+), 1 deletion(-) 11 1 file changed, 8 insertions(+)
12 12
13diff --git a/interface/khronos/egl/egl_client.c b/interface/khronos/egl/egl_client.c 13diff --git a/interface/khronos/egl/egl_client.c b/interface/khronos/egl/egl_client.c
14index 024f3ed..d8a007c 100644 14index 024f3ed..83970ec 100644
15--- a/interface/khronos/egl/egl_client.c 15--- a/interface/khronos/egl/egl_client.c
16+++ b/interface/khronos/egl/egl_client.c 16+++ b/interface/khronos/egl/egl_client.c
17@@ -2342,6 +2342,9 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf) 17@@ -2342,6 +2342,9 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf)
@@ -33,7 +33,7 @@ index 024f3ed..d8a007c 100644
33 surface->front_wl_buffer->in_use = 1; 33 surface->front_wl_buffer->in_use = 1;
34 wl_surface_attach(wl_egl_window->wl_surface, 34 wl_surface_attach(wl_egl_window->wl_surface,
35 surface->front_wl_buffer->wl_buffer, 35 surface->front_wl_buffer->wl_buffer,
36@@ -2360,10 +2365,11 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf) 36@@ -2360,11 +2365,13 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf)
37 wl_surface_damage(wl_egl_window->wl_surface, 0, 0, 37 wl_surface_damage(wl_egl_window->wl_surface, 0, 0,
38 surface->width, surface->height); 38 surface->width, surface->height);
39 wl_surface_commit(wl_egl_window->wl_surface); 39 wl_surface_commit(wl_egl_window->wl_surface);
@@ -41,12 +41,13 @@ index 024f3ed..d8a007c 100644
41 41
42 while(ret != -1 && surface->back_wl_buffer->in_use) 42 while(ret != -1 && surface->back_wl_buffer->in_use)
43 ret = wl_display_dispatch_queue(wl_display, process->wl_queue); 43 ret = wl_display_dispatch_queue(wl_display, process->wl_queue);
44- } else 44 } else
45+ } else {
46 #endif 45 #endif
46+ {
47 RPC_CALL6(eglIntSwapBuffers_impl, 47 RPC_CALL6(eglIntSwapBuffers_impl,
48 thread, 48 thread,
49@@ -2376,6 +2382,7 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf) 49 EGLINTSWAPBUFFERS_ID,
50@@ -2376,6 +2383,7 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf)
50 RPC_UINT(khrn_platform_get_window_position(surface->win))); 51 RPC_UINT(khrn_platform_get_window_position(surface->win)));
51 52
52 RPC_FLUSH(thread); 53 RPC_FLUSH(thread);
@@ -55,5 +56,5 @@ index 024f3ed..d8a007c 100644
55 #ifdef ANDROID 56 #ifdef ANDROID
56 CLIENT_UNLOCK(); 57 CLIENT_UNLOCK();
57-- 58--
582.7.4 592.8.0
59 60
diff --git a/recipes-graphics/userland/userland/0014-Fix-errors-due-to-ignored-return-code.patch b/recipes-graphics/userland/userland/0014-Fix-errors-due-to-ignored-return-code.patch
deleted file mode 100644
index 2d11e9b..0000000
--- a/recipes-graphics/userland/userland/0014-Fix-errors-due-to-ignored-return-code.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 8ac57765d8b971aaa5ee5c610d8df25fa2ea36da Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 24 Mar 2016 15:03:50 -0700
4Subject: [PATCH 14/14] Fix errors due to ignored return code
5
6Clang warns/errors about not checking the return
7values from chdir() and fread(), here we check
8for chdir return code and report back using error()
9API, and second fix to fread is to let compiler
10ignore the value via assigning it to an unused variable
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 host_applications/linux/apps/dtoverlay/dtoverlay_main.c | 6 ++++--
15 1 file changed, 4 insertions(+), 2 deletions(-)
16
17diff --git a/host_applications/linux/apps/dtoverlay/dtoverlay_main.c b/host_applications/linux/apps/dtoverlay/dtoverlay_main.c
18index 4b33809..fa8324f 100755
19--- a/host_applications/linux/apps/dtoverlay/dtoverlay_main.c
20+++ b/host_applications/linux/apps/dtoverlay/dtoverlay_main.c
21@@ -353,7 +353,8 @@ static int dtoverlay_remove(STATE_T *state, const char *overlay)
22 int rmpos;
23 int i;
24
25- chdir(work_dir);
26+ if (chdir(work_dir) != 0)
27+ return error("chdir to %s failed", work_dir);
28
29 overlay_dir = sprintf_dup("%s/%s", dt_overlays_dir, overlay);
30 if (!dir_exists(overlay_dir))
31@@ -633,7 +634,8 @@ static int overlay_applied(const char *overlay_dir)
32 FILE *fp = fopen(status_path, "r");
33 if (fp)
34 {
35- fread(status, sizeof(status), 1, fp);
36+ int bytes __attribute__((unused));
37+ bytes = fread(status, sizeof(status), 1, fp);
38 fclose(fp);
39 }
40 free_string(status_path);
41--
422.7.4
43
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index 536c3ec..f5fa4e3 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 = "2f56a2943a9eb8420df52ccf91f5a1c5a70e8713" 19SRCREV = "703a2c4b35e23ee44ad84db6b9c3f89c0a627143"
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} \
@@ -33,7 +33,6 @@ SRC_URI = "\
33 file://0011-fix-cmake-dependency-race.patch \ 33 file://0011-fix-cmake-dependency-race.patch \
34 file://0012-Fix-enum-conversion-warnings.patch \ 34 file://0012-Fix-enum-conversion-warnings.patch \
35 file://0013-Fix-for-framerate-with-nested-composition.patch \ 35 file://0013-Fix-for-framerate-with-nested-composition.patch \
36 file://0014-Fix-errors-due-to-ignored-return-code.patch \
37 file://0015-wl-dispmanx-buffer-wrapping.patch \ 36 file://0015-wl-dispmanx-buffer-wrapping.patch \
38" 37"
39S = "${WORKDIR}/git" 38S = "${WORKDIR}/git"