• Thierry Reding's avatar
    drm/tegra: Add SET/GET_TILING IOCTLs · 7678d71f
    Thierry Reding authored
    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.
    Reviewed-by: default avatarStéphane Marchesin <marcheu@chromium.org>
    Tested-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    7678d71f
tegra_drm.h 4.8 KB