amdgpu_dm_verify_lut3d_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on success πŸŽ‰
  • -EINVAL if 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 πŸ‘‘:


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