aboutsummaryrefslogtreecommitdiff
path: root/package/mesa3d/Config.in
Commit message (Collapse)AuthorAgeFilesLines
* package/mesa3d: drop r100 dependency on _HAS_ATOMICGravatar Yann E. MORIN2020-10-061-1/+5
| | | | | | | | | | | | | | | | | | | | | This partially reverts commit a3aac6d84713db7e6d2683eabf965eae21ce48bf, just dropping the atomic dependency. That dependency would introduce a "recursive dependency" chain in Kconfig. However, r100 is only available on i386 and x86-64, and they both have sync4, which means libdrm's HAS_ATOMICS is always 'y' when r100 is available. So, like we did in 00c1a8c34f7 (package/mesa3d: propagate missing libdrm-freedreno deps), we just add a fat comment that explains why the dependency is not propagated. Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: James Hilliard <james.hilliard1@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
* package/mesa3d: add missing depends and driver name to r100 driverGravatar James Hilliard2020-10-061-1/+3
| | | | | | | | | | Propagate libdrm dependencies. Add r100 to menu name to differentiate from r200 dri driver. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: xvmc needs x11Gravatar Bernd Kuhls2020-08-021-0/+1
| | | | | | | | | | | | | | | This is a follow-up patch to https://git.buildroot.net/buildroot/commit/package/mesa3d?id=e79ee3b0f91aa3eb1b20d86701a195e3bd9a26d3 to make sure that MESA3D_PLATFORMS contains x11 needed by xvmc: https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=20.1#n510 Fixes http://autobuild.buildroot.net/results/dae/dae41e30d2ac69b768ec0a5b795a2e559c35bcd3/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: propagate missing libdrm-freedreno depsGravatar James Hilliard2020-05-261-0/+6
| | | | | | | | | Libdrm freedreno depends on BR2_arm || BR2_aarch64 || BR2_aarch64_be as such we need to propagate those dependencies to mesa's gallium freedreno driver. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: select LIBDRM_FREEDRENO for freedrenoGravatar Fabio Estevam2020-04-111-0/+1
| | | | | | | | The mesa3d freedreno driver is not usable without the corresponding libdrm support for this platform, so select LIBDRM_FREEDRENO. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: do not select MESA3D_OPENGL_EGL for etnavivGravatar Fabio Estevam2020-04-111-1/+0
| | | | | | | | | As suggested by Thomas, BR2_PACKAGE_MESA3D_OPENGL_EGL should not be automatically selected by the etnaviv driver. Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: disable v3d support for arm if neon is not supportedGravatar Peter Seiderer2020-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | The v3d driver for arm uses neon instructions unconditionally, so depend on BR2_ARM_CPU_HAS_NEON. Fixes: http://autobuild.buildroot.net/results/66c4df4ee84b73160dde5fe4437b5abdbd2b50d2 [1050/1079] Compiling C object 'src/gallium/drivers/v3d/99241e4@@v3d_neon@sta/v3d_tiling.c.o'. {standard input}: Assembler messages: {standard input}:417: Error: selected processor does not support `vldm r6,{q0,q1,q2,q3}' in ARM mode {standard input}:418: Error: selected processor does not support `vst1.8 d0,[r4],r5' in ARM mode {standard input}:419: Error: selected processor does not support `vst1.8 d1,[r4],r5' in ARM mode {standard input}:420: Error: selected processor does not support `vst1.8 d2,[r4],r5' in ARM mode {standard input}:421: Error: selected processor does not support `vst1.8 d3,[r4],r5' in ARM mode {standard input}:422: Error: selected processor does not support `vst1.8 d4,[r4],r5' in ARM mode {standard input}:423: Error: selected processor does not support `vst1.8 d5,[r4],r5' in ARM mode {standard input}:424: Error: selected processor does not support `vst1.8 d6,[r4],r5' in ARM mode Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: gbm needs a DRI driver or a Gallium driver w/ EGLGravatar Romain Naour2020-02-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/gbm/cd6bfad@@gbm at sha/main_backend.c.o: In function `_gbm_create_device': backend.c:(.text+0x38): undefined reference to `gbm_dri_backend' backend.c:(.text+0x40): undefined reference to `gbm_dri_backend' backend.c:(.text+0x74): undefined reference to `gbm_dri_backend' backend.c:(.text+0x78): undefined reference to `gbm_dri_backend' collect2: error: ld returned 1 exit status This issue has been trigged since [1]: "package/mesa3d: add option to configure gbm support" Before the patch, the gbm support was autodetected by meson and enabled only when at least one dri driver was enabled [2]. On the Buildroot side, the gbm support was explicitely enabled only when BR2_PACKAGE_MESA3D_OPENGL_EGL was set. We have two cases: - At least one DRI driver. - No DRI driver but one Gallium w/ EGL enable (EGL selected or not by the Gallium driver). In this case the meson build system set with_dri to true (even if no DRI driver is enabled) to use the builtin:egl_dri2 [3]. The gbm's meson build system seems to handle the case where no dri driver is enabled [4] but it still use main/backend.c source file [6] that use gbm_dri_backend [7]. So with_dri2 must always be set. Probably a missing check in meson.build: if with_gbm and not with_dri error('GBM backend needs a dri driver or a gallium driver w/ EGL support.') endif Add a dependency on GBM option: depends on BR2_PACKAGE_MESA3D_DRI_DRIVER \ || (BR2_PACKAGE_MESA3D_GALLIUM_DRIVER && BR2_PACKAGE_MESA3D_OPENGL_EGL) Fixes: http://autobuild.buildroot.net/results/b9b6281983388dc22d929887d653da3db60f1f2c [1] b6c051acf787c804e732bc58ba8d7e440701a168 [2] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/meson.build#L348 [3] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/meson.build#L212 [4] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/src/gbm/meson.build#L37 [5] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/src/gbm/meson.build#L24 [6] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/src/gbm/main/backend.c#L38 [7] http://lists.busybox.net/pipermail/buildroot/2020-February/274425.html Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> [yann.morin.1998@free.fr: fix dependency of comment] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: select gbm if no glx, no egl and no osmesa-classicGravatar Romain Naour2020-02-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This issue has been trigged since [1]: "package/mesa3d: add option to configure gbm support" Before the patch, the gbm support was autodetected by meson and enabled only when at least one dri driver was enabled [2]. On the Buildroot side, the gbm support was explicitely enabled only when BR2_PACKAGE_MESA3D_OPENGL_EGL was set. Now, the gbm support is explicitely disabled but the meson build system check if at least one option OpenGL GLX or OpenGL EGL or GBM or OSMesa (classic) library is enabled [3]. The previous behavious was to enable GBM when GLX, EGL and OSMesa are disabled. So select GBM symbol for this case. Fixes: http://autobuild.buildroot.net/results/a14f329560f8022f7ba8ec43ad8eed84e005d226 [1] b6c051acf787c804e732bc58ba8d7e440701a168 [2] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/meson.build#L348 [3] https://gitlab.freedesktop.org/mesa/mesa/blob/19.3/meson.build#L449 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: fix circular dependency in KconfigGravatar Yann E. MORIN2020-02-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | When the r300 driver was introduced in c5ae77c97 (package/mesa3d: add support for gallium r300 driver), a last-minute fix was introduced by Yann, to properly propagate the dependency of a selected symbol. However, this ended up causing a spurious circular dependency that does not really exists, but that Kconfig is not smart enough to detect is in fact OK. Fixing this is pretty non-obvious, but we have an easy way out: the dependency is about libdrm's radeon driver requirement for a toolchain that has the sync4 family of primitives, which is always a given for an x86 toolchain. As the radeon r300 driver is x86-only, this dependency is forcefully fulfilled. So, we drop the propagated dependency, and replace it by a fat comment. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Romain Naour <romain.naour@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Cc: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mesa3d: add support for gallium r300 driverGravatar James Hilliard2020-02-091-3/+14
| | | | | | Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: propagate libdrm's radeon dependencies] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: add support for gallium i915 driverGravatar James Hilliard2020-02-091-0/+13
| | | | | | Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: also guard comment with x86 dependency] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: fix iris driver depends and selectsGravatar James Hilliard2020-02-091-1/+1
| | | | | | | | | | | | | | | | | | | iris is inherently an x86-only driver, and it hard codes gcc options specific to x86m like -msse2, causing build breakage on other architectures. iris also does not use kmsro, but the select was accidentally added when iris was introduced. Fix both by adding the missing dependency to x86, and by removing the select to kmsro. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - ad dependency to x86 - reword commit log accordingly ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: add v3d driver supportGravatar Peter Seiderer2020-02-041-0/+15
| | | | | | | | | Support for v3d was added in mainline 4.18, and requires a few options to be set in the kernel, so we list that in the help text. Signed-off-by: Peter Seiderer <ps.report@gmx.net> [yann.morin.1998@free.fr: tweak the help text] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* package/mesa3d: add option to configure gbm supportGravatar Bernd Kuhls2020-02-031-0/+6
| | | | | | | | | Kodi 18.0-Leia implements stand-alone gbm support alongside x11 & wayland. To enable building gbm support in mesa3d without x11 & wayland we need to add a specific configure option for it. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: add support for gallium iris driverGravatar James Hilliard2020-02-011-0/+7
| | | | | Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: VDPAU needs x11Gravatar Fabrice Fontaine2019-11-041-8/+15
| | | | | | | | | | | | | | | | Commit c898f95c275a105caacbb31adf92ef94bd4530c4 added support for Gallium VDPAU state tracker by updating Config.in to add a dependency on XORG7. However, mesa3d.mk was not updated to reflect this dependency. XORG7 dependences is already managed under the ifeq BR2_PACKAGE_MESA3D_OPENGL_GLX block so reuse this block by making ifeq depends on a new BR2_PACKAGE_MESA3D_NEEDS_X11 hidden option Fixes: - http://autobuild.buildroot.org/results/bbd102d59bbdca35fd1b5401df2790dd197d1e5f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* packages: host gcc >= 4.8 is now guaranteedGravatar Yann E. MORIN2019-10-271-3/+2
| | | | | | | | | | | ... so we can drop all config options about it and previous versions. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Romain Naour <romain.naour@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mesa3d: add xlib_libXv dependency to mesa3d xvmcGravatar Romain Naour2019-10-251-0/+1
| | | | | | | | | | | | | | | | | | From [1] "Prior to xvmc 1.0.12 libxvmc incorrectly required libxv, but that was fixed. This results in compilation failures for the gallium xvmc tracker and tools. This patch fixes that by explicitly linking to libxv." Add xlib_libXv dependency to mesa3d when BR2_PACKAGE_MESA3D_XVMC is set. [1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=e456a053c3d6ec4f3d4581edcad05c72dfdaa407 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: enable llvm RTTI when neededGravatar Romain Naour2019-10-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | LLVM must be built with rtti (runtime type information) support to build the Gallium Nouveau driver or the Clover OpenCL state tracker when llvm support is enabled in mesa3d. Fixes the build when BR2_PACKAGE_MESA3D_OPENCL is set: "The Clover OpenCL state tracker requires rtti, you need to turn off clover or use an LLVM built with LLVM_ENABLE_RTTI." This check was added by mesa3d 19.1: https://cgit.freedesktop.org/mesa/mesa/commit/?id=29912f2ea486fb8ffbc98db347679cf542422efe Fixes the build when BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU and BR2_PACKAGE_MESA3D_LLVM are set "The Nouveau driver requires rtti. You either need to turn off nouveau or use an LLVM built with LLVM_ENABLE_RTTI." This check was added by mesa3d 19.0: https://cgit.freedesktop.org/mesa/mesa/commit/?id=a2596450ac7330c8965c819491038fb1ad454333 Signed-off-by: Romain Naour <romain.naour@gmail.com> Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: add explicit option for Gallium VDPAU state trackerGravatar Bernd Kuhls2019-10-131-0/+17
| | | | | | | | | | | | | | | | | Dependencies are too complex to have them handled automatically: - needs mesa3d platform x11: https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=19.2#n452 - needs specific gallium drivers: https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=19.2#n459 Fixes: http://autobuild.buildroot.net/results/a2c/a2c120193f5bace3a8bbcfa728dae7e290e15d6c/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Romain Naour <romain.naour@gmail.com> [Arnout: fix check-package issue] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add support for gallium tegra driverGravatar Bernd Kuhls2019-09-281-0/+9
| | | | | | | | | "tegra driver requires nouveau driver": https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=19.2#n251 Suggested-by: Ross Green <grunpferd@netscape.net> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: remove x86/x86_64 dependency for nouveau Gallium driverGravatar Bernd Kuhls2019-09-281-1/+0
| | | | | | | | | Nvidia chips are used on arm hardware as well like Jetson: https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/ Suggested-by: Ross Green <grunpferd@netscape.net> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: bump version to 19.2.0Gravatar Bernd Kuhls2019-09-271-4/+0
| | | | | | | | | | | | | | | | Updated license hash after cosmetical upstream commits: https://cgit.freedesktop.org/mesa/mesa/log/docs/license.html?h=19.2 Upstream removed asm configure option: https://cgit.freedesktop.org/mesa/mesa/commit/meson.build?h=19.2&id=20294dceebc23236e33b22578245f7e6f41b6997 Removed dependency to DRI swrast driver for BR2_PACKAGE_MESA3D_OSMESA_CLASSIC after upstream commit https://cgit.freedesktop.org/mesa/mesa/commit/meson.build?h=19.2&id=b816edcbf40abca1e3d68b1a706f5670b3fcf4d7 removed this dependency. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: add support for gallium freedreno driverGravatar Bernd Kuhls2019-09-211-0/+7
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add support for gallium panfrost driverGravatar Bernd Kuhls2019-09-211-0/+7
| | | | | | | For details see https://panfrost.freedesktop.org Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add support for gallium lima driverGravatar Bernd Kuhls2019-09-211-0/+7
| | | | | | | | More infos can be found here: https://gitlab.freedesktop.org/lima/web/wikis/home Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: select kmsro for etnavivGravatar Romain Naour2019-09-211-0/+1
| | | | | | | | | | Quote from mesa3d meson.build: "kmsro driver requires one or more renderonly drivers (vc4, etnaviv, freedreno)". Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: switch build system to mesonGravatar Bernd Kuhls2019-09-211-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Update patches for meson: 0002-configure.ac-invert-order-for-wayland-scanner-check.patch 0003-set-LIBCLC_INCLUDEDIR.patch Disable unused options that are set to "auto" mode. (valgrind, gallium-omx, power8). Remove --disable-static option since there is no meson equivalent. Remove --disable-mangling since it's not yet supported by meson. Use r100 instead of radeon as DRI name for BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON. Add a new depedency on host-python3-mako since we can't use generated headers from the release archive [2]. [1] http://patchwork.ozlabs.org/patch/1084248/ [2] http://lists.busybox.net/pipermail/buildroot/2019-April/249057.html Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add xvmc optionGravatar Romain Naour2019-09-211-0/+16
| | | | | | | | | | | "XVMC state tracker requires at least one of the following gallium drivers: r600, nouveau." https://cgit.freedesktop.org/mesa/mesa/commit/?id=22a817af8a89eb3c762fc3e07b443a3ce37d7416 Signed-off-by: Romain Naour <romain.naour@smile.fr> [moved Config.in option into Gallium block, fixed comment dependency] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add a new option to enable GLX supportGravatar Romain Naour2019-09-211-11/+20
| | | | | | | | | | | | | | | | | | | | | | | When switching to meson build system, enabling GLX support require at least one DRI or Gallium dirver. So add a dependency on BR2_PACKAGE_MESA3D_DRIVER for BR2_PACKAGE_MESA3D_OPENGL_GLX option. quoting the meson build system: "dri based GLX requires at least one DRI driver." [1] "Even when building just gallium drivers the user probably wants dri." [2] [1] https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=19.0#n340 [2] https://cgit.freedesktop.org/mesa/mesa/tree/meson.build?h=19.0#n266 Signed-off-by: Romain Naour <romain.naour@smile.fr> [Bernd: moved x11 dependencies from glx condition to xorg7 condition to fix build error with enabled egl without glx BR2_PACKAGE_HAS_LIBGL needs to depend on BR2_PACKAGE_MESA3D_OPENGL_GLX] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Arnout: small changes to Config.in help text and menus] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: Gallium xa state tracker is only available for nouveau and ↵Gravatar Romain Naour2019-09-211-3/+3
| | | | | | | | | | | | svga Gallium drivers i915 and freedreno Gallium drivers are not currently supported by mesa3d package. https://cgit.freedesktop.org/mesa/mesa/commit/?id=0ba909f0f111824223bc38563d1a6bc73e69c2cc Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: Only one swrast provider can be builtGravatar Romain Naour2019-09-211-0/+4
| | | | | | | | https://cgit.freedesktop.org/mesa/mesa/commit/?id=de24d61765011ed4bfc169b8ad8cf67e86b1f3bd Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: add OSMesa classic needs dri swrastGravatar Romain Naour2019-09-211-0/+4
| | | | | | | | | | | | The meson build system now check if dri swrast is enabled when OSMesa classic is enabled. See: https://cgit.freedesktop.org/mesa/mesa/commit/?id=cbbd5bb889a2c271a504c379f36a7cb717a85af4 Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: rename OSMesa optionGravatar Romain Naour2019-09-211-4/+4
| | | | | | | | | This option is renamed in order to match the naming used by the meson buildsystem. Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/mesa3d: allow VC4 driver on all ARM platformsGravatar Thomas Petazzoni2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 3e5926555b59b50210bb7814d176b384f9d554ab ("package/{mesa3d, mesa3d-headers}: bump version to 17.1.2"), the dependency of VC4 on BR2_arm was changed to BR2_ARM_CPU_HAS_NEON, which the reasoning that upstream commit https://cgit.freedesktop.org/mesa/mesa/commit/?h=17.1&id=4d30024238efa829cabc72c1601beeee18c3dbf2 made NEON mandatory. However, this commit (including its commit log) clearly shows that there is compile-time detection on whether you're using ARMv6 or ARMv7, and simply says there is no runtime detection for that (which usually isn't very important in the context of Buildroot). So, the VC4 driver can be used on ARMv6 RaspberryPis. Therefore, this commit reverts to the BR2_arm dependency. Note: while there are some ARMv7 without NEONs, all ARMv7 RaspberryPi platforms do have NEON, so the compile-time checks done in the VC4 driver are good enough. Fixes: https://bugs.busybox.net/show_bug.cgi?id=12126 Cc: Sahaj Sarup <sahajsarup@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mesa3d: add KMSRO support for vc4Gravatar Romain Naour2019-04-111-0/+17
| | | | | | | | | | | | | | | | | | | kmsro allow to support KMS displays with the renderonly layer used to attach a GPU [1]. Quote from mesa3d meson.build: "kmsro driver requires one or more renderonly drivers (vc4, etnaviv, freedreno)". But only vc4 support is available by using the (deprecated) autotools build system [2]. This will also be used by mesa to support KMSRO with the upcomming Panfrost and Lima Gallium drivers. [1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=ed65aeec7810a7d98a19461ba933bd77268cb0f6 [2] https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=mesa-19.0.1#n2864 Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/libdrm: amdgpu needs MMUGravatar Fabrice Fontaine2019-03-121-0/+2
| | | | | | | | | | amdgpu test uses fork() so disable amdgpu without MMU Fixes: - http://autobuild.buildroot.org/results/8d6194982c1080e173fcef8212fb06e6dc275d58 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: enable OpenCL supportGravatar Valentin Korenblit2018-12-031-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch provides Clover, the OpenCL 1.1 API implementation by Mesa for AMD GPUs. It generates libOpenCL.so. Add --disable-opencl-icd because in Mesa 18 it defaults to on. When disabled, the shared library is named libOpenCL instead of libMesaOpenCL and CL headers are installed. Given that clc headers are being installed to a non-standard location, it is necessary to specify this path in configure.ac. Otherwise, pkg-config will output the absolute path to these headers located in STAGING_DIR, which will cause a runtime error when calling clBuildProgram. Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr> Signed-off-by: Valentin Korenblit <valentinkorenblit@gmail.com> [Thomas: - improve the description of the patch, based on input from Romain - register as a libopencl provider] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Valentin Korenblit <a class="moz-txt-link-rfc2396E" href="mailto:valentin.korenblit@smile.fr">&lt;valentin.korenblit@smile.fr&gt;</a> Signed-off-by: Valentin Korenblit <a class="moz-txt-link-rfc2396E" href="mailto:valentinkorenblit@gmail.com">&lt;valentinkorenblit@gmail.com&gt;</a> Signed-off-by: Thomas Petazzoni <a class="moz-txt-link-rfc2396E" href="mailto:thomas.petazzoni@bootlin.com">&lt;thomas.petazzoni@bootlin.com&gt;</a> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/{mesa3d, mesa3d-headers}: bump version to 18.2.6Gravatar Bernd Kuhls2018-12-031-0/+1
| | | | | | | | Added mandatory dependency to xlib_libXxf86vm https://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?h=18.2&id=f05ce9dc514427a661696bc6b908e30841b6eb9d Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: Fix header version dependency for Vulkan Intel driverGravatar Bernd Kuhls2018-10-041-3/+3
| | | | | | | memfd.h was included in kernel 3.17, not 3.18. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: dri i965 driver needs headers >= 3.17Gravatar Bernd Kuhls2018-10-031-0/+5
| | | | | | | | | | | | | | | Since https://cgit.freedesktop.org/mesa/mesa/commit/src/intel/tools/aubinator.c?h=18.2&id=3228335b55c300cd07c4aa69329e58e70afae6a8 the dri i965 driver needs linux/memfd.h which is not available in kernel headers older than 3.17: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/uapi/linux/memfd.h?id=refs/tags/v3.18.36 Fixes http://autobuild.buildroot.net/results/5aa/5aac9e9cad789da11b05cbf5d2a5e3f3cf8f1614/ [Peter: memfd.h added in 3.17] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/{mesa3d, mesa3d-headers}: bump version to 18.2.0Gravatar Bernd Kuhls2018-09-101-23/+1
| | | | | | | | | | | | | Upstream unconditionally enabled floating-point textures: https://cgit.freedesktop.org/mesa/mesa/commit/?h=18.2&id=66673bef941af344314fe9c91cad8cd330b245eb x11 support depends on xlib_libXrandr now: https://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?h=18.2&id=3f960c1338713d317ce6463be68cee162c968d8d Removed 0003-musl-time-h.patch, patch was applied upstream. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: vulkan with x11 needs dri3Gravatar Yann E. MORIN2018-08-241-0/+3
| | | | | | | | | | | | | Vulcan with X11 needs DRI3, which in turn requires xlib-libxshmfence. Fixes: http://autobuild.buildroot.org/results/356/35653fc6f57dc169a8aae6baedb1acd1049b50ec/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Cc: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: fix xlib_libxshmfence dependencyGravatar Bernd Kuhls2018-07-311-1/+2
| | | | | | | | | | | | | | | Fixes http://autobuild.buildroot.net/results/6b2/6b214f1013d2def0b7ff33af3115147f47afd7a1/ http://autobuild.buildroot.net/results/8b8/8b8251235f6b08ae2275659f7af241d6d43df074/ http://autobuild.buildroot.net/results/468/4681b76cbca66a267741df80719a4c2e032c6b00/ http://autobuild.buildroot.net/results/90f/90fee90a4a8f6bb35be94ee437f8f7c1f0cbb5d9/ http://autobuild.buildroot.net/results/1b8/1b862e22f9d1dfaf9b8d3a998061a83012302b05/ http://autobuild.buildroot.net/results/ebe/ebe3e12887c89649ad3de0045846836957d83396/ http://autobuild.buildroot.net/results/b7b/b7b300cc056bdc51a0570be2f250b806e306999e/ http://autobuild.buildroot.net/results/c39/c3960a95741341114ced8907de09b6a266999184/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: switch to xorgprotoGravatar Bernd Kuhls2018-07-281-14/+4
| | | | | | | | | | | | The new package xorgproto will combine and replace all current xproto_* packages. For details read https://lists.x.org/archives/xorg-announce/2018-February/002835.html Removed dri3 handling because xorgproto always installs dri3proto. Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: add missing elfutils dependency with R600 and RadeonSI driverGravatar Romain Naour2018-05-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit "add dependency on elfutils for R600 with LLVM" [1] select elfutils package at Kconfig level without adding it the make dependency. Enabling r600 support lead to a build issue when building from scratch with "make mesa3d". Fixes: checking for RADEON... yes configure: error: r600 requires libelf when using llvm elfutils dependency is needed by r600 with llvm support and radeonSI. Fixes: checking for RADEON... yes checking for AMDGPU... yes configure: error: radeonsi requires libelf when using llvm Add a new BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS hidden Config.in boolean selected by R600 and RadeonSI at Kconfig level. When selected, BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS add elfutils dependency at make level. [1] 92fda8761aa8024be53a8edb8c102d1ba6401bce Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Michał Kalbarczyk <michal@gamecodehq.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: RadeonSI needs llvm supportGravatar Romain Naour2018-05-011-7/+6
| | | | | | | | | | Fixes: checking for AMDGPU... yes configure: error: --enable-llvm is required when building radeonsi Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Michał Kalbarczyk <michal@gamecodehq.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpuGravatar Romain Naour2018-05-011-0/+1
| | | | | | | | | | | Fixes: checking for EXPAT... yes checking for RADEON... no configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71) Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Michał Kalbarczyk <michal@gamecodehq.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mesa3d: add Radeon SI supportGravatar Michał Kalbarczyk2018-04-281-0/+20
| | | | | Signed-off-by: Michał Kalbarczyk <fazibear@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>