]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/i915: support 32 bit BGR formats in sprite planes
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Mar 2012 16:49:29 +0000 (08:49 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 7 Mar 2012 18:52:13 +0000 (10:52 -0800)
intel_framebuffer_init does some basic sanity checking of the pixel format,
but is used by the plane code in addition to the primary crtc.  So it
needs to contain any formats used in either place.

Add the XBGR8888 format to the checklist so the plane code can use it.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c

index f851db7be2cc20ccc279b794bf78e65d566d1573..397087cf689e8210b64fb45f0e19f54b3fd1d13c 100644 (file)
@@ -7828,6 +7828,7 @@ int intel_framebuffer_init(struct drm_device *dev,
        case DRM_FORMAT_RGB332:
        case DRM_FORMAT_RGB565:
        case DRM_FORMAT_XRGB8888:
+       case DRM_FORMAT_XBGR8888:
        case DRM_FORMAT_ARGB8888:
        case DRM_FORMAT_XRGB2101010:
        case DRM_FORMAT_ARGB2101010: