panfrost: Expose panfrost_block_dim()

So we can use it from pan_resource.c to retrieve the tile size based on
a modifier.

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/7653>
This commit is contained in:
Boris Brezillon
2020-11-21 15:44:10 +01:00
parent 4d0cd48fab
commit 543ad77e6f
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ panfrost_estimate_texture_payload_size(
* line stride as such.
*/
static unsigned
unsigned
panfrost_block_dim(uint64_t modifier, bool width, unsigned plane)
{
if (!drm_is_afbc(modifier)) {
+3
View File
@@ -88,6 +88,9 @@ panfrost_afbc_header_size(unsigned width, unsigned height);
bool
panfrost_afbc_can_ytr(enum pipe_format format);
unsigned
panfrost_block_dim(uint64_t modifier, bool width, unsigned plane);
unsigned
panfrost_estimate_texture_payload_size(
unsigned first_level, unsigned last_level,