Skip to contentSkip to conversation

package/mesa3d: add support for dri r200 driver

PATCH New James Hilliard 2 participants 3 messages Feb 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: add support for dri r200 driver

Renamed r100 driver to be consistent with r200 driver.

---
 package/mesa3d/Config.in | 11 +++++++++--
 package/mesa3d/mesa3d.mk |  3 ++-
 2 files changed, 11 insertions(+), 3 deletions(-)
package/mesa3d/Config.in +9 -2
index 9965b0e972..882ae8d1d3 100644
@@ -343,13 +343,20 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
 	help
 	  Support for Nvidia-based GPUs.
 
-config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
-	bool "DRI radeon driver"
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R100
+	bool "DRI radeon r100 driver"
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER
 	select BR2_PACKAGE_LIBDRM_RADEON
 	help
 	  Legacy Radeon driver for R100 series GPUs.
 
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R200
+	bool "DRI radeon r200 driver"
+	select BR2_PACKAGE_MESA3D_DRI_DRIVER
+	select BR2_PACKAGE_LIBDRM_RADEON
+	help
+	  Legacy Radeon driver for R200 series GPUs.
+
 comment "Vulkan drivers"
 
 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
package/mesa3d/mesa3d.mk +2 -1
index 7fb07ae05c..fb178e0622 100644
@@ -93,7 +93,8 @@ MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST) += swrast
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I915)   += i915
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965)   += i965
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU) += nouveau
-MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON) += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R100)   += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R200)   += r200
 # Vulkan Drivers
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL)   += intel
 
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/mesa3d: add support for dri r200 driver

James, All,

On 2020-02-09 08:30 -0700, James Hilliard spake thusly:

Quoted 13 lines

Renamed r100 driver to be consistent with r200 driver.

---
 package/mesa3d/Config.in | 11 +++++++++--
 package/mesa3d/mesa3d.mk |  3 ++-
 2 files changed, 11 insertions(+), 3 deletions(-)
package/mesa3d/Config.in +0 -0
index 9965b0e972..882ae8d1d3 100644

package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU · line 346

Quoted 6 lines
package/mesa3d/Config.in +1 -2
@@ -343,13 +343,20 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
 	help
 	  Support for Nvidia-based GPUs.
 
-config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
-	bool "DRI radeon driver"
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R100

You forgot to handle the legacy option (in top-level Config.in.legacy).

However, I wonder how important that rename is; I believe we can keep the existing option as-is, and just adjust the prompt to make it explicit this is about r100.

Besides, a siple config doesn ot build:

    BR2_x86_64=y
    BR2_x86_steamroller=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_INIT_NONE=y
    BR2_SYSTEM_BIN_SH_NONE=y
    # BR2_PACKAGE_BUSYBOX is not set
    BR2_PACKAGE_MESA3D=y
    BR2_PACKAGE_MESA3D_DRI_DRIVER_R200=y

which fails with:

meson.build:449:4: ERROR: Problem encountered: building dri drivers require at least one windowing system or classic osmesa

Care to have a look and respin, please?

Regards,
Yann E. MORIN.

Quoted 37 lines
package/mesa3d/Config.in +8 -0
+	bool "DRI radeon r100 driver"
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER
 	select BR2_PACKAGE_LIBDRM_RADEON
 	help
 	  Legacy Radeon driver for R100 series GPUs.
 
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R200
+	bool "DRI radeon r200 driver"
+	select BR2_PACKAGE_MESA3D_DRI_DRIVER
+	select BR2_PACKAGE_LIBDRM_RADEON
+	help
+	  Legacy Radeon driver for R200 series GPUs.
+
 comment "Vulkan drivers"
 
 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
package/mesa3d/mesa3d.mk +2 -1
index 7fb07ae05c..fb178e0622 100644
@@ -93,7 +93,8 @@ MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST) += swrast
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I915)   += i915
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965)   += i965
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU) += nouveau
-MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON) += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R100)   += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R200)   += r200
 # Vulkan Drivers
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL)   += intel
 
Signature · 6 lines
2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/mesa3d: add support for dri r200 driver

In reply to James Hilliard

James, All,

On 2020-02-09 08:30 -0700, James Hilliard spake thusly:

Quoted 19 lines

Renamed r100 driver to be consistent with r200 driver.

---
 package/mesa3d/Config.in | 11 +++++++++--
 package/mesa3d/mesa3d.mk |  3 ++-
 2 files changed, 11 insertions(+), 3 deletions(-)
package/mesa3d/Config.in +1 -2
index 9965b0e972..882ae8d1d3 100644
@@ -343,13 +343,20 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
 	help
 	  Support for Nvidia-based GPUs.
 
-config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
-	bool "DRI radeon driver"
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R100

package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU · line 356

Quoted 10 lines
package/mesa3d/Config.in +5 -0
+	bool "DRI radeon r100 driver"
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER
 	select BR2_PACKAGE_LIBDRM_RADEON
 	help
 	  Legacy Radeon driver for R100 series GPUs.
 
+config BR2_PACKAGE_MESA3D_DRI_DRIVER_R200
+	bool "DRI radeon r200 driver"
+	select BR2_PACKAGE_MESA3D_DRI_DRIVER
+	select BR2_PACKAGE_LIBDRM_RADEON

You forgot to propagate the dependency of BR2_PACKAGE_LIBDRM_RADEON, which depends on BR2_PACKAGE_LIBDRM_HAS_ATOMIC.

Note that r100 has the same issue, too, so maybe fix it too (as a separate preliminary patch).

Regards,
Yann E. MORIN.

Quoted 27 lines
package/mesa3d/Config.in +3 -0
+	help
+	  Legacy Radeon driver for R200 series GPUs.
+
 comment "Vulkan drivers"
 
 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
package/mesa3d/mesa3d.mk +2 -1
index 7fb07ae05c..fb178e0622 100644
@@ -93,7 +93,8 @@ MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST) += swrast
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I915)   += i915
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965)   += i965
 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU) += nouveau
-MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON) += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R100)   += r100
+MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_R200)   += r200
 # Vulkan Drivers
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL)   += intel
 
Signature · 6 lines
2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'