amdgpu_dm_verify_lut3d_size(9)
π amdgpu_dm_verify_lut3d_size(9)
okay so this is a page from the Kernel API Manual, and it's about one very specific little function that does a vibe check on your 3D LUT setup π
β¨ NAME β¨
amdgpu_dm_verify_lut3d_size β bestie, this one verifies if 3D LUT is supported and if user shaper and 3D LUTs match the hw supported size π
πΈ SYNOPSIS πΈ
int amdgpu_dm_verify_lut3d_size (struct amdgpu_device *adev , struct
drm_plane_state *plane_state );
like, it takes two things and gives you back an int, that's the whole deal π«Ά
π¦ ARGUMENTS π¦
adevβ the amdgpu device, the main character here πplane_stateβ the DRM plane state, aka the other one you gotta hand over
π DESCRIPTION π
So what does it actually do? It verifies if pre-blending (DPP) 3D LUT is supported by the HW (DCN 2.0 or newer) β and it also verifies if the user shaper and 3D LUTs match the supported size. Both checks, one function, she's efficient like that β¨
no cap, if your hardware is pre-DCN 2.0, the 3D LUT support just isn't there β this is the function that finds that out π
β RETURN β
0on success π-EINVALif lut size are invalid π (yep, that's the exact wording, I'm not touching it)
π SEE ALSO π
The kernel file this lives in:
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
and literally all of her friends, in order, no skipping π:
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_lut_sizes(9)amdgpu_dm_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
okay that's the whole page, mwah π this one's sourced from ./drivers/gpu/drm/amd/display/... and dated October 2026 β amdgpu_dm_verify_lut3d_size(9), periodt. π§ββοΈπ
π¦ 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