OSDN Git Service

drm/rockchip: Add per-pixel alpha support for the PX30 VOP
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 16 Apr 2020 14:05:26 +0000 (16:05 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 17 Jun 2020 10:04:46 +0000 (12:04 +0200)
commit2aae8ed1f390a42ec752e4403ffca877fb3260e1
tree272c295ee82825dd3eac32f7542368efadaa5c3e
parentcfe28f909ddd6ca854568870a7a9b46454e52b6f
drm/rockchip: Add per-pixel alpha support for the PX30 VOP

Compared to its predecessors, the PX30 VOP has a different register layout
for enabling per-pixel alpha. Instead of src_alpha_ctl and dst_alpha_ctl,
there is a single alpha control register. This register takes some fields
from src_alpha_ctl, but with a different layout.

Add support for the required fields to the PX30 VOP window descriptions,
which makes per-pixel-alpha formats behave correctly.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200416140526.262533-1-paul.kocialkowski@bootlin.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c