diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-06-06 14:01:10 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-07 21:21:54 +0100 |
| commit | 547b0b0943e9f6db543ef3ea172b8f37581f524f (patch) | |
| tree | 588b215b2653119f0b48e0d2c0e2712627652440 /meta | |
| parent | c13a21782b572038b5a6f4229882f2b992741b79 (diff) | |
| download | poky-547b0b0943e9f6db543ef3ea172b8f37581f524f.tar.gz | |
mesa-demos: update 8.4.0 -> 8.5.0
Convert to meson, drop unsupported options.
Drop autotools-specific and glew-specific patches (glew support dropped upstream).
glu dependency is now x11-specific.
0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch dropped
as patched files removed upstream.
(From OE-Core rev: b9fc45915977c34b3a50e3d64347c2b247c49840)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
7 files changed, 43 insertions, 696 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch b/meta/recipes-graphics/mesa/mesa-demos/0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch deleted file mode 100644 index e31827d4a3..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch +++ /dev/null | |||
| @@ -1,382 +0,0 @@ | |||
| 1 | From 779438770bedf3d53e6ad8f7cd6889b7f50daf3b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Wed, 9 Jul 2014 14:23:41 +0200 | ||
| 4 | Subject: [PATCH] configure: Allow to disable demos which require GLEW or GLU | ||
| 5 | |||
| 6 | * in some systems without X11 support we don't have GLEW, but | ||
| 7 | mesa-demos are still useful | ||
| 8 | |||
| 9 | This isn't currently appropriate for upstream submission as glew has | ||
| 10 | been replaced with glad there; glu situation would need to be re-assesed | ||
| 11 | when upstream makes a new release, requested here: | ||
| 12 | https://gitlab.freedesktop.org/mesa/demos/-/issues/22 | ||
| 13 | |||
| 14 | Upstream-Status: Inappropriate [see above] | ||
| 15 | |||
| 16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 17 | |||
| 18 | Port to 8.3.0 | ||
| 19 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 20 | --- | ||
| 21 | configure.ac | 49 ++++++++++++++++++++--------- | ||
| 22 | src/Makefile.am | 18 ++++++++--- | ||
| 23 | src/demos/Makefile.am | 73 ++++++++++++++++++++++++------------------- | ||
| 24 | src/egl/Makefile.am | 8 +++-- | ||
| 25 | src/egl/opengles1/Makefile.am | 10 ++++-- | ||
| 26 | src/egl/opengles2/Makefile.am | 29 ++++++++--------- | ||
| 27 | 6 files changed, 117 insertions(+), 70 deletions(-) | ||
| 28 | |||
| 29 | diff --git a/configure.ac b/configure.ac | ||
| 30 | index 0525b09..28834cd 100644 | ||
| 31 | --- a/configure.ac | ||
| 32 | +++ b/configure.ac | ||
| 33 | @@ -93,25 +93,44 @@ AC_EGREP_HEADER([glutInitContextProfile], | ||
| 34 | [AC_DEFINE(HAVE_FREEGLUT)], | ||
| 35 | []) | ||
| 36 | |||
| 37 | -dnl Check for GLEW | ||
| 38 | -PKG_CHECK_MODULES(GLEW, [glew >= 1.5.4]) | ||
| 39 | -DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS" | ||
| 40 | -DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS" | ||
| 41 | +AC_ARG_ENABLE([glew], | ||
| 42 | + [AS_HELP_STRING([--enable-glew], | ||
| 43 | + [build demos which require glew @<:@default=yes@:>@])], | ||
| 44 | + [enable_glew="$enableval"], | ||
| 45 | + [enable_glew=yes] | ||
| 46 | +) | ||
| 47 | + | ||
| 48 | +if test "x$enable_glew" = xyes; then | ||
| 49 | + dnl Check for GLEW | ||
| 50 | + PKG_CHECK_MODULES(GLEW, [glew >= 1.5.4], [glew_enabled=yes], [glew_enabled=no]) | ||
| 51 | + DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS" | ||
| 52 | + DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS" | ||
| 53 | +fi | ||
| 54 | |||
| 55 | # LIBS was set by AC_CHECK_LIB above | ||
| 56 | LIBS="" | ||
| 57 | |||
| 58 | -PKG_CHECK_MODULES(GLU, [glu], [], | ||
| 59 | - [AC_CHECK_HEADER([GL/glu.h], | ||
| 60 | - [], | ||
| 61 | - AC_MSG_ERROR([GLU not found])) | ||
| 62 | - AC_CHECK_LIB([GLU], | ||
| 63 | - [gluBeginCurve], | ||
| 64 | - [GLU_LIBS=-lGLU], | ||
| 65 | - AC_MSG_ERROR([GLU required])) ]) | ||
| 66 | +AC_ARG_ENABLE([glu], | ||
| 67 | + [AS_HELP_STRING([--enable-glu], | ||
| 68 | + [build demos which require glu @<:@default=yes@:>@])], | ||
| 69 | + [enable_glu="$enableval"], | ||
| 70 | + [enable_glu=yes] | ||
| 71 | +) | ||
| 72 | |||
| 73 | -DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" | ||
| 74 | -DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" | ||
| 75 | +if test "x$enable_glu" = xyes; then | ||
| 76 | + PKG_CHECK_MODULES(GLU, [glu], [glu_enabled=yes], | ||
| 77 | + [AC_CHECK_HEADER([GL/glu.h], | ||
| 78 | + [], | ||
| 79 | + AC_MSG_ERROR([GLU not found])) | ||
| 80 | + AC_CHECK_LIB([GLU], | ||
| 81 | + [gluBeginCurve], | ||
| 82 | + [GLU_LIBS=-lGLU | ||
| 83 | + glu_enabled=yes], | ||
| 84 | + AC_MSG_ERROR([GLU required])) ]) | ||
| 85 | + | ||
| 86 | + DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" | ||
| 87 | + DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" | ||
| 88 | +fi | ||
| 89 | |||
| 90 | AC_ARG_ENABLE([egl], | ||
| 91 | [AS_HELP_STRING([--enable-egl], | ||
| 92 | @@ -304,6 +323,8 @@ AC_SUBST([WAYLAND_CFLAGS]) | ||
| 93 | AC_SUBST([WAYLAND_LIBS]) | ||
| 94 | |||
| 95 | |||
| 96 | +AM_CONDITIONAL(HAVE_GLU, test "x$glu_enabled" = "xyes") | ||
| 97 | +AM_CONDITIONAL(HAVE_GLEW, test "x$glew_enabled" = "xyes") | ||
| 98 | AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes") | ||
| 99 | AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes") | ||
| 100 | AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes") | ||
| 101 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 102 | index 1647d64..8b89dee 100644 | ||
| 103 | --- a/src/Makefile.am | ||
| 104 | +++ b/src/Makefile.am | ||
| 105 | @@ -22,15 +22,19 @@ | ||
| 106 | # Authors: | ||
| 107 | # Eric Anholt <eric@anholt.net> | ||
| 108 | |||
| 109 | +if HAVE_GLEW | ||
| 110 | +UTIL = util | ||
| 111 | +endif | ||
| 112 | + | ||
| 113 | SUBDIRS = \ | ||
| 114 | - util \ | ||
| 115 | + $(UTIL) \ | ||
| 116 | data \ | ||
| 117 | demos \ | ||
| 118 | egl \ | ||
| 119 | fp \ | ||
| 120 | fpglsl \ | ||
| 121 | glsl \ | ||
| 122 | - gs \ | ||
| 123 | + gs \ | ||
| 124 | objviewer \ | ||
| 125 | osdemos \ | ||
| 126 | perf \ | ||
| 127 | @@ -40,8 +44,12 @@ SUBDIRS = \ | ||
| 128 | slang \ | ||
| 129 | tests \ | ||
| 130 | tools \ | ||
| 131 | - trivial \ | ||
| 132 | - vp \ | ||
| 133 | - vpglsl \ | ||
| 134 | wgl \ | ||
| 135 | xdemos | ||
| 136 | + | ||
| 137 | +if HAVE_GLEW | ||
| 138 | +SUBDIRS += \ | ||
| 139 | + vp \ | ||
| 140 | + vpglsl \ | ||
| 141 | + trivial | ||
| 142 | +endif | ||
| 143 | diff --git a/src/demos/Makefile.am b/src/demos/Makefile.am | ||
| 144 | index 41603fa..ab1e3ab 100644 | ||
| 145 | --- a/src/demos/Makefile.am | ||
| 146 | +++ b/src/demos/Makefile.am | ||
| 147 | @@ -30,91 +30,100 @@ AM_LDFLAGS = \ | ||
| 148 | $(DEMO_LIBS) \ | ||
| 149 | $(GLUT_LIBS) | ||
| 150 | |||
| 151 | +bin_PROGRAMS = | ||
| 152 | + | ||
| 153 | if HAVE_GLUT | ||
| 154 | -bin_PROGRAMS = \ | ||
| 155 | +if HAVE_GLEW | ||
| 156 | +bin_PROGRAMS += \ | ||
| 157 | arbfplight \ | ||
| 158 | arbfslight \ | ||
| 159 | arbocclude \ | ||
| 160 | arbocclude2 \ | ||
| 161 | - bounce \ | ||
| 162 | - clearspd \ | ||
| 163 | copypix \ | ||
| 164 | cubemap \ | ||
| 165 | cuberender \ | ||
| 166 | dinoshade \ | ||
| 167 | - dissolve \ | ||
| 168 | - drawpix \ | ||
| 169 | engine \ | ||
| 170 | fbo_firecube \ | ||
| 171 | fbotexture \ | ||
| 172 | - fire \ | ||
| 173 | fogcoord \ | ||
| 174 | fplight \ | ||
| 175 | fslight \ | ||
| 176 | + gloss \ | ||
| 177 | + isosurf \ | ||
| 178 | + multiarb \ | ||
| 179 | + paltex \ | ||
| 180 | + pointblast \ | ||
| 181 | + projtex \ | ||
| 182 | + shadowtex \ | ||
| 183 | + spriteblast \ | ||
| 184 | + stex3d \ | ||
| 185 | + textures \ | ||
| 186 | + vao_demo \ | ||
| 187 | + winpos | ||
| 188 | + | ||
| 189 | +copypix_LDADD = ../util/libutil.la | ||
| 190 | +cubemap_LDADD = ../util/libutil.la | ||
| 191 | +cuberender_LDADD = ../util/libutil.la | ||
| 192 | +engine_LDADD = ../util/libutil.la | ||
| 193 | +fbo_firecube_LDADD = ../util/libutil.la | ||
| 194 | +gloss_LDADD = ../util/libutil.la | ||
| 195 | +isosurf_LDADD = ../util/libutil.la | ||
| 196 | +multiarb_LDADD = ../util/libutil.la | ||
| 197 | +projtex_LDADD = ../util/libutil.la | ||
| 198 | +textures_LDADD = ../util/libutil.la | ||
| 199 | +winpos_LDADD = ../util/libutil.la | ||
| 200 | +endif | ||
| 201 | + | ||
| 202 | +if HAVE_GLU | ||
| 203 | +bin_PROGRAMS += \ | ||
| 204 | + bounce \ | ||
| 205 | + clearspd \ | ||
| 206 | + dissolve \ | ||
| 207 | + drawpix \ | ||
| 208 | + fire \ | ||
| 209 | gamma \ | ||
| 210 | gearbox \ | ||
| 211 | gears \ | ||
| 212 | geartrain \ | ||
| 213 | glinfo \ | ||
| 214 | - gloss \ | ||
| 215 | gltestperf \ | ||
| 216 | ipers \ | ||
| 217 | - isosurf \ | ||
| 218 | lodbias \ | ||
| 219 | morph3d \ | ||
| 220 | - multiarb \ | ||
| 221 | - paltex \ | ||
| 222 | pixeltest \ | ||
| 223 | - pointblast \ | ||
| 224 | - projtex \ | ||
| 225 | ray \ | ||
| 226 | readpix \ | ||
| 227 | reflect \ | ||
| 228 | renormal \ | ||
| 229 | - shadowtex \ | ||
| 230 | singlebuffer \ | ||
| 231 | spectex \ | ||
| 232 | - spriteblast \ | ||
| 233 | - stex3d \ | ||
| 234 | teapot \ | ||
| 235 | terrain \ | ||
| 236 | tessdemo \ | ||
| 237 | texcyl \ | ||
| 238 | texenv \ | ||
| 239 | - textures \ | ||
| 240 | trispd \ | ||
| 241 | tunnel2 \ | ||
| 242 | - tunnel \ | ||
| 243 | - vao_demo \ | ||
| 244 | - winpos | ||
| 245 | -endif | ||
| 246 | + tunnel | ||
| 247 | |||
| 248 | tunnel_SOURCES = \ | ||
| 249 | tunnel.c \ | ||
| 250 | tunneldat.h | ||
| 251 | |||
| 252 | -copypix_LDADD = ../util/libutil.la | ||
| 253 | -cubemap_LDADD = ../util/libutil.la | ||
| 254 | -cuberender_LDADD = ../util/libutil.la | ||
| 255 | -drawpix_LDADD = ../util/libutil.la | ||
| 256 | dissolve_LDADD = ../util/libutil.la | ||
| 257 | -engine_LDADD = ../util/libutil.la | ||
| 258 | -fbo_firecube_LDADD = ../util/libutil.la | ||
| 259 | +drawpix_LDADD = ../util/libutil.la | ||
| 260 | fire_LDADD = ../util/libutil.la | ||
| 261 | -gloss_LDADD = ../util/libutil.la | ||
| 262 | ipers_LDADD = ../util/libutil.la | ||
| 263 | -isosurf_LDADD = ../util/libutil.la | ||
| 264 | lodbias_LDADD = ../util/libutil.la | ||
| 265 | -multiarb_LDADD = ../util/libutil.la | ||
| 266 | -projtex_LDADD = ../util/libutil.la | ||
| 267 | readpix_LDADD = ../util/libutil.la | ||
| 268 | reflect_LDADD = ../util/libutil.la | ||
| 269 | teapot_LDADD = ../util/libutil.la | ||
| 270 | texcyl_LDADD = ../util/libutil.la | ||
| 271 | -textures_LDADD = ../util/libutil.la | ||
| 272 | tunnel_LDADD = ../util/libutil.la | ||
| 273 | tunnel2_LDADD = ../util/libutil.la | ||
| 274 | -winpos_LDADD = ../util/libutil.la | ||
| 275 | +endif | ||
| 276 | +endif | ||
| 277 | |||
| 278 | EXTRA_DIST = \ | ||
| 279 | README | ||
| 280 | diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am | ||
| 281 | index d64a49e..4fe1ca8 100644 | ||
| 282 | --- a/src/egl/Makefile.am | ||
| 283 | +++ b/src/egl/Makefile.am | ||
| 284 | @@ -24,8 +24,12 @@ | ||
| 285 | |||
| 286 | SUBDIRS = \ | ||
| 287 | eglut \ | ||
| 288 | - opengl \ | ||
| 289 | - openvg \ | ||
| 290 | opengles1 \ | ||
| 291 | opengles2 \ | ||
| 292 | oes_vg | ||
| 293 | + | ||
| 294 | +if HAVE_GLU | ||
| 295 | +SUBDIRS += \ | ||
| 296 | + opengl \ | ||
| 297 | + openvg | ||
| 298 | +endif | ||
| 299 | diff --git a/src/egl/opengles1/Makefile.am b/src/egl/opengles1/Makefile.am | ||
| 300 | index fa397c2..21853e8 100644 | ||
| 301 | --- a/src/egl/opengles1/Makefile.am | ||
| 302 | +++ b/src/egl/opengles1/Makefile.am | ||
| 303 | @@ -36,9 +36,12 @@ AM_LDFLAGS = \ | ||
| 304 | $(EGL_LIBS) \ | ||
| 305 | -lm | ||
| 306 | |||
| 307 | +noinst_PROGRAMS = | ||
| 308 | + | ||
| 309 | if HAVE_EGL | ||
| 310 | if HAVE_GLESV1 | ||
| 311 | -noinst_PROGRAMS = \ | ||
| 312 | +if HAVE_X11 | ||
| 313 | +bin_PROGRAMS = \ | ||
| 314 | bindtex \ | ||
| 315 | clear \ | ||
| 316 | drawtex_x11 \ | ||
| 317 | @@ -52,8 +55,6 @@ noinst_PROGRAMS = \ | ||
| 318 | torus_x11 \ | ||
| 319 | tri_x11 \ | ||
| 320 | two_win | ||
| 321 | -endif | ||
| 322 | -endif | ||
| 323 | |||
| 324 | bindtex_LDADD = $(X11_LIBS) | ||
| 325 | es1_info_LDADD = $(X11_LIBS) | ||
| 326 | @@ -76,3 +77,6 @@ drawtex_x11_LDADD = ../eglut/libeglut_x11.la | ||
| 327 | gears_x11_LDADD = ../eglut/libeglut_x11.la | ||
| 328 | torus_x11_LDADD = ../eglut/libeglut_x11.la | ||
| 329 | tri_x11_LDADD = ../eglut/libeglut_x11.la | ||
| 330 | +endif | ||
| 331 | +endif | ||
| 332 | +endif | ||
| 333 | diff --git a/src/egl/opengles2/Makefile.am b/src/egl/opengles2/Makefile.am | ||
| 334 | index b80ba50..17f8d49 100644 | ||
| 335 | --- a/src/egl/opengles2/Makefile.am | ||
| 336 | +++ b/src/egl/opengles2/Makefile.am | ||
| 337 | @@ -33,27 +33,28 @@ AM_LDFLAGS = \ | ||
| 338 | $(EGL_LIBS) \ | ||
| 339 | -lm | ||
| 340 | |||
| 341 | +bin_PROGRAMS = | ||
| 342 | + | ||
| 343 | if HAVE_EGL | ||
| 344 | if HAVE_GLESV2 | ||
| 345 | -bin_PROGRAMS = | ||
| 346 | -if HAVE_X11 | ||
| 347 | -bin_PROGRAMS += \ | ||
| 348 | - es2_info \ | ||
| 349 | - es2gears_x11 \ | ||
| 350 | - es2tri | ||
| 351 | -endif | ||
| 352 | if HAVE_WAYLAND | ||
| 353 | bin_PROGRAMS += es2gears_wayland | ||
| 354 | -endif | ||
| 355 | -endif | ||
| 356 | + | ||
| 357 | +es2gears_wayland_SOURCES = es2gears.c | ||
| 358 | +es2gears_wayland_LDADD = ../eglut/libeglut_wayland.la | ||
| 359 | endif | ||
| 360 | |||
| 361 | -es2_info_LDADD = $(X11_LIBS) | ||
| 362 | -es2tri_LDADD = $(X11_LIBS) | ||
| 363 | +if HAVE_X11 | ||
| 364 | +bin_PROGRAMS += \ | ||
| 365 | + es2tri \ | ||
| 366 | + es2_info \ | ||
| 367 | + es2gears_x11 | ||
| 368 | |||
| 369 | +es2_info_LDADD = $(X11_LIBS) | ||
| 370 | es2gears_x11_SOURCES = es2gears.c | ||
| 371 | - | ||
| 372 | es2gears_x11_LDADD = ../eglut/libeglut_x11.la | ||
| 373 | +es2tri_LDADD = $(X11_LIBS) | ||
| 374 | +endif | ||
| 375 | +endif | ||
| 376 | +endif | ||
| 377 | |||
| 378 | -es2gears_wayland_SOURCES = es2gears.c | ||
| 379 | -es2gears_wayland_LDADD = ../eglut/libeglut_wayland.la | ||
| 380 | -- | ||
| 381 | 2.1.4 | ||
| 382 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0007-Install-few-more-test-programs.patch b/meta/recipes-graphics/mesa/mesa-demos/0007-Install-few-more-test-programs.patch deleted file mode 100644 index b27d9eafa5..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0007-Install-few-more-test-programs.patch +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | From 2e0367a941445a862ab99c54ec85d1357d0f73c0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Thu, 10 Jul 2014 14:30:52 +0200 | ||
| 4 | Subject: [PATCH] Install few more test programs | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 9 | |||
| 10 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 11 | |||
| 12 | --- | ||
| 13 | src/egl/opengl/Makefile.am | 3 +-- | ||
| 14 | src/egl/openvg/Makefile.am | 2 +- | ||
| 15 | 2 files changed, 2 insertions(+), 3 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/src/egl/opengl/Makefile.am b/src/egl/opengl/Makefile.am | ||
| 18 | index 6d184ff6..ab09d028 100644 | ||
| 19 | --- a/src/egl/opengl/Makefile.am | ||
| 20 | +++ b/src/egl/opengl/Makefile.am | ||
| 21 | @@ -57,8 +57,7 @@ endif | ||
| 22 | |||
| 23 | if HAVE_EGL | ||
| 24 | bin_PROGRAMS = \ | ||
| 25 | - eglinfo | ||
| 26 | -noinst_PROGRAMS = \ | ||
| 27 | + eglinfo \ | ||
| 28 | peglgears \ | ||
| 29 | $(EGL_DRM_DEMOS) \ | ||
| 30 | $(EGL_X11_DEMOS) \ | ||
| 31 | diff --git a/src/egl/openvg/Makefile.am b/src/egl/openvg/Makefile.am | ||
| 32 | index b0f1212f..5fd1cf83 100644 | ||
| 33 | --- a/src/egl/openvg/Makefile.am | ||
| 34 | +++ b/src/egl/openvg/Makefile.am | ||
| 35 | @@ -49,7 +49,7 @@ endif | ||
| 36 | |||
| 37 | if HAVE_EGL | ||
| 38 | if HAVE_VG | ||
| 39 | -noinst_PROGRAMS = \ | ||
| 40 | +bin_PROGRAMS = \ | ||
| 41 | $(EGL_X11_DEMOS) | ||
| 42 | endif | ||
| 43 | endif | ||
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch b/meta/recipes-graphics/mesa/mesa-demos/0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch deleted file mode 100644 index a6d168175f..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch +++ /dev/null | |||
| @@ -1,99 +0,0 @@ | |||
| 1 | From 894add34c2b5e6b4ccc78996bf681d7ec7bc9e36 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Thu, 10 Jul 2014 14:29:27 +0200 | ||
| 4 | Subject: [PATCH] glsl, perf: Add few missing .glsl, .vert, .frag files to | ||
| 5 | EXTRA_DATA | ||
| 6 | |||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 10 | |||
| 11 | --- | ||
| 12 | src/fpglsl/Makefile.am | 2 ++ | ||
| 13 | src/glsl/Makefile.am | 10 ++++++++-- | ||
| 14 | src/perf/Makefile.am | 6 ++++++ | ||
| 15 | src/vpglsl/Makefile.am | 1 + | ||
| 16 | 4 files changed, 17 insertions(+), 2 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/src/fpglsl/Makefile.am b/src/fpglsl/Makefile.am | ||
| 19 | index 47c1039f..fd43c919 100644 | ||
| 20 | --- a/src/fpglsl/Makefile.am | ||
| 21 | +++ b/src/fpglsl/Makefile.am | ||
| 22 | @@ -39,10 +39,12 @@ noinst_PROGRAMS = \ | ||
| 23 | endif | ||
| 24 | |||
| 25 | EXTRA_DIST = \ | ||
| 26 | + depth-read.glsl \ | ||
| 27 | dowhile2.glsl \ | ||
| 28 | dowhile.glsl \ | ||
| 29 | forbreak.glsl \ | ||
| 30 | for.glsl \ | ||
| 31 | + infinite-loop.glsl \ | ||
| 32 | mov.glsl \ | ||
| 33 | mov-imm.glsl \ | ||
| 34 | simpleif.glsl \ | ||
| 35 | diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am | ||
| 36 | index 4faa8dbf..079a29d8 100644 | ||
| 37 | --- a/src/glsl/Makefile.am | ||
| 38 | +++ b/src/glsl/Makefile.am | ||
| 39 | @@ -37,7 +37,7 @@ AM_LDFLAGS = \ | ||
| 40 | if HAVE_GLUT | ||
| 41 | bin_PROGRAMS = \ | ||
| 42 | array \ | ||
| 43 | - bezier \ | ||
| 44 | + bezier \ | ||
| 45 | bitmap \ | ||
| 46 | brick \ | ||
| 47 | bump \ | ||
| 48 | @@ -123,12 +123,16 @@ EXTRA_DIST = \ | ||
| 49 | CH06-brick.vert \ | ||
| 50 | CH11-bumpmap.frag \ | ||
| 51 | CH11-bumpmap.vert \ | ||
| 52 | + CH11-bumpmaptex.frag \ | ||
| 53 | CH11-toyball.frag \ | ||
| 54 | CH11-toyball.vert \ | ||
| 55 | CH18-mandel.frag \ | ||
| 56 | CH18-mandel.vert \ | ||
| 57 | - bezier.geom \ | ||
| 58 | + bezier.geom \ | ||
| 59 | brick.shtest \ | ||
| 60 | + blinking-teapot.frag \ | ||
| 61 | + blinking-teapot.vert \ | ||
| 62 | + convolution.frag \ | ||
| 63 | convolution.vert \ | ||
| 64 | cubemap.frag \ | ||
| 65 | mandelbrot.shtest \ | ||
| 66 | @@ -138,5 +142,7 @@ EXTRA_DIST = \ | ||
| 67 | reflect.vert \ | ||
| 68 | shadowtex.frag \ | ||
| 69 | simple.vert \ | ||
| 70 | + simplex-noise.glsl \ | ||
| 71 | skinning.frag \ | ||
| 72 | + skinning.vert \ | ||
| 73 | toyball.shtest | ||
| 74 | diff --git a/src/perf/Makefile.am b/src/perf/Makefile.am | ||
| 75 | index f0031fea..60069396 100644 | ||
| 76 | --- a/src/perf/Makefile.am | ||
| 77 | +++ b/src/perf/Makefile.am | ||
| 78 | @@ -59,3 +59,9 @@ endif | ||
| 79 | |||
| 80 | glslstateschange_LDADD = libperf.la ../util/libutil.la | ||
| 81 | glsl_compile_time_LDADD = ../util/libutil.la | ||
| 82 | + | ||
| 83 | +EXTRA_DIST = \ | ||
| 84 | + glslstateschange1.frag \ | ||
| 85 | + glslstateschange1.vert \ | ||
| 86 | + glslstateschange2.frag \ | ||
| 87 | + glslstateschange2.vert | ||
| 88 | diff --git a/src/vpglsl/Makefile.am b/src/vpglsl/Makefile.am | ||
| 89 | index 4a85ed40..48b08f48 100644 | ||
| 90 | --- a/src/vpglsl/Makefile.am | ||
| 91 | +++ b/src/vpglsl/Makefile.am | ||
| 92 | @@ -44,6 +44,7 @@ EXTRA_DIST = \ | ||
| 93 | func2.glsl \ | ||
| 94 | ifelse.glsl \ | ||
| 95 | if.glsl \ | ||
| 96 | + infinite-loop.glsl \ | ||
| 97 | mov.glsl \ | ||
| 98 | nestedifs.glsl \ | ||
| 99 | nestedswizzle.glsl \ | ||
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch b/meta/recipes-graphics/mesa/mesa-demos/0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch deleted file mode 100644 index 8a98ba60d1..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch +++ /dev/null | |||
| @@ -1,71 +0,0 @@ | |||
| 1 | From 477ab6d90a17d8e4d3935be6ce8b8e154db0e3e5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Thu, 10 Jul 2014 14:48:12 +0200 | ||
| 4 | Subject: [PATCH] glsl, perf: Install .glsl, .vert, .frag files | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 8 | |||
| 9 | --- | ||
| 10 | src/fpglsl/Makefile.am | 3 ++- | ||
| 11 | src/glsl/Makefile.am | 3 ++- | ||
| 12 | src/perf/Makefile.am | 3 ++- | ||
| 13 | src/vpglsl/Makefile.am | 3 ++- | ||
| 14 | 4 files changed, 8 insertions(+), 4 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/src/fpglsl/Makefile.am b/src/fpglsl/Makefile.am | ||
| 17 | index fd43c919..2bf51de4 100644 | ||
| 18 | --- a/src/fpglsl/Makefile.am | ||
| 19 | +++ b/src/fpglsl/Makefile.am | ||
| 20 | @@ -38,7 +38,8 @@ noinst_PROGRAMS = \ | ||
| 21 | fp-tri | ||
| 22 | endif | ||
| 23 | |||
| 24 | -EXTRA_DIST = \ | ||
| 25 | +demosdatadir=$(datadir)/$(PACKAGE)/ | ||
| 26 | +dist_demosdata_DATA= \ | ||
| 27 | depth-read.glsl \ | ||
| 28 | dowhile2.glsl \ | ||
| 29 | dowhile.glsl \ | ||
| 30 | diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am | ||
| 31 | index 079a29d8..f66ec299 100644 | ||
| 32 | --- a/src/glsl/Makefile.am | ||
| 33 | +++ b/src/glsl/Makefile.am | ||
| 34 | @@ -118,7 +118,8 @@ vert_or_frag_only_LDADD = ../util/libutil.la | ||
| 35 | vert_tex_LDADD = ../util/libutil.la | ||
| 36 | vsraytrace_LDADD = ../util/libutil.la | ||
| 37 | |||
| 38 | -EXTRA_DIST = \ | ||
| 39 | +demosdatadir=$(datadir)/$(PACKAGE)/ | ||
| 40 | +dist_demosdata_DATA= \ | ||
| 41 | CH06-brick.frag \ | ||
| 42 | CH06-brick.vert \ | ||
| 43 | CH11-bumpmap.frag \ | ||
| 44 | diff --git a/src/perf/Makefile.am b/src/perf/Makefile.am | ||
| 45 | index 60069396..469bdf45 100644 | ||
| 46 | --- a/src/perf/Makefile.am | ||
| 47 | +++ b/src/perf/Makefile.am | ||
| 48 | @@ -60,7 +60,8 @@ endif | ||
| 49 | glslstateschange_LDADD = libperf.la ../util/libutil.la | ||
| 50 | glsl_compile_time_LDADD = ../util/libutil.la | ||
| 51 | |||
| 52 | -EXTRA_DIST = \ | ||
| 53 | +demosdatadir=$(datadir)/$(PACKAGE)/ | ||
| 54 | +dist_demosdata_DATA= \ | ||
| 55 | glslstateschange1.frag \ | ||
| 56 | glslstateschange1.vert \ | ||
| 57 | glslstateschange2.frag \ | ||
| 58 | diff --git a/src/vpglsl/Makefile.am b/src/vpglsl/Makefile.am | ||
| 59 | index 48b08f48..55268675 100644 | ||
| 60 | --- a/src/vpglsl/Makefile.am | ||
| 61 | +++ b/src/vpglsl/Makefile.am | ||
| 62 | @@ -38,7 +38,8 @@ noinst_PROGRAMS = \ | ||
| 63 | vp-tris | ||
| 64 | endif | ||
| 65 | |||
| 66 | -EXTRA_DIST = \ | ||
| 67 | +demosdatadir=$(datadir)/$(PACKAGE)/ | ||
| 68 | +dist_demosdata_DATA= \ | ||
| 69 | for.glsl \ | ||
| 70 | func.glsl \ | ||
| 71 | func2.glsl \ | ||
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 deleted file mode 100644 index c687647407..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 3aa84c47e88a4c38446ce1323abf6f2c77389104 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Prabhu <prabhu.sundararaj@freescale.com> | ||
| 3 | Date: Mon, 16 Nov 2015 17:09:32 -0600 | ||
| 4 | Subject: [PATCH] mesa-demos: OpenVG demos with single frame need eglSwapBuffer | ||
| 5 | |||
| 6 | sp and text demos rendering single frame. to display the | ||
| 7 | single frame rendered needed a eglSwapBuffer to diplay to window. | ||
| 8 | Hence added eglutPostRedisplay to display the frame | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-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 | |||
| 18 | diff --git a/src/egl/openvg/sp.c b/src/egl/openvg/sp.c | ||
| 19 | index 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 | |||
| 30 | diff --git a/src/egl/openvg/text.c b/src/egl/openvg/text.c | ||
| 31 | index 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 | -- | ||
| 43 | 2.5.1 | ||
| 44 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb deleted file mode 100644 index 01e5b35d0e..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb +++ /dev/null | |||
| @@ -1,57 +0,0 @@ | |||
| 1 | SUMMARY = "Mesa demo applications" | ||
| 2 | DESCRIPTION = "This package includes the demonstration application, such as glxgears. \ | ||
| 3 | These applications can be used for Mesa validation and benchmarking." | ||
| 4 | HOMEPAGE = "http://mesa3d.org" | ||
| 5 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
| 6 | SECTION = "x11" | ||
| 7 | |||
| 8 | LICENSE = "MIT & PD" | ||
| 9 | LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \ | ||
| 10 | file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06" | ||
| 11 | |||
| 12 | SRC_URI = "https://mesa.freedesktop.org/archive/demos/${BPN}-${PV}.tar.bz2 \ | ||
| 13 | file://0001-mesa-demos-Add-missing-data-files.patch \ | ||
| 14 | file://0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch \ | ||
| 15 | file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \ | ||
| 16 | file://0007-Install-few-more-test-programs.patch \ | ||
| 17 | file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \ | ||
| 18 | file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ | ||
| 19 | file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ | ||
| 20 | " | ||
| 21 | SRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3" | ||
| 22 | SRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d" | ||
| 23 | |||
| 24 | inherit autotools pkgconfig features_check | ||
| 25 | # depends on virtual/egl, virtual/libgl ... | ||
| 26 | REQUIRED_DISTRO_FEATURES = "opengl x11" | ||
| 27 | |||
| 28 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ | ||
| 29 | x11 glew glu" | ||
| 30 | |||
| 31 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now | ||
| 32 | #${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" | ||
| 33 | |||
| 34 | EXTRA_OECONF = "--with-system-data-files" | ||
| 35 | |||
| 36 | PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" | ||
| 37 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" | ||
| 38 | PACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype" | ||
| 39 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm,virtual/libgl" | ||
| 40 | PACKAGECONFIG[gles1] = "--enable-gles1,--disable-gles1,virtual/libgles1" | ||
| 41 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2" | ||
| 42 | PACKAGECONFIG[glut] = "--with-glut=${STAGING_EXECPREFIXDIR},--without-glut,freeglut" | ||
| 43 | PACKAGECONFIG[osmesa] = "--enable-osmesa,--disable-osmesa," | ||
| 44 | PACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libopenvg" | ||
| 45 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland" | ||
| 46 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" | ||
| 47 | PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" | ||
| 48 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" | ||
| 49 | |||
| 50 | do_install:append() { | ||
| 51 | # it can be completely empty when all PACKAGECONFIG options are disabled | ||
| 52 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | ||
| 53 | |||
| 54 | if [ -f ${D}${bindir}/clear ]; then | ||
| 55 | mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos | ||
| 56 | fi | ||
| 57 | } | ||
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.5.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.5.0.bb new file mode 100644 index 0000000000..6e9b95e1e2 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-demos_8.5.0.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "Mesa demo applications" | ||
| 2 | DESCRIPTION = "This package includes the demonstration application, such as glxgears. \ | ||
| 3 | These applications can be used for Mesa validation and benchmarking." | ||
| 4 | HOMEPAGE = "http://mesa3d.org" | ||
| 5 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
| 6 | SECTION = "x11" | ||
| 7 | |||
| 8 | LICENSE = "MIT & PD" | ||
| 9 | LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \ | ||
| 10 | file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06" | ||
| 11 | |||
| 12 | SRC_URI = "https://mesa.freedesktop.org/archive/demos/${PV}/${BPN}-${PV}.tar.bz2 \ | ||
| 13 | file://0001-mesa-demos-Add-missing-data-files.patch \ | ||
| 14 | file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \ | ||
| 15 | " | ||
| 16 | SRC_URI[sha256sum] = "cea2df0a80f09a30f635c4eb1a672bf90c5ddee0b8e77f4d70041668ef71aac1" | ||
| 17 | |||
| 18 | inherit meson pkgconfig features_check | ||
| 19 | # depends on virtual/egl, virtual/libgl ... | ||
| 20 | REQUIRED_DISTRO_FEATURES = "opengl x11" | ||
| 21 | |||
| 22 | EXTRA_OEMESON = "-Dwith-system-data-files=true" | ||
| 23 | |||
| 24 | PACKAGECONFIG ?= "drm egl gles1 gles2 \ | ||
| 25 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}" | ||
| 26 | |||
| 27 | PACKAGECONFIG[drm] = "-Dlibdrm=enabled,-Dlibdrm=disabled,libdrm" | ||
| 28 | PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl" | ||
| 29 | PACKAGECONFIG[gles1] = "-Dgles1=enabled,-Dgles1=disabled,virtual/libgles1" | ||
| 30 | PACKAGECONFIG[gles2] = "-Dgles2=enabled,-Dgles2=disabled,virtual/libgles2" | ||
| 31 | PACKAGECONFIG[glut] = "-Dwith-glut=${STAGING_EXECPREFIXDIR},,freeglut" | ||
| 32 | PACKAGECONFIG[osmesa] = "-Dosmesa=enabled,-Dosmesa=disabled," | ||
| 33 | PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,virtual/libgl wayland wayland-native" | ||
| 34 | PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libglu" | ||
| 35 | |||
| 36 | do_install:append() { | ||
| 37 | # it can be completely empty when all PACKAGECONFIG options are disabled | ||
| 38 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | ||
| 39 | |||
| 40 | if [ -f ${D}${bindir}/clear ]; then | ||
| 41 | mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos | ||
| 42 | fi | ||
| 43 | } | ||
