drm/tegra: Add tiling FB modifiers
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 8 Nov 2016 07:50:42 +0000 (16:50 +0900)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:21 +0000 (14:50 -0500)
commit6ac3a98c3b45f592a6e7c2e2702e9fea7eb58653
tree9b45c992d8520b610124c8404f1df81f000b1493
parent109e0074e12729f4c658127715f2654cefaeead3
drm/tegra: Add tiling FB modifiers

Add FB modifiers to allow user-space to specify that a surface is in one
of the two tiling formats supported by Tegra chips, and add support in
the tegradrm driver to handle them properly. This is necessary for the
display controller to directly display buffers generated by the GPU.

This feature is intended to replace the dedicated IOCTL enabled
by TEGRA_STAGING and to provide a non-staging alternative to that
solution.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 5e91144dd702d068b22a75911c06104e56cb4858)
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/fb.c
include/uapi/drm/drm_fourcc.h