Patched glmark2 usable with Mali Midgard DRM drivers r12p0.
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 cur...
By Myy
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.
By Myy
Re-use is only permitted for informational and non-commercial or personal use only.
