]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Set ->is_yuv to false when num_planes == 1
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 9 Oct 2018 13:24:46 +0000 (15:24 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 24 Oct 2018 16:14:33 +0000 (18:14 +0200)
commit6479bcdd20a6074a6467e47c1fbf1139e9ed1254
treeee46d5a28ef5291c4af6e3daaee37cba41e04f43
parentb6a8b2263aa1882c3d0f6f3753b4cfc2dafbfd64
drm/vc4: Set ->is_yuv to false when num_planes == 1

When vc4_plane_state is duplicated ->is_yuv is left assigned to its
previous value, and we never set it back to false when switching to
a non-YUV format.

Fix that by setting ->is_yuv to false in the 'num_planes == 1' branch
of the vc4_plane_setup_clipping_and_scaling() function.

Fixes: 670c7768d2828 ("drm/vc4: Add support for YUV planes.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181009132446.21960-1-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_plane.c