diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2016-11-08 10:50:42 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-04-05 19:11:46 +0300 |
commit | 5e91144dd702d068b22a75911c06104e56cb4858 (patch) | |
tree | ca429915b52d24df6fa74971166552ac7d1ce065 /drivers/gpu/drm/tegra/drm.c | |
parent | bdd2f9cd10eb842be96418cc226bc33744d358b0 (diff) | |
download | linux-5e91144dd702d068b22a75911c06104e56cb4858.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 948b529d4097..3f8bd7bd6532 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -164,6 +164,8 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags) drm->mode_config.max_width = 4096; drm->mode_config.max_height = 4096; + drm->mode_config.allow_fb_modifiers = true; + drm->mode_config.funcs = &tegra_drm_mode_funcs; err = tegra_drm_fb_prepare(drm); |