LinuxCommandLibrary

eglinfo

Display EGL configuration information

TLDR

Display full platform information

$ eglinfo
copy

Display a brief version of platform information
$ eglinfo -B
copy

Display help
$ eglinfo -h
copy

SYNOPSIS

eglinfo [options]

PARAMETERS

-h, --help
    Print usage information and exit

--display <display>
    Specify X display name (default: $DISPLAY)

-v, --verbose
    Enable verbose output

DESCRIPTION

eglinfo is a command-line tool from the Mesa 3D graphics library that queries and prints detailed information about the EGL (Embedded Graphics Library) implementation provided by the system's graphics driver. It connects to the display server, enumerates EGL displays, devices, configurations, contexts, and surfaces, and lists supported versions, extensions, and vendor details.

This utility is invaluable for OpenGL ES developers to verify EGL support, inspect available configurations (e.g., RGB buffer sizes, depth/stencil bits, multisampling), debug rendering pipelines, and benchmark driver capabilities across hardware like Intel, AMD, or NVIDIA GPUs. Output includes client and display extensions, making it easy to check for features like EGL_KHR_create_context or surface types (window, pbuffer, pixmap).

Typically run on X11 or Wayland sessions, it helps diagnose issues in embedded or desktop graphics applications without needing a full graphical test program.

CAVEATS

Requires a running display server (X11 or Wayland) with EGL-enabled driver; fails on headless systems. Output can be voluminous in verbose mode.

TYPICAL OUTPUT

Sections include EGL version, client APIs/extensions, display extensions, configurations (EGLConfig attributes), and vendor strings.

HISTORY

Introduced in Mesa 3D demos around 2007-2008 alongside EGL support; maintained in mesa-demos package for driver testing and development.

SEE ALSO

glxinfo(1), es2_info(1), glxgears(1)

Copied to clipboard