]> 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)
commitd1df1d5100fcb63864c534c396a7718db78466f4
treec7117feb19b0164f46d8dd73adb122097de614f4
parent2c2dde7e20f8702d6c54f0946bdf0f9530deaa13
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