amdgpu_dm_verify_lut_sizes(9)
π 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'sconst 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 π₯
0on success π slay, everything matched.-EINVALif 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 π:
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_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
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
- 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