Arm Community
Arm Community
  • Site
  • User
  • Site
  • Search
  • User
Arm Community blogs
Arm Community blogs
Mobile, Graphics, and Gaming blog Patched glmark2 usable with Mali Midgard DRM drivers r12p0.
  • Blogs
  • Mentions
  • Sub-Groups
  • Tags
  • Jump...
  • Cancel
More blogs in Arm Community blogs
  • AI blog

  • Announcements

  • Architectures and Processors blog

  • Automotive blog

  • Embedded and Microcontrollers blog

  • Internet of Things (IoT) blog

  • Laptops and Desktops blog

  • Mobile, Graphics, and Gaming blog

  • Operating Systems blog

  • Servers and Cloud Computing blog

  • SoC Design and Simulation blog

  • Tools, Software and IDEs blog

Tags
Actions
  • RSS
  • More
  • Cancel
Related blog posts
Related forum threads

Patched glmark2 usable with Mali Midgard DRM drivers r12p0.

Myy
Myy
January 12, 2017
1 minute read time.

I would like to share a glmark2 git tree with a personal patch that helps running the benchmarks in DRM mode, with the Mali Midgard Wayland/DRM OpenGL drivers r12p0. Meaning running the benchmark directly, from the console. This expects that your current kernel has a usable 2D DRM driver integrated.

Note that this patched version is not necessary when running the benchmarks from X11 or wayland, but only when running them through the main console (framebuffer or not).

The git tree in question is available here:

https://github.com/Miouyouyou/glmark2

The patch in question makes glmark2:

  • use eglGetPlatformDisplayEXT instead of eglGetDisplay when possible. Without that using the benchmarks with Mali drivers will fail;
  • use the DRM interface directly instead of probing each potentially available DRM driver. Without that, running the benchmarks on some ARM platforms fail, even when a usable DRM driver is present.

Note that there are still issues with selecting the right EGL configuration when trying to run the benchmarks with Mali drivers. If the benchmark refuses to run with a eglCreateWindowSurface returning EGL_BAD_MATCH (0x3009) error, try to run the benchmarks with the following parameters:

glmark2-es-drm --visual-config stencil=1:alpha=0

Note that you can just unpack the Mali Midgard Wayland/DRM drivers in some folder and run the benchmarks like this:

alias mali_drm=LD_LIBRARY_PATH=/path/to/mali/drivers/wayland
mali_drm glmark2-es-drm

This is useful if you're currently using Mali Midgard x11 drivers and do not want to replace your entire installation to run a few benchmarks.

These patches successfully with Mali Midgard Wayland/DRM r12p0 drivers for Firefly systems, on a RK3288 ARMv7 MiQi board.

Anonymous
Mobile, Graphics, and Gaming blog
  • Unlock the power of SVE and SME with SIMD Loops

    Vidya Praveen
    Vidya Praveen
    SIMD Loops is an open-source project designed to help developers learn SVE and SME through hands-on experimentation. It offers a clear, practical pathway to mastering Arm’s most advanced SIMD technologies…
    • September 19, 2025
  • What is Arm Performance Studio?

    Jai Schrem
    Jai Schrem
    Arm Performance Studio gives developers free tools to analyze performance, debug graphics, and optimize apps on Arm platforms.
    • August 27, 2025
  • How Neural Super Sampling works: Architecture, training, and inference

    Liam O'Neil
    Liam O'Neil
    A deep dive into a practical, ML-powered approach to temporal super sampling.
    • August 12, 2025