panfrost: Add methods to determine slice and body alignment
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Thu, 31 Aug 2023 15:19:45 +0000 (11:19 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 14:25:30 +0000 (14:25 +0000)
commit39efd7c24564882c5b859e946d7bfabd1de1367d
tree229df992cbd20c47913ef8303b4e9cb7c88facb1
parent6012bde0fc7e3c94c5efcd8dd6a408936a42435f
panfrost: Add methods to determine slice and body alignment

Those methods are needed to have the same alignment everywhere
without hard-coding the values

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25012>
src/panfrost/lib/pan_layout.c
src/panfrost/lib/pan_texture.h