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
    Displays a help message and exits, showing available command-line options.

-d display
    Specifies the EGL display connection to query, typically an X display string like :0 or a Wayland display name.

DESCRIPTION

eglinfo is a command-line utility used to query and display detailed information about the EGL (Embedded-System Graphics Library) implementation available on a system. EGL serves as an interface between Khronos rendering APIs like OpenGL ES or OpenVG, and the underlying native windowing system. This tool is invaluable for developers and system administrators to verify EGL driver installation, debug graphics-related issues, and inspect the capabilities exposed by the EGL driver and hardware. It typically lists available EGL displays, supported configurations (visuals), extensions, client APIs, and other relevant details. It helps in understanding what EGL features are supported by the graphics stack, making it a critical tool for graphics stack diagnostics.

CAVEATS

eglinfo requires a correctly installed EGL driver and a compatible graphics stack to provide meaningful output. Its availability depends on the installation of packages such as mesa-utils-egl or similar utility collections, which bundle EGL diagnostic tools. The output can be extensive, especially on systems with numerous supported EGL configurations and extensions, which might require scrolling to review entirely.

PURPOSE AND OUTPUT DETAILS

eglinfo provides critical insights into the EGL environment. The output typically includes the EGL vendor, version, client and display extensions, supported API versions, and a comprehensive list of EGL configurations. Each configuration details visual attributes such as buffer size, depth buffer bits, stencil bits, number of samples for anti-aliasing, color buffer format (e.g., RGBA), and whether it supports window, pixmap, or pbuffer rendering surfaces. This detailed output is essential for verifying application compatibility, debugging rendering issues, and understanding the full scope of graphics capabilities exposed by the system's EGL stack.

HISTORY

eglinfo is developed as part of the Mesa 3D Graphics Library, an open-source implementation of OpenGL, OpenGL ES, Vulkan, and other graphics APIs. It emerged as EGL gained prominence, particularly in embedded systems, Wayland compositions, and non-X11 environments, where EGL serves as the crucial glue layer between graphics applications and the underlying display hardware. Its development closely tracks the evolution of the EGL specification and Mesa's EGL implementation, providing a standard way to query EGL capabilities across various platforms.

SEE ALSO

Copied to clipboard