drm/vc4: Drop planes that have 0 destination size
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 6 Feb 2024 17:52:49 +0000 (17:52 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:36 +0000 (11:35 +0000)
commit75ed1c665e0c33d533466e53f82430a2cf2aeb3c
tree8fda9f694ffe9bbeeb2077f2ed5823c1187721c2
parent3dff33936b5970e349d31c8d2b101de89cfe03c4
drm/vc4: Drop planes that have 0 destination size

There is no point in trying to create a dlist entry for planes
that have a 0 crtc size, and it can also cause grief in the vc6
dlist generation as it takes width-1 and height-1, causing wrap
around.
Drop these planes.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_plane.c