summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2016-05-16 10:35:33 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-17 14:43:29 +0100
commit3da513ba73a1c90235094a40bfdbf07ea35778b2 (patch)
tree95048f3f27d523d8433a2143644c635c74706591 /meta
parentd28ab584850b715c4b223e5146ecee18d8ae3c97 (diff)
downloadpoky-3da513ba73a1c90235094a40bfdbf07ea35778b2.tar.gz
mesa-demos: OpenVG demos with single frame need eglSwapBuffer
sp and text demos rendering single frame. to display the single frame rendered needed a eglSwapBuffer to diplay to window. Hence added eglutPostRedisplay to display the frame. (From OE-Core rev: 894885ab5de473abf860b8444e591fa2ec804a14) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch44
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch b/meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch
new file mode 100644
index 0000000000..c687647407
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch
@@ -0,0 +1,44 @@
1From 3aa84c47e88a4c38446ce1323abf6f2c77389104 Mon Sep 17 00:00:00 2001
2From: Prabhu <prabhu.sundararaj@freescale.com>
3Date: Mon, 16 Nov 2015 17:09:32 -0600
4Subject: [PATCH] mesa-demos: OpenVG demos with single frame need eglSwapBuffer
5
6sp and text demos rendering single frame. to display the
7single frame rendered needed a eglSwapBuffer to diplay to window.
8Hence added eglutPostRedisplay to display the frame
9
10Upstream-Status: Pending
11
12Signed-off-by: Prabhu <prabhu.sundararaj@freescale.com>
13---
14 src/egl/openvg/sp.c | 1 +
15 src/egl/openvg/text.c | 1 +
16 2 files changed, 2 insertions(+)
17
18diff --git a/src/egl/openvg/sp.c b/src/egl/openvg/sp.c
19index a20c0a3..468e91e 100644
20--- a/src/egl/openvg/sp.c
21+++ b/src/egl/openvg/sp.c
22@@ -500,6 +500,7 @@ draw(void)
23 }
24
25 vgFlush();
26+ eglutPostRedisplay();
27 }
28
29
30diff --git a/src/egl/openvg/text.c b/src/egl/openvg/text.c
31index f5c6de8..492581c 100644
32--- a/src/egl/openvg/text.c
33+++ b/src/egl/openvg/text.c
34@@ -360,6 +360,7 @@ display(void)
35 {
36 vgClear(0, 0, width, height);
37 glyph_string_draw(10.0, 10.0);
38+ eglutPostRedisplay();
39 }
40
41
42--
432.5.1
44
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
index 2df9bbac29..034e01d069 100644
--- a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
@@ -21,6 +21,7 @@ SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/demos/${PV}/${BPN}-${PV}.tar.bz2 \
21 file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ 21 file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \
22 file://0010-sharedtex_mt-fix-rendering-thread-hang.patch \ 22 file://0010-sharedtex_mt-fix-rendering-thread-hang.patch \
23 file://0011-drop-demos-dependant-on-obsolete-MESA_screen_surface.patch \ 23 file://0011-drop-demos-dependant-on-obsolete-MESA_screen_surface.patch \
24 file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \
24" 25"
25SRC_URI[md5sum] = "72613a2c8c013716db02e3ff59d29061" 26SRC_URI[md5sum] = "72613a2c8c013716db02e3ff59d29061"
26SRC_URI[sha256sum] = "e4bfecb5816ddd4b7b37c1bc876b63f1f7f06fda5879221a9774d0952f90ba92" 27SRC_URI[sha256sum] = "e4bfecb5816ddd4b7b37c1bc876b63f1f7f06fda5879221a9774d0952f90ba92"