drm_crtc_loa...565_from_888(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 icon
  • set_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:


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