OpenCloudOS-Kernel/drivers/gpu
Thomas Zimmermann 26c30f2231 drm/format-helper: Add RGB888-to-XRGB8888 conversion
Add a format helper that converts RGB888 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-24

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 24-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-3-tzimmermann@suse.de
2022-04-27 08:51:57 +02:00
..
drm drm/format-helper: Add RGB888-to-XRGB8888 conversion 2022-04-27 08:51:57 +02:00
host1x gpu: host1x: Fix a memory leak in 'host1x_remove()' 2022-03-01 11:13:09 +01:00
ipu-v3 gpu: ipu-v3: Fix dev_dbg frequency output 2022-04-04 09:37:42 +02:00
trace
vga PCI/VGA: Move vgaarb to drivers/pci 2022-03-09 18:30:46 -06:00
Makefile