linux-stable/drivers/gpu/drm/vkms
Melissa Wen 32a1648aca drm/vkms: add XRGB planes composition
Add support for composing XRGB888 planes in addition to the ARGB8888
format. In the case of an XRGB plane at the top, the composition consists
of copying the RGB values of a pixel from src to dst and clearing alpha
channel, without the need for alpha blending operations for each pixel.

Blend equations assume a completely opaque background, i.e., primary plane
is not cleared before pixel blending but alpha channel is explicitly
opaque (a = 0xff). Also, there is room for performance evaluation in
switching pixel blend operation according to the plane format.

v4:
- clear alpha channel (0xff) after blend color values by pixel
- improve comments on blend ops to reflect the current state
- describe in the commit message future improvements for plane composition

Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/07bcf4643d11da9480599fe1b165e478bff58b25.1619250933.git.melissa.srw@gmail.com
2021-04-29 18:52:34 -03:00
..
Makefile drm/vkms: Switch to shmem helpers 2020-10-15 23:37:58 +02:00
vkms_composer.c drm/vkms: add XRGB planes composition 2021-04-29 18:52:34 -03:00
vkms_crtc.c drm/vkms: fix misuse of WARN_ON 2021-03-25 08:23:28 -03:00
vkms_drv.c drm/vkms: Fix missing kmalloc allocation failure check 2021-01-15 17:45:07 -03:00
vkms_drv.h drm/vkms: init plane using drmm_universal_plane_alloc 2021-04-29 18:44:43 -03:00
vkms_output.c drm/vkms: init plane using drmm_universal_plane_alloc 2021-04-29 18:44:43 -03:00
vkms_plane.c drm/vkms: add XRGB planes composition 2021-04-29 18:52:34 -03:00
vkms_writeback.c drm: Switch to %p4cc format modifier 2021-02-17 12:52:59 +01:00