__drm_lut32_to_dc_gamma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __drm_lut32_to_dc_gamma (9) ✨

okay so bestie, welcome to the Kernel API Manual entry for __drm_lut32_to_dc_gamma β€” literally the glow-up artist that turns your drm_color_lut32 into a dc_gamma πŸ’… no cap, she's out here converting lookup tables so your colors pop correctly 🌈


πŸŽ€ SYNOPSIS πŸŽ€

void __drm_lut32_to_dc_gamma (const struct drm_color_lut32 *lut ,
                              struct dc_gamma *gamma );

like, she takes two things and gives you nothing back (void, periodt) β€” she just does the work and moves on, main character energy fr fr ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lut β€” the DRM lookup table for color conversion πŸ’– this is the source of truth, the OG table, the one we're reading from.
  • gamma β€” the DC gamma you're setting entries into πŸŽ€ she's the destination, the one getting filled up with all that converted goodness.

🌸 DESCRIPTION 🌸

so the way this works, right? The conversion depends on the size of the lut β€” specifically whether or not it's legacy πŸ‘€ that's the whole vibe check here. Different size, different legacy-ness, different path through the conversion. That's it, that's the tea πŸ“

ngl this is one of those "the details live in the size" situations β€” don't assume one behavior fits all luts, because it doesn't πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

bestie you are NOT ready for this friend group, it's giving whole-file reunion 🫢 they all live around here:

like, go read them, they're iconic, iykyk πŸ’œ


and that's the whole page babes 🧚 source is ./drivers/gpu/drm/amd/display/... and this little beauty is dated October 2026 β€” __drm_lut32_to_dc_gamma(9), slay, bye πŸ’–βœ¨

πŸ“¦ where this page comes from