convert_hw_matrix(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… convert_hw_matrix(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for convert_hw_matrix, and honestly? it's giving "small function, big job" and I'm obsessed πŸŽ€


🌸 NAME 🌸

convert_hw_matrix β€” converts HW values into a fixed31_32 matrix πŸ’–

like, that's literally her whole personality. hardware numbers in, fancy fixed-point matrix out. slay.


✨ SYNOPSIS ✨

void convert_hw_matrix (struct fixed31_32 *matrix , uint16_t *reg , enum
cm_gamut_coef_format format , uint32_t buffer_size );

no cap, that's the whole signature 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • matrix β€” the fixed point 31.32 matrix πŸ’… this is where the glow-up lands
  • reg β€” array of register values, aka the raw HW gossip 🌸
  • format β€” -- undescribed -- πŸ™ˆ yeah bestie, the original docs literally did not describe this one. we're not gonna invent lore for it, that's not the vibe. it's of type enum cm_gamut_coef_format and that's all we're told πŸ’€
  • buffer_size β€” size of the array of register values, so she knows how much reg to read πŸ‘‘

🌈 DESCRIPTION 🌈

Okay so picture this: the hardware has its own little register spec format called S2D13, right? and convert_hw_matrix takes that HW register spec defined format S2D13 and converts it into a fixed-point 31.32 matrix ✨ literally translating hardware-speak into fixed-point matrix-speak. main character energy fr fr πŸ’œ


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/gpu/drm/amd/display/dc/basics/conversion.c β€” go read the source, iykyk 🧚


πŸ’€ reminder bestie: format is genuinely marked -- undescribed -- in the original. do not come for me, come for the person who wrote the doc πŸ™ˆ

and that's the page! πŸ’– this one came from the Kernel API Manual, version/source ./drivers/gpu/drm/amd/display/..., dated October 2026 β€” periodt, go convert some matrices bestie πŸŒŸπŸ’…πŸ«Ά

πŸ“¦ where this page comes from