package/mesa3d: Refactor XA support to prepare support for ATI drivers
PATCH v2 1/2 package/mesa3d: Refactor XA support to prepare support for ATI drivers
--
v2: - rebased patch by micro1183: http://patchwork.ozlabs.org/patch/398857/
--- package/mesa3d/Config.in | 5 +++++ package/mesa3d/mesa3d.mk | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
package/mesa3d/Config.in +5 -0
@@ -43,6 +43,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_NOUVEAU + select BR2_PACKAGE_MESA3D_NEEDS_XA help Supports all Nvidia GPUs.
@@ -51,6 +52,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_VMWGFX + select BR2_PACKAGE_MESA3D_NEEDS_XA help This is a virtual GPU driver for VMWare virtual machines.
@@ -61,6 +63,9 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST This is a software opengl implementation using the Gallium3D infrastructure. +config BR2_PACKAGE_MESA3D_NEEDS_XA + bool + comment "DRI drivers needs X.Org and a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS || !BR2_PACKAGE_XORG7
package/mesa3d/mesa3d.mk +1 -1
@@ -36,7 +36,7 @@ MESA3D_DEPENDENCIES += \ libxcb MESA3D_CONF_OPTS += --enable-glx # quote from mesa3d configure "Building xa requires at least one non swrast gallium driver." -ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA),) +ifneq ($(BR2_PACKAGE_MESA3D_NEEDS_XA),) MESA3D_CONF_OPTS += --enable-xa else MESA3D_CONF_OPTS += --disable-xa
Signature · 1 line
1.7.10.4
PATCH v2 2/2 package/mesa3d: Enable support for Radeon r600 gallium driver
--
v2: - rebased patch from micro1183: http://patchwork.ozlabs.org/patch/398858/
- removed support for r300 & radeonsi because they need llvm support which is not provided by buildroot
--- package/mesa3d/Config.in | 9 +++++++++ package/mesa3d/mesa3d.mk | 1 + 2 files changed, 10 insertions(+)
package/mesa3d/Config.in +9 -0
@@ -47,6 +47,15 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU help Supports all Nvidia GPUs. +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 + bool "Gallium Radeon R600 driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_RADEON + select BR2_PACKAGE_MESA3D_NEEDS_XA + help + Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs. + config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA bool "Gallium vmware svga driver" depends on BR2_i386 || BR2_x86_64
package/mesa3d/mesa3d.mk +1 -0
@@ -56,6 +56,7 @@ endif #Gallium Drivers MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU) += nouveau +MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST) += swrast # DRI Drivers
Signature · 1 line
1.7.10.4
PATCH v2 2/2 package/mesa3d: Enable support for Radeon r600 gallium driver
Dear Bernd Kuhls,
Quoted 4 lines · Bernd Kuhls
--
v2: - rebased patch from micro1183: http://patchwork.ozlabs.org/patch/398858/
- removed support for r300 & radeonsi because they need llvm support which is not provided by buildroot
This should be not part of the commit log. And this time around, I noticed after applying/pushing :-/
Applied anyway, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/2 package/mesa3d: Refactor XA support to prepare support for ATI drivers
In reply to Bernd KuhlsDear Bernd Kuhls,
Quoted 2 lines · Bernd Kuhls
--
v2: - rebased patch by micro1183: http://patchwork.ozlabs.org/patch/398857/
This shouldn't be part of the commit log, but should be...
Quoted 3 lines
Signed-off-by Bernd Kuhls <[email protected]>---
... here, i.e below the "---" sign.
Quoted 21 lines
package/mesa3d/Config.in +2
-0@@ -43,6 +43,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_NOUVEAU + select BR2_PACKAGE_MESA3D_NEEDS_XA help Supports all Nvidia GPUs.@@ -51,6 +52,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_VMWGFX + select BR2_PACKAGE_MESA3D_NEEDS_XA help This is a virtual GPU driver for VMWare virtual machines.
package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST · line 67
Quoted 5 lines
package/mesa3d/Config.in +2
-0@@ -61,6 +63,9 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST This is a software opengl implementation using the Gallium3D infrastructure. +config BR2_PACKAGE_MESA3D_NEEDS_XA + bool
I've moved this new blind option next to the other existing blind options in the package.
package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST · line 70
Quoted 4 lines
package/mesa3d/Config.in +1
-1MESA3D_CONF_OPTS += --enable-glx # quote from mesa3d configure "Building xa requires at least one non swrast gallium driver." -ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA),) +ifneq ($(BR2_PACKAGE_MESA3D_NEEDS_XA),)
We could now use positive logic here. I'll switch to that in a follow-up commit.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com