]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dc: Restore YUV overlay support
authorThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 12:40:44 +0000 (13:40 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 12:44:17 +0000 (13:44 +0100)
commitb076df792e67402d660662aacf6fcd107f91bf85
tree5549c0940dc05cbaa6b0263f11f346f97b1ec809
parenta2fc6ac90aa5a295a486a423bccb35e467aabc41
drm/tegra: dc: Restore YUV overlay support

Commit a2fc6ac90aa5 ("drm/tegra: dc: Implement legacy blending") broke
support for YUV overlays by accident. The reason is that YUV formats are
considered opaque because they have no alpha component, but on the other
hand no corresponding format with an alpha component can be returned. In
the case of YUV formats, the opaque format is the same as the alpha
format, so add the special case to restore YUV overlay support.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/plane.c