Commit 12fef149 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Sort format arrays consistently

Let's try to keep the pixel format arrays somewhat sorted:
1. RGB before YUV
2. smaller bpp before larger bpp
3. X before A
4. RGB before BGR
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191031165652.10868-7-ville.syrjala@linux.intel.com
parent f9c43a31
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
/* Primary plane formats for gen <= 3 */ /* Primary plane formats for gen <= 3 */
static const u32 i8xx_primary_formats[] = { static const u32 i8xx_primary_formats[] = {
DRM_FORMAT_C8, DRM_FORMAT_C8,
DRM_FORMAT_RGB565,
DRM_FORMAT_XRGB1555, DRM_FORMAT_XRGB1555,
DRM_FORMAT_RGB565,
DRM_FORMAT_XRGB8888, DRM_FORMAT_XRGB8888,
}; };
......
...@@ -2389,10 +2389,10 @@ static const u32 snb_plane_formats[] = { ...@@ -2389,10 +2389,10 @@ static const u32 snb_plane_formats[] = {
static const u32 vlv_plane_formats[] = { static const u32 vlv_plane_formats[] = {
DRM_FORMAT_C8, DRM_FORMAT_C8,
DRM_FORMAT_RGB565, DRM_FORMAT_RGB565,
DRM_FORMAT_ABGR8888,
DRM_FORMAT_ARGB8888,
DRM_FORMAT_XBGR8888,
DRM_FORMAT_XRGB8888, DRM_FORMAT_XRGB8888,
DRM_FORMAT_XBGR8888,
DRM_FORMAT_ARGB8888,
DRM_FORMAT_ABGR8888,
DRM_FORMAT_XBGR2101010, DRM_FORMAT_XBGR2101010,
DRM_FORMAT_ABGR2101010, DRM_FORMAT_ABGR2101010,
DRM_FORMAT_YUYV, DRM_FORMAT_YUYV,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment