drm/tegra: dc: Implement legacy blending
authorThierry Reding <treding@nvidia.com>
Wed, 20 Dec 2017 08:39:14 +0000 (09:39 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 21 Dec 2017 13:55:55 +0000 (14:55 +0100)
commitebae8d07435ae91314f4a28d69b530d09c625815
treefbe41c4c436502a2f073a3c352d3b14a3886cf15
parent4c69ac12e39d3d623686d1c421b05d604e1c6db9
drm/tegra: dc: Implement legacy blending

This implements alpha blending on legacy display controllers (Tegra20,
Tegra30 and Tegra114). While it's theoretically possible to support the
zpos property to enable userspace to specify the Z-order of each plane
individually, this is not currently supported and the same fixed Z-
order as previously defined is used.

Reverts commit 71835caa00e8 ("drm/tegra: fb: Force alpha formats") since
the opaque formats are now supported.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Fixes: 7772fdaef939 ("drm/tegra: Support ARGB and ABGR formats")
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dc.h
drivers/gpu/drm/tegra/fb.c
drivers/gpu/drm/tegra/plane.c
drivers/gpu/drm/tegra/plane.h