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>
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) {