LinuxCommandLibrary

xdriinfo

Display DRI driver information

SYNOPSIS

xdriinfo [-v] [-h] [-display <display>]

PARAMETERS

-v
    Enables verbose output, showing more detailed information about the DRI configuration, including capabilities and extensions.

-h
    Displays a help message and usage instructions for the command, then exits.

-display <display>
    Specifies the X display to connect to. This is useful when working with multiple X servers or remote displays (e.g., :0, localhost:0.0).

DESCRIPTION

xdriinfo is a command-line utility used to query and display detailed information about the Direct Rendering Infrastructure (DRI) configuration of an X server.
DRI provides a direct path for applications to access graphics hardware, significantly improving performance for 3D graphics. This tool is valuable for diagnosing graphics driver issues, verifying DRI setup, and understanding the capabilities of the installed graphics hardware and its associated driver (e.g., OpenGL version, vendor, renderer, maximum texture sizes, extensions supported).
It fetches data directly from the X server's DRI extension, making it an powerful diagnostic tool for graphics-related problems and debugging the rendering pipeline.

CAVEATS

Requires a running X server with the DRI extension enabled; otherwise, it will report an error.
The exact output can vary significantly based on the specific graphics hardware, driver version, and X server configuration.
May require appropriate user permissions to access the X display or DRI resources.

<I>DRI AND GRAPHICS DRIVERS</I>

DRI (Direct Rendering Infrastructure) is a critical framework in Linux graphics that enables direct access to graphics hardware from applications, bypassing the X server for many rendering operations. This direct path is essential for achieving high performance in 3D applications.
xdriinfo plays a key role in verifying if DRI is correctly configured and revealing the specific capabilities that your graphics driver and hardware expose through this interface. It's an indispensable tool for diagnosing and understanding the health and features of your OpenGL/Vulkan setup.

HISTORY

xdriinfo is an integral part of the Mesa 3D Graphics Library utilities (often bundled in the `mesa-demos` package).
Mesa is a foundational open-source implementation of graphics APIs like OpenGL and Vulkan.
The command has evolved alongside the DRI standard and Mesa's development over many years, consistently serving its purpose of providing diagnostic insight into the underlying graphics stack and Direct Rendering Infrastructure setup.

SEE ALSO

glxinfo(1), lspci(8), xrandr(1)

Copied to clipboard