ail: expose ail_get_max_tile_size
useful for sparse block size calculation Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
committed by
Marge Bot
parent
8e20875651
commit
56cd20ddea
@@ -29,7 +29,7 @@ ail_initialize_linear(struct ail_layout *layout)
|
||||
* Get the maximum tile size possible for a given block size. This satisfy
|
||||
* width * height * blocksize = 16384 = page size, so each tile is one page.
|
||||
*/
|
||||
static inline struct ail_tile
|
||||
struct ail_tile
|
||||
ail_get_max_tile_size(unsigned blocksize_B)
|
||||
{
|
||||
/* clang-format off */
|
||||
|
||||
@@ -329,6 +329,8 @@ ail_is_level_twiddled_uncompressed(const struct ail_layout *layout,
|
||||
}
|
||||
}
|
||||
|
||||
struct ail_tile ail_get_max_tile_size(unsigned blocksize_B);
|
||||
|
||||
void ail_make_miptree(struct ail_layout *layout);
|
||||
|
||||
void ail_detile(void *_tiled, void *_linear,
|
||||
|
||||
Reference in New Issue
Block a user