amdgpu_dm_up...c_color_mgmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_dm_update_crtc_color_mgmt β€” Kernel API Manual glow-up πŸ’–

okay so bestie, this is the amdgpu_dm_up...c_color_mgmt(9) page, and we're about to make DRM color management to DC stream make sense. no cap. ✨

🌸 NAME 🌸

amdgpu_dm_update_crtc_color_mgmt β€” Maps DRM color management to DC stream. literally that's the whole assignment. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int amdgpu_dm_update_crtc_color_mgmt (struct dm_crtc_state *crtc );

πŸŽ€ ARGUMENTS πŸŽ€

  • crtc β€” the amdgpu_dm crtc state. that's the state we're updating, bestie. 🫢

✨ DESCRIPTION ✨

When there are no plane level color management properties, we're free to use any of the HW blocks β€” as long as the CRTC CTM always comes before the CRTC RGM and after the CRTC DGM. that ordering is the vibe check. πŸ‘‘

  • The CRTC RGM block will be placed in the RGM LUT block if it is non-linear.
  • The CRTC DGM block will be placed in the DGM LUT block if it is non-linear.
  • The CRTC CTM will be placed in the gamut remap block if it is non-linear.

The RGM block is typically more fully featured and accurate across all ASICs. and DCE can't support a custom non-linear CRTC DGM β€” that's just the limit, bestie. 😭

For supporting both plane level color management and CRTC level color management at once, we have to either restrict the usage of CRTC properties or blend adjustments together. both at once is a whole situation, iykyk. πŸŒ€

🌈 RETURN 🌈

0 on success. Error code if setup fails. slay when it works, error code when setup fails, periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c

k bye bestie β€” this amdgpu_dm_up...c_color_mgmt(9) page is from the kernel API manual, source/version ./drivers/gpu/drm/amd/display/..., dated October 2026. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from