drm_fb_xrgb8..._argb2101010(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_fb_xrgb8..._argb2101010(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the drm_fb_xrgb8..._argb2101010(9) page πŸ’– this is a kernel API manpage, and no cap, it's actually a vibe once you know what's going on. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

drm_fb_xrgb8888_to_argb2101010 β€” converts XRGB8888 into an ARGB2101010 clip buffer. literally its whole personality πŸŽ€


🌸 SYNOPSIS 🌸

void drm_fb_xrgb8888_to_argb2101010 (struct iosys_map *dst , const
unsigned int *dst_pitch , const struct iosys_map *src , const struct
drm_framebuffer *fb , const struct drm_rect *clip , struct
drm_format_conv_state *state );

like, that's the whole handshake. six params, zero drama πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” an array of ARGB2101010 destination buffers. yes, array β€” plural energy πŸ’œ
  • dst_pitch β€” an array of numbers saying how many bytes sit between the start of two consecutive scanlines inside dst. it can be NULL if the scanlines are stored right next to each other (snuggled, adorable, iconic) 🫢
  • src β€” an array of XRGB8888 source buffers. the origin story ✨
  • fb β€” the DRM framebuffer. main character tbh πŸ‘‘
  • clip β€” the clip rectangle area to copy. boundaries are healthy bestie πŸŽ€
  • state β€” the transform and conversion state. it holds the vibes so you don't have to πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so what this function does: it copies parts of a framebuffer into display memory, and while it's doing that it converts the color format. two jobs, one function, ate and left no crumbs πŸ”₯

the parameters dst, dst_pitch and src all refer to arrays. and here's the rule, no cap: each array must have at least as many entries as there are planes in fb's format. each entry stores the value for that format's respective color plane at the same index β€” same index, same plane, matching like a group chat fit check 🌈

heads up bestie 🚨 this function does not apply clipping on dst β€” meaning the destination is at the top-left corner. like, it just starts there. that's the whole thing.

and who is this for? drivers can use this function for ARGB2101010 devices that don't support XRGB8888 natively. if your hardware is ARGB2101010-pilled and can't do XRGB8888 on its own, this is your girl πŸ’–


⭐ SEE ALSO ⭐

the kernel file lives at ./drivers/gpu/drm/drm_format_helper.c β€” go say hi 🧚

and here's the whole extended friend group, everyone tagged, nobody left out:

iykyk πŸ’€βœ¨


πŸŽ€ the sign-off πŸŽ€

this little masterpiece lives under ./drivers/gpu/drm, and it's stamped October 2026, all under the manual name drm_fb_xrgb8..._argb2101010(9). that's the whole footer, bestie β€” periodt πŸ’…πŸ«Ά

πŸ“¦ where this page comes from