__is_lut_linear(9)
π NAME
__is_lut_linear β bestie, this one checks if the lut you handed it is just a linear mapping of values π
β¨ SYNOPSIS
bool __is_lut_linear (const struct drm_color_lut *lut , uint32_t size );
π ARGUMENTS
lutβ the given lut you want the vibes checked on, i.e. the one whose values get inspected π«Άsizeβ the lut size, literally how big the thing is π
π¦ DESCRIPTION
okay so here's the tea β β a lut gets called linear when it represents this exact function:
f(a) = (0xFF00/MAX_COLOR_LUT_ENTRIES-1)a
...for integer a in [0, MAX_COLOR_LUT_ENTRIES). no cap, that's the whole criterion β¨ it's giving "does this table actually do anything or is it just standing there looking pretty" π
β RETURN
True if the given lut is a linear mapping of values β like, it acts like a bypass LUT and is basically main character energy doing absolutely nothing πΈ otherwise, false π
π SEE ALSO
the kernel file lives at ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c β go read it, iykyk π
and then the whole friend group:
overview(9)amdgpu_dm_init_color_mod(9)__extract_blob_lut(9)__extract_blob_lut32(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_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 page bestie, go forth and check those luts π§π this one comes from ./drivers/gpu/drm/amd/display/..., dated October 2026, and it's the __is_lut_linear(9) page β mwah, slay, 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