]> code.ossystems Code Review - meta-freescale.git/commitdiff
Move mesa/etnaviv to xf86-video-modesetting
authorAndreas Müller <schnitzeltony@gmail.com>
Tue, 23 Mar 2021 00:33:23 +0000 (01:33 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 20 Apr 2021 15:10:12 +0000 (12:10 -0300)
* armada sources are gone finally
* glmark2-es2 performance is almost doubled 87 -> 162

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
conf/machine/include/imx-base.inc
recipes-graphics/mesa/mesa_%.bbappend
recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf

index 16d48da955e41f78f63e978ef710f358ea8b9cab..a1ab6cc3895b11a6480eaed16908f4d2d2b79fe0 100644 (file)
@@ -101,7 +101,11 @@ XSERVER_DRIVER                  = "xf86-video-fbdev"
 XSERVER_DRIVER_imxgpu2d         = "xf86-video-imx-vivante"
 XSERVER_DRIVER_vf               = "xf86-video-modesetting"
 XSERVER_DRIVER_append_mx8       = " xf86-video-modesetting"
-XSERVER_DRIVER_use-mainline-bsp = "xf86-video-armada"
+XSERVER_DRIVER_use-mainline-bsp = " \
+    xf86-video-fbdev \
+    xf86-video-modesetting \
+    xserver-xorg-extension-glx \
+"
 XSERVER = "xserver-xorg \
            xf86-input-evdev \
            ${XSERVER_DRIVER}"
index 76f1bc28794bc4428f87f3f97babaf3b03a46ac6..738f02c88099d81649a59efcd993626662607673 100644 (file)
@@ -20,6 +20,9 @@ PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno"
 # For NXP BSP, GPU drivers don't support dri
 PACKAGECONFIG_remove_imxgpu_use-nxp-bsp = "dri"
 
+# mainline/etnaviv:
+RRECOMMENDS_${PN}-megadriver_append_use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env"
+
 BACKEND = \
     "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
         bb.utils.contains('DISTRO_FEATURES',     'x11',     'x11', \
index b6f83469c2e784f3906c8ce039ed6ab08aebc029..c58ae207e7ffed312a7fd4c71911dfae230b161f 100644 (file)
@@ -1,28 +1,11 @@
 Section "Device"
-       Identifier      "Driver0"
-       Screen          0
-       Driver          "armada"
-
-# Support hotplugging displays?
-       Option          "Hotplug"       "TRUE"
-
-# Support hardware cursor if available?
-       Option          "HWCursor"      "TRUE"
-
-# Use GPU acceleration?
-       Option          "UseGPU"        "TRUE"
-
-# Provide Xv interfaces?
-       Option          "XvAccel"       "TRUE"
-
-# Prefer overlay for Xv (TRUE for armada-drm, FALSE for imx-drm)
-       Option          "XvPreferOverlay" "TRUE"
-
-# Which accelerator module to load (automatically found if commented out)
-       Option          "AccelModule"   "etnadrm_gpu"
-       Option          "AccelModule"   "etnaviv_gpu"
+    Identifier "etnaviv"
+    Driver     "modesetting"
+    Option     "kmsdev"      "/dev/dri/card0"
+    Option     "AccelMethod" "glamor"
+EndSection
 
-# Support DRI2 interfaces?
-       Option          "DRI"           "TRUE"
+Section "ServerFlags"
+    Option     "AutoAddGPU"  "false"
 EndSection