__is_lut_linear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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