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:
@@ -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)) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user