amdgpu_dm_u...e_color_mgmt(9)
π amdgpu_dm_update_plane_color_mgmt(9) β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ β today we're talking about amdgpu_dm_update_plane_color_mgmt, which honestly is a lot of letters but she's iconic and she does exactly one thing and she does it slayfully π
πΈ NAME πΈ
amdgpu_dm_update_plane_color_mgmt β literally maps DRM color management over to the DC plane. that's it. that's the job. no cap π
β¨ SYNOPSIS β¨
int amdgpu_dm_update_plane_color_mgmt (struct dm_crtc_state *crtc ,
struct drm_plane_state *plane_state , struct dc_plane_state
*dc_plane_state );
she takes three args and returns an int, periodt π«Ά
π¦ ARGUMENTS π¦
crtcβ the amdgpu_dm crtc state, aka the main character πplane_stateβ the DRM plane state, she's giving supporting-role-but-importantdc_plane_stateβ the target DC surface, the destination of all this color-management lore π«
π§ DESCRIPTION π§
so what she actually does: she updates the underlying dc_stream_state's input transfer function (ITF) in preparation for the hardware commit π₯ and which transfer function she uses? that depends entirely on the preparation that was done on the stream for color management. so like, the setup determines the glow-up, iykyk π
π RETURN π
0on success, we love a win π-ENOMEMif the mem allocation fails π (memory said "not today")
π SEE ALSO π
the whole friend group, fr fr β first the kernel file:
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
and then the squad:
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_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)
lowkey reminder: this page lives at./drivers/gpu/drm/amd/display/...and she's dated October 2026, filed underamdgpu_dm_u...e_color_mgmt(9)β that's the whole footer, bestie, I didn't forget a single crumb π
k that's the page, go forth and color-manage responsibly, 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