Skip to the content.

Wayland-drm pixel formats

This page describes the formats used by the private wl_drm extension, implemented by Mesa. This extension has been superseded by the linux-dmabuf extension, which provides a generic buffer-exchange protocol using the DRM pixel format descriptors.

The wayland-drm pixel formats follow the scheme:

WL_DRM_FORMAT_{component-format}

The component-format part specifies the order and sizes of the components. All the components are listed first, optionally followed by their corresponding sizes in bits (e.g., RGB888, YUVY).

The wayland-drm formats are a subset of the drm fourcc formats.

There are a few categories of wayland-drm formats: