panfrost: Use row stride to calculate slice size

This expresses what's actually happening. Equivalent to the old calculation due
to some cancellation.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16201>
This commit is contained in:
Alyssa Rosenzweig 2022-04-27 11:37:40 -04:00 committed by Marge Bot
parent 0b788e2ee4
commit 3a4207dde6
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ pan_image_layout_init(struct pan_image_layout *layout,
slice->line_stride = row_stride / block_size.height;
slice->row_stride = row_stride;
unsigned slice_one_size = slice->line_stride * effective_height;
unsigned slice_one_size = row_stride * (effective_height / block_size.height);
/* Compute AFBC sizes if necessary */
if (afbc) {