diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-18 12:10:39 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-18 15:25:40 -0700 |
commit | e797caa0dd7a63397354073559637843ae78135b (patch) | |
tree | 190f381c5a5caac982072634488ee4dd652277be /src | |
parent | f475b7998030529c8151343fca1a7a05c178e386 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_tiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |