]> code.ossystems Code Review - meta-freescale.git/commitdiff
libimxdmabuffer: Fix allocator packageconfigs for mx8qm and mx8qxp SoCs
authorCarlos Rafael Giani <crg7475@mailbox.org>
Sun, 18 Oct 2020 11:48:29 +0000 (13:48 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 18 Oct 2020 16:29:52 +0000 (13:29 -0300)
The i.MX8 QuadMax and QuadXPlus SoCs can use the ION allocator.

Also, if there is a DPU, then G2D will be emulated via the DPU. However,
the emulation's allocation functions are broken, so disable the G2D
allocator then.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb

index 9b918f2cd210dacd7676b387e9c02db36298029d..726b1e16d84e885612c6a889e8227f39305dd4cf 100644 (file)
@@ -22,11 +22,19 @@ EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \
                 --libdir=${libdir} \
                 ${PACKAGECONFIG_CONFARGS}"
 
+# If imxdpu is in use, the DPU is also used for implementing
+# libg2d. However, that implementation's g2d_alloc() function
+# is broken, so we cannot use it.
+LIBG2D_PACKAGECONFIG = "g2d"
+LIBG2D_PACKAGECONFIG_imxdpu = ""
+
 PACKAGECONFIG ?= " "
-PACKAGECONFIG_append_imxgpu2d = " g2d"
+PACKAGECONFIG_append_imxgpu2d = " ${LIBG2D_PACKAGECONFIG}"
 PACKAGECONFIG_append_imxipu   = " ipu"
 PACKAGECONFIG_append_imxpxp   = " pxp"
-PACKAGECONFIG_append_mx8m     = " dwl ion"
+PACKAGECONFIG_append_mx8m     = " ion dwl"
+PACKAGECONFIG_append_mx8qm    = " ion"
+PACKAGECONFIG_append_mx8qxp   = " ion"
 
 HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2"