]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: plane: Expand the lower bits by repeating the higher bits
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 17 May 2018 13:37:59 +0000 (15:37 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 17 May 2018 14:22:43 +0000 (15:22 +0100)
commita163f3ac2890a265d144a1922b9028ad0534a7e2
treec7117feb19b0164f46d8dd73adb122097de614f4
parent9b02d52326b1edc3ae03e71354d8089cf5353a38
drm/vc4: plane: Expand the lower bits by repeating the higher bits

The vc4 HVS uses an internal RGB888 representation of the frames, and will
by default expand formats using a lower depth using zeros.

This causes an issue when we try to use other compositing software such as
pixman that fill the missing bits by repeating the higher significant bits.
As such, we can't check the display output in a reliable way by doing a
software composition and an hardware one and compare both.

To prevent this, force the same behaviour so that we can do such things.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517133759.25626-1-maxime.ripard@bootlin.com
drivers/gpu/drm/vc4/vc4_plane.c