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:
parent
0b788e2ee4
commit
3a4207dde6
|
@ -261,7 +261,7 @@ pan_image_layout_init(struct pan_image_layout *layout,
|
||||||
slice->line_stride = row_stride / block_size.height;
|
slice->line_stride = row_stride / block_size.height;
|
||||||
slice->row_stride = row_stride;
|
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 */
|
/* Compute AFBC sizes if necessary */
|
||||||
if (afbc) {
|
if (afbc) {
|
||||||
|
|
Loading…
Reference in New Issue