panfrost: Add AFBC slice.body_size and slice.{row,surface}_stride fields
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 16 Dec 2020 09:22:20 +0000 (10:22 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 4 Jan 2021 16:05:42 +0000 (17:05 +0100)
commite8b997e175827d8ee907b3813d1e5a05388c606a
tree705dd64f1060296b322c501cbe3a8ea43bda0c0b
parent7e37a31741218f325b2f02dc308a23fe5d40858c
panfrost: Add AFBC slice.body_size and slice.{row,surface}_stride fields

Those are needed for render target and texture descriptors and can't be
easily extracted from the other fields present in panfrost_slice

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8125>
src/gallium/drivers/panfrost/pan_resource.c
src/panfrost/lib/pan_afbc.c
src/panfrost/lib/pan_texture.h