amdgpu_dm_c...c_color_mgmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 ⭐

  • 0 on success πŸŽ‰
  • Error code if validation fails πŸ˜”

πŸ”₯ SEE ALSO πŸ”₯

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