diff options
author | Melissa Wen <melissa.srw@gmail.com> | 2020-08-25 13:45:32 +0200 |
---|---|---|
committer | Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> | 2020-08-30 15:23:26 +0200 |
commit | 39cba5cf8c2c23c9c1fe3e0a8612d4f2d932d79b (patch) | |
tree | 343323078c3d8c073c19b30a8b1e46397f404bcf /drivers/isdn | |
parent | drm: panel: Fix bpc for OrtusTech COM43H4M85ULC panel (diff) | |
download | linux-39cba5cf8c2c23c9c1fe3e0a8612d4f2d932d79b.tar.xz linux-39cba5cf8c2c23c9c1fe3e0a8612d4f2d932d79b.zip |
drm/vkms: add alpha-premultiplied color blending
The VKMS blend function was ignoring the alpha channel and just
overwriting vaddr_src with vaddr_dst. This XRGB approach triggers a
warning when running the kms_cursor_crc/cursor-alpha-transparent test
case. In IGT, cairo_format_argb32 uses premultiplied alpha (according to
documentation). Also current DRM assumption is that alpha is
premultiplied. Therefore, this patch considers premultiplied alpha
blending eq to compose vaddr_src with vaddr_dst.
This change removes the following cursor-alpha-transparent warning:
"Suspicious CRC: All values are 0."
V2:
- static for local functions
- const for the read-only variable argb_src
- replaces variable names
- drops unnecessary comment
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200825114532.abzdooluny2ekzvm@smtp.gmail.com
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions