package/mesa3d: add support for gallium r300 driver
authorJames Hilliard <james.hilliard1@gmail.com>
Sun, 9 Feb 2020 15:12:02 +0000 (08:12 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 9 Feb 2020 16:28:48 +0000 (17:28 +0100)
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/Config.in
package/mesa3d/mesa3d.mk

index 9965b0e9727e93485eba2f9d0c514b7e92bea878..ff396525088e5eb951d8e34359bf97cd4ae2b9e8 100644 (file)
@@ -166,6 +166,15 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST
        help
          Mesa driver for ARM Mali Midgard and Bifrost GPUs.
 
+config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300
+       bool "Gallium Radeon R300 driver"
+       depends on BR2_i386 || BR2_x86_64
+       depends on BR2_PACKAGE_LIBDRM_HAS_ATOMIC # libdrm's radeon
+       select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+       select BR2_PACKAGE_LIBDRM_RADEON
+       help
+         Driver for ATI/AMD Radeon R300/R400/R500 GPUs.
+
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
        bool "Gallium Radeon R600 driver"
        depends on BR2_i386 || BR2_x86_64
@@ -275,17 +284,19 @@ config BR2_PACKAGE_MESA3D_VDPAU
        bool "Gallium VDPAU state tracker"
        depends on BR2_PACKAGE_XORG7
        depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU \
+               || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300 \
                || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 \
                || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
        select BR2_PACKAGE_MESA3D_NEEDS_X11
        select BR2_PACKAGE_LIBVDPAU
        help
-         VDPAU state tracker (needs r600, radeonsi or nouveau gallium
-         drivers).
+         VDPAU state tracker (needs r300, r600, radeonsi or nouveau
+         gallium drivers).
 
-comment "Gallium VDPAU state tracker needs X.org and gallium drivers r600, radeonsi or nouveau"
+comment "Gallium VDPAU state tracker needs X.org and gallium drivers r300, r600, radeonsi or nouveau"
        depends on !BR2_PACKAGE_XORG7 || \
                !(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU \
+               || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300 \
                || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 \
                || BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI)
 
index 7fb07ae05c36dfe1966438c44250272e5a2f45e8..c14716bf15bd6f588d3f5dda50aa0d9f2d4efdde 100644 (file)
@@ -80,6 +80,7 @@ MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO)    += kmsro
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA)     += lima
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)  += nouveau
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST) += panfrost
+MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300)     += r300
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)     += r600
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)     += svga