]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5599adf70f265b01d6a6fc812f1e2c863c16cca0
tree517f14cc5e30efa260b9a317f06002807de73ea8
parentb9a22445ad07d142091e74607709af88f9e94142
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