From: Alyssa Rosenzweig Date: Thu, 18 Jul 2019 19:10:39 +0000 (-0700) Subject: panfrost: Zero polygon list body size for clears X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e797caa0dd7a63397354073559637843ae78135b;p=mesa.git 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 --- diff --git a/src/gallium/drivers/panfrost/pan_tiler.c b/src/gallium/drivers/panfrost/pan_tiler.c index fc0de7d8842..25f8490cb43 100644 --- a/src/gallium/drivers/panfrost/pan_tiler.c +++ b/src/gallium/drivers/panfrost/pan_tiler.c @@ -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); }