diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 64ad00fbda4..d42ea501cae 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -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)) { diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h index 1a270e3e1a9..b4032f849b2 100644 --- a/src/panfrost/lib/pan_texture.h +++ b/src/panfrost/lib/pan_texture.h @@ -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,