panfrost: Calculate header_size based on row_stride
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 4 May 2022 15:16:11 +0000 (11:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 26 May 2022 15:56:32 +0000 (15:56 +0000)
commitd11945cd857102fcdf5e572d6d431b53c84f154e
tree00fe66a2864619c09d02029e48dcc73d47dbd0b1
parent0cf6091bd019d59ed74a461a29865d496d25b6d6
panfrost: Calculate header_size based on row_stride

The header size is the header stride times the number of rows in the header
(number of tiles of superblocks). We already calculate the header stride, so
eliminate the separate header size calculation.

Delete the old header size calculation. It has no notion of wide blocks, let
alone tiled AFBC headers.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16697>
src/panfrost/lib/pan_afbc.c
src/panfrost/lib/pan_layout.c
src/panfrost/lib/pan_texture.h