tegra: Add GET/SET_TILING IOCTLs
authorThierry Reding <treding@nvidia.com>
Wed, 4 Jun 2014 08:36:43 +0000 (10:36 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Nov 2014 16:20:32 +0000 (17:20 +0100)
commit5ad2eef6eaed4ef90c25341a1c2278a0df5dafcc
treeeaefc32a502e047d525ea11f74384ebe8b9c91d8
parent93035cfbebf1344a041b70fbf9f3b89f6542805f
tegra: Add GET/SET_TILING IOCTLs

Currently the tiling parameters of buffer objects can only be set at
allocation time, and only a single tiled mode is supported. This new
DRM_TEGRA_GEM_SET_TILING IOCTL allows more modes to be set and also
allows the tiling mode to be changed after the allocation. This will
enable the Tegra DRM driver to import buffers from a GPU and directly
scan them out by configuring the display controller appropriately.

To complement this, the DRM_TEGRA_GEM_GET_TILING IOCTL can query the
current tiling mode of a buffer object. This is necessary when importing
buffers via handle (as is done in Mesa for example) so that userspace
can determine the proper parameters for the 2D or 3D engines.

Signed-off-by: Thierry Reding <treding@nvidia.com>
include/drm/tegra_drm.h