summaryrefslogtreecommitdiff
path: root/fs/ioctl.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2022-04-25 09:59:39 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2022-04-27 08:52:06 +0200
commite08a99d005588f7f1d0647cdbc3368c98471fa6c (patch)
treecc0b59442e771d92f7d9d1b1b41dce57af4d5fae /fs/ioctl.c
parent26c30f223123b7feff0ca8722af2f93935b08b85 (diff)
drm/format-helper: Add RGB565-to-XRGB8888 conversiondrm-misc-next-2022-04-28
Add a format helper that converts RGB565 to XRGB8888. Use this function in drm_fb_blit_toio(). Fixes simpledrm output for this combination of formats. UEFI and/or Grub will usually set 32-bit output in XRGB8888 format. The issue can be reproduced by enabling simpledrm and requesting a console framebuffer of different format on the kernel command line; for example nomodeset video=1024x768-16 In this case, conversion helpers will display nothing on the console. The patch makes this work by implementing the rsp conversion helpers. It also enables odd userspace configurations, such as running Xorg with 16-bit color depth on a 32-bit output buffer. v2: * use helpers for struct drm_rect (Javier) * improve commit message (Javier) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220425075939.30450-4-tzimmermann@suse.de
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions