panfrost: Extract afbc_stride_blocks helper
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 4 May 2022 12:14:37 +0000 (08:14 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 26 May 2022 15:56:32 +0000 (15:56 +0000)
commitd8a4c9b5057831ccb62416800b2e9f85331dc002
tree9ce657c1f1f22a586f1f1b3c18f261ceea6d06bd
parent9773ed1dc74b98019640d909cdc2b5d6cffae85a
panfrost: Extract afbc_stride_blocks helper

Let's keep all the AFBC computations inside the layout code, to keep pan_cs
dumb. This helper will need some extension for tiled AFBC.

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