panfrost: Zero polygon list body size for clears

There's no polygons, so you can't have any size to the polygon list,
although there is a minimal header.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-07-18 12:10:39 -07:00
parent f475b79980
commit e797caa0dd

View file

@ -264,6 +264,10 @@ panfrost_tiler_header_size(unsigned width, unsigned height, uint8_t mask)
unsigned
panfrost_tiler_body_size(unsigned width, unsigned height, uint8_t mask)
{
/* No levels means no body */
if (!mask)
return 0x00;
unsigned header_size = panfrost_tiler_header_size(width, height, mask);
return ALIGN_POT(header_size * 512 / 8, 512);
}