drm_crtc_loa...555_from_888(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 ✨

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