Skip to contentSkip to conversation

drm/i915: support 32 bit BGR formats in sprite planes

PATCH In review Jesse Barnes 2 participants 2 messages Mar 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: support 32 bit BGR formats in sprite planes

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.

---
 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -0
index f851db7..397087c 100644
@@ -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:
Signature · 1 line
1.7.4.1
#1 lore raw

<#part sign=pgpmime>

Quoted 3 lines · Jesse Barnes

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.

Merged.
ab2f9df..b250da7 drm-intel-fixes -> drm-intel-fixes

Signature · 1 line
[email protected]