amdgpu_dm_u...e_color_mgmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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-important
  • dc_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 πŸ‘‘

  • 0 on success, we love a win 🌈
  • -ENOMEM if 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:


lowkey reminder: this page lives at ./drivers/gpu/drm/amd/display/... and she's dated October 2026, filed under amdgpu_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