drm_fb_xrgb8..._xrgb2101010(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Bestie, welcome to the Kernel API Manual glow-up for drm_fb_xrgb8..._xrgb2101010(9). The main-character function here is drm_fb_xrgb8888_to_xrgb2101010 β€” its whole thing is Convert XRGB8888 to XRGB2101010 clip buffer. That's the name card, and it ate. πŸ’–


✨ SYNOPSIS ✨

Here's the exact signature, no cap β€” character for character:

void drm_fb_xrgb8888_to_xrgb2101010 (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 );

πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” Array of XRGB2101010 destination buffers. This is where the converted pixels are headed, bestie.
  • dst_pitch β€” Array of numbers of bytes between the start of two consecutive scanlines within dst; can be NULL if scanlines are stored next to each other. So yes, it's optional in that specific case, iykyk.
  • src β€” Array of XRGB8888 source buffers. The original pixels, pre-glow-up.
  • fb β€” DRM framebuffer. The whole framebuffer situation.
  • clip β€” Clip rectangle area to copy. This is the little region we're working with.
  • state β€” Transform and conversion state. Keep it close, bestie.

🌈 DESCRIPTION 🌈

Okay so this function copies parts of a framebuffer to display memory and converts the color format during the process. Destination and framebuffer formats must match β€” that's the rule, not a suggestion. πŸ’…

The parameters dst, dst_pitch and src refer to arrays. Each array must have at least as many entries as there are planes in fb's format. Each entry stores the value for the format's respective color plane at the same index.

This function does not apply clipping on dst β€” i.e. the destination is at the top-left corner. No sneaky offset magic happening on the destination side.

Drivers can use this function for XRGB2101010 devices that don't support XRGB8888 natively. It's giving "adapter era," and honestly, iconic. πŸ¦‹


πŸ’œ SEE ALSO πŸ’œ


That's the tea, bestie. Source: ./drivers/gpu/drm Β· date/version: October 2026 Β· manual page: drm_fb_xrgb8..._xrgb2101010(9). Go convert those buffers and slay πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from