]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Fix formats usable by the primary plane
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 19 Sep 2016 20:17:50 +0000 (22:17 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 Sep 2016 07:10:54 +0000 (10:10 +0300)
commit65123a4148fe6bbfb6a06f52225433d6acc4b284
tree3b1a7c9917deb1709da43d64113e0b776e0111a2
parent2666c68cce23582a41243b6affbcbce96208142a
drm/sun4i: Fix formats usable by the primary plane

Even though all our planes can support the ARGB formats, the lowest plane
(ie the primary plane) cannot use the alpha component, otherwise it will
just result in the transparent area being entirely black.

Since some applications will still require the ARGB format, let's force the
format to XRGB to drop the alpha component entirely.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_backend.c
drivers/gpu/drm/sun4i/sun4i_layer.c