__drm_ctm_to_dc_matrix(9)
π __drm_ctm_to_dc_matrix (9) β Kernel API Manual π
okay so bestie, this page is from the Kernel API Manual, and it's all about one tiny but iconic function. no cap.
πΈ NAME πΈ
__drm_ctm_to_dc_matrix β converts a DRM CTM to a DC CSC float matrix. that's the whole assignment, and it ate. π
π SYNOPSIS π
void __drm_ctm_to_dc_matrix (const struct drm_color_ctm *ctm , struct
fixed31_32 *matrix );
π ARGUMENTS π
ctmβ the DRM color transformation matrix. this is the input, bestie. π¦matrixβ the DC CSC float matrix. this is where the converted matrix lands. β¨
π§ DESCRIPTION π§
so the matrix needs to be a 3x4 (12 entry) matrix. that's 12 entries, periodt. no cap. π
π₯ SEE ALSO π₯
- 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_lut32_to_dc_gamma(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 page, bestie π«Ά the footer source/version vibe is ./drivers/gpu/drm/amd/display/..., the date is October 2026, and the page is literally __drm_ctm_to_dc_matrix(9). 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