drm_crtc_loa...565_from_888(9)
π drm_crtc_load_gamma_565_from_888(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for drm_crtc_load_gamma_565_from_888(9), and yes the header up top abbreviates it as drm_crtc_loa...565_from_888(9) because apparently even the manpage needed a little nap. the full name is right there in the NAME section, no cap π«Ά
πΈ NAME πΈ
drm_crtc_load_gamma_565_from_888 β programs the gamma ramp for RGB565-like formats π
β¨ SYNOPSIS β¨
void drm_crtc_load_gamma_565_from_888 (struct drm_crtc *crtc , const
struct drm_color_lut *lut , drm_crtc_set_lut_func set_gamma );
π ARGUMENTS π
crtcβ the CRTC that's doing the displaying, aka the main character of this whole operation πlutβ the gamma ramp you want programmed. this is the actual data, the moment, the iconset_gammaβ the callback that programs the hardware gamma LUT. think of it as the friend who actually makes the phone call π
π¦ DESCRIPTION π¦
so what it does: it programs the gamma ramp you passed in lut straight to the hardware. simple, clean, slay β¨
but here's the requirement β the input gamma ramp must have 256 entries per color component. 256. per component. don't try to be cute and pass fewer, okay? π
then the helper does its little interpolation thing on the individual color components to reduce the number of entries down to 5/6/5. that's literally the whole job. the way it just... shrinks your 256-entry ramp down to 5/6/5 and hands it off π₯ it's giving compression icon behavior.
π SEE ALSO π
like, go read the whole family, they're all so good:
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.coverview(9) drm_color_ctm_s31_32_to_qm_n(9)drm_crtc_enable_color_mgmt(9)drm_mode_crtc_set_gamma_size(9)drm_crtc_supports_legacy_gamma(9)drm_crtc_legacy_gamma_set(9)drm_mode_gamma_set_ioctl(9)drm_mode_gamma_get_ioctl(9)drm_get_color_encoding_name(9)drm_get_color_range_name(9)drm_plane_create_color_properties(9)drm_color_lut_check(9)drm_crtc_load_gamma_888(9)drm_crtc_load_gamma_555_from_888(9)drm_crtc_fill_gamma_888(9)drm_crtc_fill_gamma_565(9)drm_crtc_fill_gamma_555(9)drm_crtc_load_palette_8(9)drm_crtc_fill_palette_332(9)drm_crtc_fill_palette_8(9)drm_color_lut32_check(9)
ngl the whole gamma-LUT friend group ate and left no crumbs π
and that's the page!! mwah π β brought to you by the folks hanging out in ./drivers/gpu/drm, dated October 2026. go forth and interpolate responsibly, bestie π§β
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms