__drm_lut_to_dc_gamma(9)
π
__drm_lut_to_dc_gamma β Kernel API Manual core π
okay so bestie, buckle up, because this one is a little function from the kernel's graphics side and honestly it's giving "small but crucial" energy β¨. The page you're reading is the __drm_lut_to_dc_gamma(9) manual, and yes we're doing this together, no cap π«Ά.
β¨ NAME β¨
__drm_lut_to_dc_gamma β convert the drm_color_lut to dc_gamma. literally just a glow-up translation gig, and she ate π
πΈ SYNOPSIS πΈ
void __drm_lut_to_dc_gamma (const struct drm_color_lut *lut , struct
dc_gamma *gamma , bool is_legacy );
π ARGUMENTS π
lutβ the DRM lookup table for color conversion π₯ like, the source material, the original, the blueprintgammaβ the DC gamma you're setting entries into π¦ she's the destination, the main character receiving the datais_legacyβ legacy or atomic gamma β this bool is the vibe check that tells everyone which one we're dealing with
π DESCRIPTION π
so the conversion depends on the size of the lut β like, whether or not it's legacy. that's it, that's the whole mood π the table's size is the deciding factor, and is_legacy is along for the ride to make the legacy-versus-atomic situation crystal clear π.
no cap, that's the tea: size of the lut decides how the conversion goes π
π SEE ALSO π
okay this is the friend group, and every single one of them is iconic in her own right π:
- 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_lut32_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)
π okay that's the whole page, you understood it perfectly, I'm so proud of you, fr fr.
and a lil sign-off before you go π§: this came from the Kernel API Manual (source page ./drivers/gpu/drm/amd/display/...), dated October 2026, and it's __drm_lut_to_dc_gamma(9) β catch you in the next manpage, bestie, mwah πβ¨
π¦ 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