diff options
author | Thierry Reding <treding@nvidia.com> | 2017-10-12 17:30:55 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-12-13 14:16:39 +0100 |
commit | 7772fdaef939891d790c3461a4d1681417e0f51f (patch) | |
tree | df2c8b597329ad2f2274c17906325371599cf2f0 /drivers/gpu/drm/tegra/dc.c | |
parent | drm/tegra: dc: Add Tegra186 support (diff) | |
download | linux-7772fdaef939891d790c3461a4d1681417e0f51f.tar.xz linux-7772fdaef939891d790c3461a4d1681417e0f51f.zip |
drm/tegra: Support ARGB and ABGR formats
These formats can easily be supported on all generations of Tegra.
Note that the XRGB and XBGR formats that we supported were in fact using
the ARGB and ABGR Tegra formats. This happened to work in cases where no
alpha was being considered. This change is also a fix for those formats.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 5878d42d153c..6790e2d869c4 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -287,7 +287,9 @@ static void tegra_dc_setup_window(struct tegra_dc *dc, unsigned int index, static const u32 tegra_primary_plane_formats[] = { DRM_FORMAT_XBGR8888, + DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB8888, + DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565, }; @@ -630,7 +632,9 @@ static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm, static const uint32_t tegra_overlay_plane_formats[] = { DRM_FORMAT_XBGR8888, + DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB8888, + DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565, DRM_FORMAT_UYVY, DRM_FORMAT_YUYV, |