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.h | |
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.h')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h index 47f43663adcb..018fea74fb50 100644 --- a/drivers/gpu/drm/tegra/dc.h +++ b/drivers/gpu/drm/tegra/dc.h @@ -598,6 +598,8 @@ int tegra_dc_rgb_exit(struct tegra_dc *dc); #define WIN_COLOR_DEPTH_YUV422R 23 #define WIN_COLOR_DEPTH_YCbCr422RA 24 #define WIN_COLOR_DEPTH_YUV422RA 25 +#define WIN_COLOR_DEPTH_B8G8R8X8 37 +#define WIN_COLOR_DEPTH_R8G8B8X8 38 #define DC_WIN_POSITION 0x704 #define H_POSITION(x) (((x) & 0x1fff) << 0) /* XXX 0x7fff on Tegra186 */ |