diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-04-21 14:43:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-29 14:45:09 +0100 |
commit | f1771b5bfa57db22d1d576b0cba137192a0b5d80 (patch) | |
tree | 8c94ef6e94041de6c36724551cc2af38d47363a9 /meta/recipes-graphics/mesa | |
parent | d5bc211255599e88e54b2dd746b65651d10045f3 (diff) | |
download | poky-f1771b5bfa57db22d1d576b0cba137192a0b5d80.tar.gz |
mesa-demos: Update to 8.1.0
Removed patches that now appear in the upstream.
(From OE-Core rev: 2329297b12e2eade895fff8d3d98722a15e0b7ec)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos/0001-xeglgears-Make-EGL_KHR_image-usage-portable.patch | 95 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos/dso_linking_change_build_fix.patch | 24 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos/gles2-info.patch | 21 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb (renamed from meta/recipes-graphics/mesa/mesa-demos_8.0.1.bb) | 11 |
4 files changed, 3 insertions, 148 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0001-xeglgears-Make-EGL_KHR_image-usage-portable.patch b/meta/recipes-graphics/mesa/mesa-demos/0001-xeglgears-Make-EGL_KHR_image-usage-portable.patch deleted file mode 100644 index 43d4fb1d60..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0001-xeglgears-Make-EGL_KHR_image-usage-portable.patch +++ /dev/null | |||
@@ -1,95 +0,0 @@ | |||
1 | From 43c2122af1caa750531f29bf734c03d1f50801d1 Mon Sep 17 00:00:00 2001 | ||
2 | Message-Id: <43c2122af1caa750531f29bf734c03d1f50801d1.1365283761.git.tom.zanussi@linux.intel.com> | ||
3 | From: Frank Binns <frank.binns@imgtec.com> | ||
4 | Date: Fri, 29 Jun 2012 14:06:27 +0100 | ||
5 | Subject: [PATCH] xeglgears: Make EGL_KHR_image usage portable | ||
6 | |||
7 | EGL extension functions don't have to be exported which means | ||
8 | xeglgears was failing to link against implementations that | ||
9 | support EGL_KHR_image but were not exporting its related functions. | ||
10 | |||
11 | This has been fixed by using eglGetProcAddress to get a function | ||
12 | pointer instead of using the functions prototype. This is portable. | ||
13 | |||
14 | Signed-off-by: Frank Binns <frank.binns@imgtec.com> | ||
15 | |||
16 | Integrated-by: Tom Zanussi <tom.zanussi@linux.intel.com> | ||
17 | |||
18 | Upstream-Status: Backport | ||
19 | --- | ||
20 | src/egl/opengl/xeglgears.c | 37 +++++++++++++++++++++++++++++++------ | ||
21 | 1 file changed, 31 insertions(+), 6 deletions(-) | ||
22 | |||
23 | diff --git a/src/egl/opengl/xeglgears.c b/src/egl/opengl/xeglgears.c | ||
24 | index 513c587..866b89a 100644 | ||
25 | --- a/src/egl/opengl/xeglgears.c | ||
26 | +++ b/src/egl/opengl/xeglgears.c | ||
27 | @@ -51,6 +51,10 @@ | ||
28 | static PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES_func; | ||
29 | #endif | ||
30 | |||
31 | +#ifdef EGL_KHR_image | ||
32 | +static PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR_func; | ||
33 | +#endif | ||
34 | + | ||
35 | |||
36 | #define BENCHMARK | ||
37 | |||
38 | @@ -405,6 +409,17 @@ egl_manager_new(EGLNativeDisplayType xdpy, const EGLint *attrib_list, | ||
39 | eglGetProcAddress("glEGLImageTargetTexture2DOES"); | ||
40 | #endif | ||
41 | |||
42 | +#ifdef EGL_KHR_image | ||
43 | + eglCreateImageKHR_func = (PFNEGLCREATEIMAGEKHRPROC) | ||
44 | + eglGetProcAddress("eglCreateImageKHR"); | ||
45 | + if (eglCreateImageKHR_func == NULL) { | ||
46 | + printf("failed to get eglCreateImageKHR\n"); | ||
47 | + eglTerminate(eman->dpy); | ||
48 | + free(eman); | ||
49 | + return NULL; | ||
50 | + } | ||
51 | +#endif | ||
52 | + | ||
53 | return eman; | ||
54 | } | ||
55 | |||
56 | @@ -850,10 +865,16 @@ main(int argc, char *argv[]) | ||
57 | case GEARS_PIXMAP: | ||
58 | case GEARS_PIXMAP_TEXTURE: | ||
59 | ret = egl_manager_create_pixmap(eman, eman->xwin, EGL_TRUE, NULL); | ||
60 | + | ||
61 | +#ifdef EGL_KHR_image | ||
62 | if (surface_type == GEARS_PIXMAP_TEXTURE) | ||
63 | - eman->image = eglCreateImageKHR (eman->dpy, eman->ctx, | ||
64 | - EGL_NATIVE_PIXMAP_KHR, | ||
65 | - (EGLClientBuffer) eman->xpix, NULL); | ||
66 | + eman->image = eglCreateImageKHR_func(eman->dpy, eman->ctx, | ||
67 | + EGL_NATIVE_PIXMAP_KHR, | ||
68 | + (EGLClientBuffer) eman->xpix, NULL); | ||
69 | +#else | ||
70 | + fprintf(stderr, "EGL_KHR_image not found at compile time.\n"); | ||
71 | +#endif | ||
72 | + | ||
73 | if (ret) | ||
74 | ret = eglMakeCurrent(eman->dpy, eman->pix, eman->pix, eman->ctx); | ||
75 | break; | ||
76 | @@ -892,9 +913,13 @@ main(int argc, char *argv[]) | ||
77 | GL_RENDERBUFFER_EXT, | ||
78 | color_rb); | ||
79 | |||
80 | - eman->image = eglCreateImageKHR(eman->dpy, eman->ctx, | ||
81 | - EGL_GL_RENDERBUFFER_KHR, | ||
82 | - (EGLClientBuffer) color_rb, NULL); | ||
83 | +#ifdef EGL_KHR_image | ||
84 | + eman->image = eglCreateImageKHR_func(eman->dpy, eman->ctx, | ||
85 | + EGL_GL_RENDERBUFFER_KHR, | ||
86 | + (EGLClientBuffer) color_rb, NULL); | ||
87 | +#else | ||
88 | + fprintf(stderr, "EGL_KHR_image not found at compile time.\n"); | ||
89 | +#endif | ||
90 | |||
91 | glGenRenderbuffers(1, &depth_rb); | ||
92 | glBindRenderbuffer(GL_RENDERBUFFER_EXT, depth_rb); | ||
93 | -- | ||
94 | 1.7.11.4 | ||
95 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-demos/dso_linking_change_build_fix.patch b/meta/recipes-graphics/mesa/mesa-demos/dso_linking_change_build_fix.patch deleted file mode 100644 index 9b5e952186..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/dso_linking_change_build_fix.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | after gcc linking has changed, all the libraries must be explicitely specified | ||
2 | This patch avoids these linking errors: | ||
3 | |||
4 | | CCLD xeglgears | ||
5 | | /build_disk/poky_build/build0/tmp/sysroots/x86_64-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/ld: xeglthreads.o: undefined reference to symbol 'pthread_join@@GLIBC_2.4' | ||
6 | | /build_disk/poky_build/build0/tmp/sysroots/x86_64-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/ld: note: 'pthread_join@@GLIBC_2.4' is defined in DSO /build_disk/poky_build/build0/tmp/sysroots/qemuarm/lib/libpthread.so.0 so try adding it to the linker command line | ||
7 | | /build_disk/poky_build/build0/tmp/sysroots/qemuarm/lib/libpthread.so.0: could not read symbols: Invalid operation | ||
8 | | collect2: ld returned 1 exit status | ||
9 | |||
10 | |||
11 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
12 | Date: 2011/02/03 | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Index: mesa-demos-8.0.1/src/egl/opengl/Makefile.am | ||
17 | =================================================================== | ||
18 | --- mesa-demos-8.0.1.orig/src/egl/opengl/Makefile.am 2010-07-07 10:57:15.000000000 -0700 | ||
19 | +++ mesa-demos-8.0.1/src/egl/opengl/Makefile.am 2011-02-03 14:30:13.928486381 -0800 | ||
20 | @@ -67,3 +67,4 @@ | ||
21 | |||
22 | eglgears_x11_LDADD = ../eglut/libeglut_x11.la | ||
23 | egltri_x11_LDADD = ../eglut/libeglut_x11.la | ||
24 | +xeglthreads_LDADD = -lpthread | ||
diff --git a/meta/recipes-graphics/mesa/mesa-demos/gles2-info.patch b/meta/recipes-graphics/mesa/mesa-demos/gles2-info.patch deleted file mode 100644 index 849c974e09..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/gles2-info.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | Fix to enable gles2 to build. | ||
2 | |||
3 | Ross Burton <ross.burton@intel.com> | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Index: mesa-demos-8.0.1/src/egl/opengles2/es2_info.c | ||
8 | =================================================================== | ||
9 | --- mesa-demos-8.0.1.orig/src/egl/opengles2/es2_info.c 2010-07-07 18:57:15.000000000 +0100 | ||
10 | +++ mesa-demos-8.0.1/src/egl/opengles2/es2_info.c 2012-08-01 13:14:59.000104115 +0100 | ||
11 | @@ -18,8 +18,8 @@ | ||
12 | #include <X11/Xlib.h> | ||
13 | #include <X11/Xutil.h> | ||
14 | #include <X11/keysym.h> | ||
15 | -#include <GLES/gl.h> | ||
16 | -#include <GLES/glext.h> | ||
17 | +#include <GLES2/gl2.h> | ||
18 | +#include <GLES2/gl2ext.h> | ||
19 | #include <EGL/egl.h> | ||
20 | |||
21 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.0.1.bb b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb index 94db7f75d1..055f73d515 100644 --- a/meta/recipes-graphics/mesa/mesa-demos_8.0.1.bb +++ b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb | |||
@@ -11,18 +11,13 @@ LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=9142 | |||
11 | 11 | ||
12 | DEPENDS = "virtual/libx11 virtual/libgl glew" | 12 | DEPENDS = "virtual/libx11 virtual/libgl glew" |
13 | 13 | ||
14 | PR = "r4" | ||
15 | |||
16 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/demos/${PV}/${BPN}-${PV}.tar.bz2 \ | 14 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/demos/${PV}/${BPN}-${PV}.tar.bz2 \ |
17 | file://dso_linking_change_build_fix.patch \ | ||
18 | file://gles2-info.patch \ | ||
19 | file://glut.patch \ | 15 | file://glut.patch \ |
20 | file://egl-mesa-screen-surface-build-fix.patch \ | 16 | file://egl-mesa-screen-surface-build-fix.patch \ |
21 | file://egl-mesa-screen-surface-query.patch \ | 17 | file://egl-mesa-screen-surface-query.patch" |
22 | file://0001-xeglgears-Make-EGL_KHR_image-usage-portable.patch" | ||
23 | 18 | ||
24 | SRC_URI[md5sum] = "320c2a4b6edc6faba35d9cb1e2a30bf4" | 19 | SRC_URI[md5sum] = "9df33ba69a26bbfbc7c8148602e59542" |
25 | SRC_URI[sha256sum] = "4bc7f2b20d17e3eebfec288f2367a435cd2db71fc5ac9ece2c14827e290d77d1" | 20 | SRC_URI[sha256sum] = "9703fa0646b32a1e68d2abf5628f936f77bf97c69ffcaac90de380820a87a828" |
26 | 21 | ||
27 | inherit autotools pkgconfig | 22 | inherit autotools pkgconfig |
28 | 23 | ||