summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-10 20:39:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 17:09:16 +0000
commit5d7031945dfd0874a83056dbb83dbc49d041b504 (patch)
treef455c4a1101744d3e752b77d8489b8d61517e059 /meta/recipes-graphics
parent772afb26783d35f3b2fe24d39a344c2749c90c7d (diff)
downloadpoky-5d7031945dfd0874a83056dbb83dbc49d041b504.tar.gz
mesa-demos: drop glx option and patch
As far as I can see the x11 option does the same thing. (From OE-Core rev: a904c9492e86be39fcdd244e8f4b9768861c0e77) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch62
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb4
2 files changed, 1 insertions, 65 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch b/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch
deleted file mode 100644
index e7be4dfbe1..0000000000
--- a/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From 322af294390a7f4e1524c5a79312be6cbebce988 Mon Sep 17 00:00:00 2001
2From: Awais Belal <awais_belal@mentor.com>
3Date: Wed, 11 Nov 2015 17:22:12 +0500
4Subject: [PATCH] only build GLX demos if needed
5
6There are platforms that default to EGL only configurations
7in which case the GLX applications are not required
8at all. Allow the user to control generation of these
9demos as needed through a configure switch.
10
11Signed-off-by: Awais Belal <awais_belal@mentor.com>
12Upstream-Status: Pending
13---
14 configure.ac | 9 +++++++++
15 src/Makefile.am | 6 +++++-
16 2 files changed, 14 insertions(+), 1 deletion(-)
17
18diff --git a/configure.ac b/configure.ac
19index f8ec7e3..1a4d96d 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -132,6 +132,11 @@ if test "x$enable_glu" = xyes; then
23 DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
24 fi
25
26+AC_ARG_ENABLE([glx-demos],
27+ [AS_HELP_STRING([--enable-glx-demos],
28+ [enable GLX demos @<:@default=auto@:>@])],
29+ [glx_demos_enabled="$enableval"],
30+ [glx_demos_enabled=yes])
31 AC_ARG_ENABLE([egl],
32 [AS_HELP_STRING([--enable-egl],
33 [enable EGL library @<:@default=auto@:>@])],
34@@ -325,6 +333,7 @@ AC_SUBST([WAYLAND_LIBS])
35
36 AM_CONDITIONAL(HAVE_GLU, test "x$glu_enabled" = "xyes")
37 AM_CONDITIONAL(HAVE_GLEW, test "x$glew_enabled" = "xyes")
38+AM_CONDITIONAL(HAVE_GLX, test "x$glx_demos_enabled" = "xyes")
39 AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
40 AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
41 AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
42diff --git a/src/Makefile.am b/src/Makefile.am
43index 8b89dee..a4d7e8f 100644
44--- a/src/Makefile.am
45+++ b/src/Makefile.am
46@@ -44,8 +44,12 @@ SUBDIRS = \
47 slang \
48 tests \
49 tools \
50- wgl \
51+ wgl
52+
53+if HAVE_GLX
54+SUBDIRS += \
55 xdemos
56+endif
57
58 if HAVE_GLEW
59 SUBDIRS += \
60--
611.9.1
62
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
index 368af4e915..01e5b35d0e 100644
--- a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
@@ -17,7 +17,6 @@ SRC_URI = "https://mesa.freedesktop.org/archive/demos/${BPN}-${PV}.tar.bz2 \
17 file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.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 \ 18 file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \
19 file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ 19 file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \
20 file://0013-only-build-GLX-demos-if-needed.patch \
21 " 20 "
22SRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3" 21SRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3"
23SRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d" 22SRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d"
@@ -27,7 +26,7 @@ inherit autotools pkgconfig features_check
27REQUIRED_DISTRO_FEATURES = "opengl x11" 26REQUIRED_DISTRO_FEATURES = "opengl x11"
28 27
29PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ 28PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \
30 x11 glew glu glx" 29 x11 glew glu"
31 30
32# The Wayland code doesn't work with Wayland 1.0, so disable it for now 31# The Wayland code doesn't work with Wayland 1.0, so disable it for now
33#${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" 32#${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}"
@@ -47,7 +46,6 @@ PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayla
47PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" 46PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11"
48PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" 47PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew"
49PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" 48PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl"
50PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos"
51 49
52do_install:append() { 50do_install:append() {
53 # it can be completely empty when all PACKAGECONFIG options are disabled 51 # it can be completely empty when all PACKAGECONFIG options are disabled