drm_crtc_load_palette_8(9)
π drm_crtc_load_palette_8(9) π
okay so this is a page from the Kernel API Manual, bestie, and it's about drm_crtc_load_palette_8 β literally the little function that pushes a palette into your hardware for C8-ish formats. it's short, it's sweet, it ate, no notes π
β¨ SYNOPSIS β¨
void drm_crtc_load_palette_8 (struct drm_crtc *crtc , const struct
drm_color_lut *lut , drm_crtc_set_lut_func set_palette );
like, yes, that's the whole vibe. void return because it just does the thing and dips π
πΈ ARGUMENTS πΈ
crtcβ the CRTC that's doing the displaying, aka the main character of this whole situation πlutβ the palette you want to program, your little color lineup π¨set_paletteβ the callback that actually programs the hardware palette, the backstage crew making it happen π«Ά
π¦ DESCRIPTION π¦
so what it does is: it programs the palette you passed in lut into the hardware. that's it. that's the function. iconic behavior honestly β¨
β οΈ but listen β the input palette must have 256 entries per color component. not 255, not "eh somewhere around there". 256. per. component. the vibe check is strict on this one, fr fr π
π SEE ALSO π
the whole friend group, gathered for you π:
- 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_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_fill_palette_332(9)drm_crtc_fill_palette_8(9)drm_color_lut32_check(9)
β¨ that's the whole page, bestie β¨ this lil guy lives in ./drivers/gpu/drm, dated October 2026, and you just read the drm_crtc_load_palette_8(9) glow-up ππ mwah, go program some palettes, you got this π§ββοΈ
π¦ 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