We're hiring!
*

Taming the Panthor: OpenGL ES 3.1 conformance achieved on Mali-G610

Eric Smith avatar

Eric Smith
July 15, 2024

Share this post:

Reading time:

The Panthor kernel driver and Mesa Panfrost driver combination has passed an important milestone. It is now officially conformant for OpenGL ES 3.1 on Mali-G610 (a chip in the 10th generation of Mali, aka "v10" or "Valhall"). This required passing tens of thousands of conformance test cases. Passing these tests gives hardware implementers and software adopters assurance that the driver is basically sound. This doesn't mean that Panthor and Panfrost are bug-free, of course. Software being software, there are always bugs! It does mean that it's unlikely that there are major issues remaining. Users can be confident that programs using OpenGL ES 3.1 will "just work" on the tested version of Mesa (24.1.1).

This milestone is naturally just another marker on a long journey. Panfrost had already achieved conformance on the Mali G52, as described by Alyssa Rosenzweig. Various other Mesa projects have passed conformance tests too (for example, Zink and NVK).

The conformance tests ran on a Rock5b board under Linux 6.10.0-rc1. This version of Linux contains the new Panthor kernel driver for Mali v10 (see Boris's post for more information about this driver). The RK3588 SoC used in the Rock5b is a popular chip for Arm-based single board computers. Having support for it upstream in both Mesa and the kernel means that Linux distributions can now easily support graphics acceleration on these devices.

In order to pass the conformance test suite, we had to track down a number of bugs. A few of these were straightforward. For example, we fixed a rare display synchronization problem by running under Wayland directly rather than going through the Xwayland layer. Most were subtle because Panfrost had already been fairly well exercised by the continuous integration tests that Mesa runs with every check-in. The bugs that the conformance test suite revealed were mostly race conditions within the driver (typically CPU/GPU synchronization problems), or rare combinations of formats and operations that hadn't previously been tested thoroughly. Some of the bug fixes were specific to Valhall GPUs. Some apply to earlier Mali GPUs as well. A few fixes required improvements to the Mesa infrastructure as a whole and hence will benefit other drivers.

Achieving conformance was the work of many developers both at Collabora and elsewhere. Boris Brezillon of Collabora took the lead in developing the Panthor kernel module, with able assistance from Steven Price and Liviu Dudau from Arm. Alyssa Rosenzweig initiated the Panfrost project. She and Boris worked on the initial version of the Mesa support for v10, and she continues to make valuable contributions even though her focus is now on other projects. Bug fixes and improvements were contributed by Boris, Erik Faye-Lund, Robert Mader, Antonino Maniscalco, Louis-Francis Ratté-Boulianne, Constantine Shablia, Eric Smith, and others. Mary Guillemard contributed important infrastructure support for Panthor, and Faith Ekstrand and Daniel Stone provided invaluable advice to the team. And of course none of this would have been possible without the open source Mesa project and the many, many individuals who have contributed to it over the years.

Looking to the future, we are working on improving Panfrost and Panthor support for all generations of Mali devices. And while the OpenGL ES implementation has passed conformance tests, there is still room for new features and improvements. Some of the things we have planned include:

  • support for performance counters to assist programmers in optimizing their graphics code
  • support for device coredump, to assist in debugging firmware and driver issues
  • support for the new Arm AFRC compression format for frame buffers 
  • improving memory management to allow better behavior in low memory situations
  • general performance improvements
  • and of course Vulkan support (although this may take a while!)

The future is looking bright for Linux graphics on Arm-based GPUs!

 

Comments (1)

  1. Eli:
    Jul 19, 2024 at 12:36 PM

    Thank you :)
    We all waiting for Vulkan

    Reply to this comment

    Reply to this comment


Add a Comment






Allowed tags: <b><i><br>Add a new comment:


 

Search the newsroom

Latest News & Events

Testing in the Cloud: Enabling Fedora's openQA for flexible cloud deployment

24/07/2024

OpenQA is a tool for functional, end-to-end testing of operating system distributions. Earlier this year, Collabora undertook a project,…

Kernel 6.10: Keep the updates coming

18/07/2024

The latest kernel 6.10 release brings multiple core changes and updates to BH workqueues. Let's examine the developments implemented by…

Taming the Panthor: OpenGL ES 3.1 conformance achieved on Mali-G610

15/07/2024

The Panthor kernel driver and Mesa Panfrost driver combination has achieved official conformance for OpenGL ES 3.1 on the Mali-G610 chip,…

Open Since 2005 logo

Our website only uses a strictly necessary session cookie provided by our CMS system. To find out more please follow this link.

Collabora Limited © 2005-2024. All rights reserved. Privacy Notice. Sitemap.