OSDN Git Service

drm/tegra: dc: Implement hardware cursor on Tegra186 and later
authorThierry Reding <treding@nvidia.com>
Fri, 26 Mar 2021 14:51:34 +0000 (15:51 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 31 Mar 2021 15:42:14 +0000 (17:42 +0200)
commitd5ec699db5bb15f981f1632d058ffe857d649765
tree517f14cc5e30efa260b9a317f06002807de73ea8
parent042c0bd76d7b053ea6bc47e4db471d5cfc7f19c5
drm/tegra: dc: Implement hardware cursor on Tegra186 and later

The hardware cursor on Tegra186 differs slightly from the implementation
on older SoC generations. In particular the new implementation relies on
software for clipping the cursor against the screen. Fortunately, atomic
KMS already computes clipped coordinates for (cursor) planes, so this is
trivial to implement.

The format supported by the hardware cursor is also slightly different.

v2: use more drm_rect helpers (Dmitry)

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