amdgpu_dm_c...c_color_mgmt(9)
β¨ amdgpu_dm_check_crtc_color_mgmt β¨
okay so real talk, bestie β this is a page from the Kernel API Manual, and it's about amdgpu_dm_check_crtc_color_mgmt, which is genuinely one of those functions that sounds scary but is actually just doing a vibe check on your colors π. Buckle up, it's giving "niche but iconic".
πΈ NAME πΈ
amdgpu_dm_check_crtc_color_mgmt β checks whether the DRM color props can actually be programmed by DC. That's it, that's the whole job π
π SYNOPSIS π
int amdgpu_dm_check_crtc_color_mgmt (struct dm_crtc_state *crtc , bool check_only );
π¦ ARGUMENTS π¦
crtcβ the amdgpu_dm crtc state, aka the main character of this whole function πcheck_onlyβ when this is set, we only check the color state, no updating the dc stream. lowkey the "look but don't touch" option π
π DESCRIPTION π
So what does this actually do? It literally just verifies the CRTC LUT sizes β that's the whole thing π«Ά. It checks whether there's enough space for the output transfer function, and whether that function's parameters can be calculated by the AMD color module. It also adjusts some settings so CRTC degamma gets programmed at the plane stage, using the plane DGM block. multitasking queen behavior fr fr β¨
Now, the tea on the RGM block: it's typically more fully featured and accurate across all ASICs β and yeah, DCE can't support a custom non-linear CRTC DGM. no cap, that's just how it is π
And here's the messy part: to support both plane-level color management and CRTC-level color management at the same time, we have to either restrict the usage of some CRTC properties or blend the adjustments together. it's giving "compromise" energy π
β RETURN β
0on success π- Error code if validation fails π
π₯ 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_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_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
like, that's a whole friend group right there π§π
ok and one last thing β this page lives at ./drivers/gpu/drm/amd/display/..., and it's dated October 2026. slay, see u next semester bestie π
ππ
π¦ 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