Last edited 2 months ago

How to launch glmark2 benchmark

Applicable for STM32MP15x lines, STM32MP23x lines, STM32MP25x lines

1. Introduction[edit | edit source]

glmark2 is an OpenGL 2.0 and ES 2.0 benchmark, developed by Alexandros Frantzis and Jesse Barker. It is based on the original glmark benchmark by Ben Smith. extracted from The glmark2 official web site [1]

2. Using glmark2[edit | edit source]

Building glmark2 generates 2 binaries:

  • glmark2-es2-wayland, to launch glmark2 benchmark as a wayland client.
  • glmark2-es2-drm, to launch glmark2 benchmark as a native DRM/GBM openGLES application.

2.1. glmark2-es2-wayland[edit | edit source]

  • Start Weston (if not already started)[2]
systemctl start weston-graphical-session
  • Launch glmark2
glmark2-es2-wayland


2.2. glmark2-es2-drm[edit | edit source]

systemctl stop weston-graphical-session
  • The DRM display mode may need to be set and the DRM master token released so that glmark2 can use the DRM interfaces. This depends on the glmark2 version. For instance:
modetest -s 27:720x1280 -d &

Note: The connector and the mode are given as an example.

  • Launch glmark2
glmark2-es2-drm

3. Source code location[edit | edit source]

4. To go further[edit | edit source]

You can find the full documentation of glmark2 in the related [3].

5. References[edit | edit source]