drm_crtc_loa...555_from_888(9)
π drm_crtc_loa...555_from_888 (9) π
okay so bestie, welcome to the Kernel API Manual β yes the actual name, we're being fancy today π
β¨ NAME β¨
drm_crtc_load_gamma_555_from_888 β programs a gamma ramp for RGB555-like formats π
β¨ SYNOPSIS β¨
void drm_crtc_load_gamma_555_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 here πlutβ the gamma ramp you want programmed, the whole glow-up plan πset_gammaβ the callback that actually programs the hardware gamma LUT, the one who does the real work fr fr π₯
β¨ DESCRIPTION β¨
So here's the vibe: this helper programs the gamma ramp you passed in lut straight into the hardware. π«
But there's a catch, and it's giving important β the input gamma ramp must have 256 entries per color component. Like, non-negotiable. π«Ά
Then the helper interpolates the individual color components to shrink the number of entries down to 5/5/5. That's the whole point of the _555_from_888 in the name, iykyk πβ¨
β¨ SEE ALSO β¨
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.c overview(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_565_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)
that's the whole squad, go read them all, they're all iconic in their own way π¦πΈ
also real talk β the lut you pass in has to be 256 entries per component or the whole thing is a no π don't come for me, it's literally in the description
okay that's a wrap bestie!! πβ¨ this page lives at ./drivers/gpu/drm and it's dated October 2026 β so yeah, it's a little time traveler, we love that for it πππ«Ά
π¦ 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