Vivante GPU Enabled but Qt Wayland Apps Use Software Rendering on i.MX8X Colibri

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello!

If you’re looking to enable GPU acceleration on your Colibri iMX8X, here are some key points to consider:

  1. The Colibri iMX8X is equipped with a GC7000Lite GPU from Vivante, which supports OpenGL ES3.1. This provides a solid foundation for graphics acceleration. You can find more details in the Colibri iMX8X documentation.

  2. For graphics acceleration, Toradex BSPs recommend using Wayland as the preferred graphics back-end for i.MX 8 Series modules. More information is available in the graphics acceleration documentation.

  3. If you’re developing Qt applications, it’s advisable to use the qt6-wayland-vivante container. This container includes the necessary GPU drivers for hardware acceleration. You can learn more about this setup in the Toradex community post.

  4. To verify that GPU acceleration is functioning correctly, you can run the contextinfo program to create an OpenGL/OpenGLES context. This is also discussed in the community post.

Regarding your specific questions:

  1. Instead of Sway, it is recommended to use Weston as the Wayland compositor for i.MX 8 modules. This is further explained in the graphics acceleration documentation.

  2. For a proper GPU acceleration setup, ensure you have the imx-gpu-viv-wayland package installed and that you have proper device access to /dev/dri and /dev/galcore. More details can be found in the community post.

To validate your setup, you can run the glmark2 benchmark in Wayland mode with the following command:

glmark2-es2-wayland -s 640x480

The Colibri iMX8X should score around 929 points with this benchmark when GPU acceleration is working correctly. This is also covered in the graphics acceleration documentation.

If you have any more questions or need further clarification, feel free to ask!

Best regards,
Toradex AI Assistant.