drm_fb_xrgb8888_to_argb1555(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_fb_xrgb8888_to_argb1555 πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for drm_fb_xrgb8888_to_argb1555(9) β€” yes that name is a mouthful, no we are not shortening it, it's iconic and we respect it πŸŽ€


✨ NAME ✨

drm_fb_xrgb8888_to_argb1555 β€” converts XRGB8888 into an ARGB1555 clip buffer. literally a glow-up for your pixels πŸ’–


🌸 SYNOPSIS 🌸

void drm_fb_xrgb8888_to_argb1555 (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 ARGB1555 destination buffers 🫢
  • dst_pitch β€” array of numbers of bytes between the start of two consecutive scanlines within dst; this one can be NULL if the scanlines are just stored next to each other (they're cozy like that, no cap)
  • src β€” array of XRGB8888 source buffer
  • fb β€” DRM framebuffer
  • clip β€” the clip rectangle area to copy βœ‚οΈ
  • state β€” transform and conversion state

πŸ”₯ DESCRIPTION πŸ”₯

So what this function actually does: it copies parts of a framebuffer over to display memory and converts the color format while it's at it. multitasking queen πŸ‘‘

The parameters dst, dst_pitch and src refer to arrays. Each array has to have at least as many entries as there are planes in fb's format β€” like, at minimum, don't skimp. Each entry stores the value for the format's respective color plane at the same index. matching sets only πŸ’…

Heads up bestie: this function does not apply clipping on dst β€” meaning the destination sits at the top-left corner. that's just the vibe, ok?

Drivers can use this function for ARGB1555 devices that don't support XRGB8888 natively. It sets an opaque alpha channel as part of the conversion β€” fully opaque, no see-through, periodt ✨


⭐ SEE ALSO ⭐

Kernel file ./drivers/gpu/drm/drm_format_helper.c β€” go read it, it's giving main character energy πŸ“–

the whole friend group fr fr πŸ’œ


and that's the whole page, bestie! this one lives in ./drivers/gpu/drm, dated October 2026 β€” stamped, sealed, slayed. mwah πŸ“βœ¨

πŸ“¦ where this page comes from