panfrost: Add panfrost_block_dim helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 8 Oct 2020 22:34:48 +0000 (18:34 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 10 Oct 2020 21:15:02 +0000 (17:15 -0400)
commit8bb1d61f276c3ee8e546c861b86cd6e6f3dd1b6f
treefd0cafffe9210cc6210cdfa587f00c9fe5c2b4fa
parentaa6a5d20e6b4c95da527358581741656fe5a5d76
panfrost: Add panfrost_block_dim helper

So we can calculate strides of block-based formats correctly. Will help
us down the road for Bifrost AFBC.

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