diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-12-08 11:32:14 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-12-14 03:00:22 -0500 |
commit | 1d977b06f880efced3d15056498fb9ac8ae39d07 (patch) | |
tree | 2e864de6aad012e1d396ed4e21252f9dc35841dd | |
parent | 9f9499ae8e6415cefc4fe0a96ad0e27864353c89 (diff) |
drm/omap: fix fbdev pix format to support all platforms
omap_fbdev always creates a framebuffer with ARGB8888 pixel format. On
OMAP3 we have VIDEO1 overlay that does not support ARGB8888, and on
OMAP2 none of the overlays support ARGB888.
This patch changes the omap_fbdev's fb to XRGB8888, which is supported
by all platforms.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index b8e4cdec28c3..24f92bea39c7 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c | |||
@@ -112,11 +112,8 @@ static int omap_fbdev_create(struct drm_fb_helper *helper, | |||
112 | dma_addr_t paddr; | 112 | dma_addr_t paddr; |
113 | int ret; | 113 | int ret; |
114 | 114 | ||
115 | /* only doing ARGB32 since this is what is needed to alpha-blend | ||
116 | * with video overlays: | ||
117 | */ | ||
118 | sizes->surface_bpp = 32; | 115 | sizes->surface_bpp = 32; |
119 | sizes->surface_depth = 32; | 116 | sizes->surface_depth = 24; |
120 | 117 | ||
121 | DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, | 118 | DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, |
122 | sizes->surface_height, sizes->surface_bpp, | 119 | sizes->surface_height, sizes->surface_bpp, |