mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-24 14:25:26 -04:00
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>
This commit is contained in:
@@ -111,10 +111,18 @@ int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap)
|
||||
|
||||
switch (fourcc) {
|
||||
case DRM_FORMAT_XBGR8888:
|
||||
*format = WIN_COLOR_DEPTH_R8G8B8X8;
|
||||
break;
|
||||
|
||||
case DRM_FORMAT_ABGR8888:
|
||||
*format = WIN_COLOR_DEPTH_R8G8B8A8;
|
||||
break;
|
||||
|
||||
case DRM_FORMAT_XRGB8888:
|
||||
*format = WIN_COLOR_DEPTH_B8G8R8X8;
|
||||
break;
|
||||
|
||||
case DRM_FORMAT_ARGB8888:
|
||||
*format = WIN_COLOR_DEPTH_B8G8R8A8;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user