[PATCH 18/18] drm/sysfb: vesadrm: Add gamma correction
Javier Martinez Canillas
javierm at redhat.com
Mon Mar 31 09:47:49 UTC 2025
Thomas Zimmermann <tzimmermann at suse.de> writes:
> Add palette support and export GAMMA properties via sysfs. User-space
> compositors can use this interface for programming gamma ramps or night
> mode.
>
> Vesadrm supports palette updates via VGA DAC registers or VESA palette
> calls. Up to 256 palette entries are available. Userspace always supplies
> gamma ramps of 256 entries. If the native color format does not match
> this because pixel component have less then 8 bits, vesadrm interpolates
> among the palette entries.
>
> The code uses CamelCase style in a few places to match the VESA manuals.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the dri-devel
mailing list