OSDN Git Service

drm/imx: ipuv3-plane: let drm_plane_state_to_ubo/vbo handle chroma subsampling other...
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 10:26:19 +0000 (12:26 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 20 Oct 2016 12:39:54 +0000 (14:39 +0200)
commitf2fa3536b211a420a668a239b93c6cfb7978d2ce
tree7a38b7ac0d7c3fadbf867881908db8586d9c5303
parent3fd8b292ae6b99e3e6e96df3e470b25b100741a8
drm/imx: ipuv3-plane: let drm_plane_state_to_ubo/vbo handle chroma subsampling other than 4:2:0

To support 4:2:2 or 4:4:4 chroma subsampling, divide the x/y offsets in
drm_plane_state_to_ubo/vbo only if necessary for the given pixel format.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Liu Ying <gnuiyl@gmail.com>
drivers/gpu/drm/imx/ipuv3-plane.c