__drm_lut32_to_dc_gamma(9)
β¨ __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:
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c overview(9)amdgpu_dm_init_color_mod(9)__extract_blob_lut(9)__extract_blob_lut32(9)__is_lut_linear(9)__drm_lut_to_dc_gamma(9)__drm_ctm_to_dc_matrix(9)__drm_ctm_3x4_to_dc_matrix(9)__set_legacy_tf(9)__set_output_tf(9)__set_output_tf_32(9)__set_input_tf(9)__set_input_tf_32(9)amdgpu_dm_verify_lut3d_size(9)amdgpu_dm_verify_lut_sizes(9)amdgpu_dm_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
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
- 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