amdgpu_dm_verify_lut_sizes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_dm_verify_lut_sizes(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's about amdgpu_dm_verify_lut_sizes, and honestly? it's giving "small function, big responsibility." let's get into it 🫢


🌸 NAME 🌸

amdgpu_dm_verify_lut_sizes β€” verifies if DRM luts match the hw supported sizes πŸ’–

like, it's literally the vibe check for your LUT sizes, no cap.


⭐ SYNOPSIS ⭐

int amdgpu_dm_verify_lut_sizes (const struct drm_crtc_state *crtc_state
);

look at that signature. so clean. so iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • crtc_state β€” the DRM CRTC state 🌈 that's the one thing you're passing in, and it's const struct drm_crtc_state *, so nobody's out here mutating it on your watch, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it actually do? It verifies that the Degamma and Gamma LUTs attached to the crtc_state are of the expected size ✨

that's it. that's the whole job. it's the bouncer at the club checking that the Degamma and Gamma LUTs are the size they're supposed to be before anything gets through πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰ slay, everything matched.
  • -EINVAL if any lut sizes are invalid 😭 not me getting rejected at the door.
fr fr, if you see -EINVAL it means at least one of those LUT sizes did not pass the vibe check. handle it accordingly, bestie.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c πŸ“

and the whole friend group πŸ’œ:

like, the whole color management crew is here and they all ate πŸ’…βœ¨


and that's the page, bestie 🫢 source/version is kickin' it at ./drivers/gpu/drm/amd/display/..., dated October 2026 🌸 mwah, go verify those LUT sizes, ily, bye πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from