mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 05:48:04 +02:00
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:
parent
f475b79980
commit
e797caa0dd
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue