vc4/hvs: Fix lbm size calculation for yuv
authorDom Cobley <popcornmix@gmail.com>
Fri, 16 Feb 2024 15:57:41 +0000 (15:57 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:39 +0000 (11:35 +0000)
commit1fec5aa6ef7497ff57d5e52e126ab370811ec024
tree1df81740f73444deaa52a328f0fbc08c49086661
parent15b5c2d97cae6debf87352074b0d6edde1319724
vc4/hvs: Fix lbm size calculation for yuv

The code was reducing the number of components by one when we were not
blending with alpha. But that only makes sense if the components include
alpha.

For YUV, we were reducing the number of components for Y from one to zero
which resulted in no lbm space being allocated.

Fixes: https://github.com/raspberrypi/linux/issues/5912
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/gpu/drm/vc4/vc4_plane.c