Skip to contentSkip to conversation

questions about xdriver_xf86-video-imx-viv

Buildroot Thierry Bultel 2 participants 3 messages Dec 9, 2014 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Jerome,

I was also currently attempting to bring the work from yocto to buildroot. I do not have a working board, yet, since we are migrating our BSP from 3.0.35 to 3.10.17. Thus I am only preparing the integration, but cannot test at the moment.

There is something I do not understand.
With the previous version of xdriver_xf86-video-imx-viv , the build in the DRI directory was producing a libdri.so, which was loaded by xserver.

For what I see, only $(@D)/EXA/src is built now.

libdri.so is not needed anymore ?

Also, when you say: " This driver should
+ also be able to provide Desktop OpenGL implementation but, this
+ feature seems broken for a while."

does that mean that windowed 3D does not work, but that only full screen does ?

Best regards
Thierry

Quoted 125 lines

Today's Topics:

1. [PATCH v4 06/14] gpu-viv-bin-mx6q: change output selection
mechanism (J?r?me Pouiller)
2. [PATCH v4 12/14] nitrogen6x_defconfig: bump kernel to 3.10.17_1.0.1_ga (J?r?me Pouiller)
3. [PATCH v4 11/14] Vivante drivers: bump to version 3.10.17-1.0.1 (J?r?me Pouiller)
4. [PATCH v4 13/14] freescale_imx6*_defconfig: bump kernel to
3.10.17_1.0.1_ga (J?r?me Pouiller)
5. [PATCH v4 07/14] xdriver_xf86-video-imx-viv: new package (J?r?me Pouiller)
6. [PATCH v4 10/14] qt5base: fix Vivante x11/EGL configuration
(J?r?me Pouiller)
7. [PATCH v4 14/14] qmx6_defconfig: update (J?r?me Pouiller)
8. [PATCH] live555: fix test programs target installation (Baruch Siach)
9. Re: [PATCH] live555: fix test programs target installation
(Thomas Petazzoni)
10. [PATCH 1/2] dialog: bump to version 1.2-20140911 (Gustavo Zacarias)
11. [PATCH 2/2] sysstat: bump to version 11.0.2 (Gustavo Zacarias)
12. [PATCH] linux-headers: bump 3.4.x series (Gustavo Zacarias)
13. Crypto algorithms in buildroot (Ja Bi)
14. Re: [PATCH] exiv2: XMP support needs largefile (Nicolas Serafini)
15. Re: [PATCHv2 1/4] toolchain-external: split target installation from staging installation (J?r?me Pouiller)
16. Re: [PATCHv2 2/4] pkg-generic: add step_pkg_size global instrumentation hook (J?r?me Pouiller)
17. Re: [PATCHv2 3/4] support/scripts: add size-stats script (J?r?me Pouiller)
18. [PATCH] tcpdump: add security fix patch (Baruch Siach)
19. Re: Crypto algorithms in buildroot (Gustavo Zacarias)
20. Re: [PATCH] live555: fix shared library build on x86 (Peter Korsgaard)
21. Re: [PATCH] live555: fix test programs target installation
(Peter Korsgaard)

----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Dec 2014 10:59:04 +0100
From: J?r?me Pouiller <[email protected]>
To: buildroot at busybox.net
Cc: J?r?me Pouiller <[email protected]>
Subject: [Buildroot] [PATCH v4 06/14] gpu-viv-bin-mx6q: change output
selection mechanism
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

- Move output selection to Config.in. It easier to add new backends selection (wayland, directfb, ...).
- Remove useless build time dependencies xlib_libXdamage and xlib_libXext (gpu-viv-bin-mx6q is provided as binary package)
- Also create libraries symbolic links with version numbers.

---
  package/freescale-imx/gpu-viv-bin-mx6q/Config.in    |  5 +++++
  .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk            | 21 +++++++++------------
  2 files changed, 14 insertions(+), 12 deletions(-)
package/freescale-imx/gpu-viv-bin-mx6q/Config.in +5 -0
index 904b011..489e68e 100644
@@ -45,6 +45,11 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_FB
 
  endchoice
 
+config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT
+	string
+	default "x11" if BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_X11
+	default "fb" if BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_FB
+
  config BR2_PACKAGE_PROVIDES_LIBEGL
  	default "gpu-viv-bin-mx6q"
 
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk +9 -12
index 7895023..501b124 100644
@@ -19,14 +19,7 @@ GPU_VIV_BIN_MX6Q_LICENSE_FILES = EULA
  GPU_VIV_BIN_MX6Q_REDISTRIBUTE = NO
 
  GPU_VIV_BIN_MX6Q_PROVIDES = libegl libgles libopenvg
-
-# DirectFB is not supported (wrong version)
-ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_X11),y)
-GPU_VIV_BIN_MX6Q_DEPENDENCIES = xlib_libXdamage xlib_libXext
-GPU_VIV_BIN_MX6Q_LIB_TARGET = x11
-else
-GPU_VIV_BIN_MX6Q_LIB_TARGET = fb
-endif
+GPU_VIV_BIN_MX6Q_LIB_TARGET = $(call qstrip,$(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT))
 
  define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
  	$(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE))
@@ -37,13 +30,17 @@ endef
  # Make sure these commands are idempotent.
  define GPU_VIV_BIN_MX6Q_BUILD_CMDS
  	$(SED) 's/defined(LINUX)/defined(__linux__)/g' $(@D)/usr/include/*/*.h
-	for lib in EGL GAL VIVANTE GLESv2; do \
-		ln -sf lib$${lib}-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so \
-			$(@D)/usr/lib/lib$${lib}.so; \
-	done
  	ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so
  	ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so.1
  	ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so.1.2.0
+	ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so
+	ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so.1
+	ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so.1.0
+	ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so
+	ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so.2
+	ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so.2.0.0
+	ln -sf libVIVANTE-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libVIVANTE.so
+	ln -sf libGAL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGAL.so
  endef
 
  define GPU_VIV_BIN_MX6Q_INSTALL_STAGING_CMDS
#2 lore raw
Quoted 7 lines · On Tuesday 09 December 2014 11:02:13 Thierry Bultel wrote:

Jerome,

I was also currently attempting to bring the work from yocto to buildroot. I do not have a working board, yet, since we are migrating our BSP from 3.0.35 to 3.10.17. Thus I am only preparing the integration, but cannot test at the moment.

Quoted 8 lines

There is something I do not understand.
With the previous version of xdriver_xf86-video-imx-viv , the build in the DRI directory was producing a libdri.so, which was loaded by xserver.

For what I see, only $(@D)/EXA/src is built now.

libdri.so is not needed anymore ?

DRI directory provided by Vivante is used to provide OpenGL API. At the beginning I tried to make it works.

Finally, comparing with Yocto, I found Yocto did not compile nor use DRI provided by Vivante[1].

I remember I finally saw somewhere[2] OpenGL support was broken. It convinces me to not work any more on this topic.

Quoted 6 lines

Also, when you say: " This driver should

(quoted diff) +2 -0
+	  also be able to provide Desktop OpenGL implementation but, this
+	  feature seems broken for a while."

does that mean that windowed 3D does not work, but that only full screen does ?

Windowed 3D works if you use OpenGLES API. You can also use software rendering (swrast) provided by mesa3d (this is solution provided by Yocto), but I don't think we can consider this is a solution.

[1] See meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.1.bb

[2] maybe there:
http://permalink.gmane.org/gmane.linux.embedded.yocto.meta-freescale/8260

Signature · 3 lines
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
#3 lore raw

Le 09/12/2014 14:28, J?r?me Pouiller a ?crit :

Quoted 25 lines · On Tuesday 09 December 2014 11:02:13 Thierry Bultel wrote:
Quoted 7 lines

Jerome,

I was also currently attempting to bring the work from yocto to buildroot. I do not have a working board, yet, since we are migrating our BSP from 3.0.35 to 3.10.17. Thus I am only preparing the integration, but cannot test at the moment.

Quoted 8 lines

There is something I do not understand.
With the previous version of xdriver_xf86-video-imx-viv , the build in the DRI directory was producing a libdri.so, which was loaded by xserver.

For what I see, only $(@D)/EXA/src is built now.

libdri.so is not needed anymore ?

DRI directory provided by Vivante is used to provide OpenGL API. At the beginning I tried to make it works.

Finally, comparing with Yocto, I found Yocto did not compile nor use DRI provided by Vivante[1].

I remember I finally saw somewhere[2] OpenGL support was broken. It convinces me to not work any more on this topic.

Quoted 7 lines
Quoted 6 lines

Also, when you say: " This driver should

(quoted diff) +2 -0
+	  also be able to provide Desktop OpenGL implementation but, this
+	  feature seems broken for a while."

does that mean that windowed 3D does not work, but that only full screen does ?

Thanks, we use OpenGLES so that should make it. I looking forward to seeing your patches accepted.

Regards
Thierry

Quoted 11 lines

Windowed 3D works if you use OpenGLES API. You can also use software rendering (swrast) provided by mesa3d (this is solution provided by Yocto), but I don't think we can consider this is a solution.

[1] See meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.1.bb

[2] maybe there:
http://permalink.gmane.org/gmane.linux.embedded.yocto.meta-freescale/8260