DRM database property: GAMMA_LUT_SIZE

Back to index

Details

Name
GAMMA_LUT_SIZE
Flags
immutable
Type
range
Attached to
CRTC
Specification
[0, UINT32_MAX]

Documentation

Unsigned range property to give the size of the lookup table to be set
on the GAMMA_LUT property (the size depends on the underlying hardware).
If drivers support multiple LUT sizes then they should publish the
largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
modes) appropriately.

There is also support for a legacy gamma table, which is set up by calling
drm_mode_crtc_set_gamma_size(). Drivers which support both should use
drm_atomic_helper_legacy_gamma_set() to alias the legacy gamma ramp with the
"GAMMA_LUT" property above.

Support for different non RGB color encodings is controlled through
&drm_plane specific COLOR_ENCODING and COLOR_RANGE properties. They
are set up by calling drm_plane_create_color_properties().

"COLOR_ENCODING"
Optional plane enum property to support different non RGB
color encodings. The driver can provide a subset of standard
enum values supported by the DRM plane.

"COLOR_RANGE"
Optional plane enum property to support different non RGB
color parameter ranges. The driver can provide a subset of
standard enum values supported by the DRM plane.

Driver support

amdgpu
ast
evdi
exynos
gma500
i915
imx-drm
kirin
meson
msm
mxsfb-drm
nouveau
omapdrm
qxl
radeon
rockchip
sun4i-drm
vc4
virtio_gpu
vkms
vmwgfx