diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-19 11:19:15 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 08:40:52 -0700 |
commit | b45eb2775ea180fde01d0abe50f6ccf8ddb5b84d (patch) | |
tree | 3f5594db83748fecbca7b65b08e728ca69f27502 /src/panfrost/encoder/pan_encoder.h | |
parent | 13d07978ff8c35897f4164d9455c7410ade9f4e2 (diff) |
panfrost: Move pan_tiler.c outside of Gallium
The routines in this file may be shared with Vulkan.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/encoder/pan_encoder.h')
-rw-r--r-- | src/panfrost/encoder/pan_encoder.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/panfrost/encoder/pan_encoder.h b/src/panfrost/encoder/pan_encoder.h index aba3ebacf2c..0e135d0f511 100644 --- a/src/panfrost/encoder/pan_encoder.h +++ b/src/panfrost/encoder/pan_encoder.h @@ -53,4 +53,17 @@ panfrost_pack_work_groups_fused( unsigned size_y, unsigned size_z); +/* Tiler structure size computation */ + +unsigned +panfrost_tiler_header_size(unsigned width, unsigned height, uint8_t mask); + +unsigned +panfrost_tiler_body_size(unsigned width, unsigned height, uint8_t mask); + +unsigned +panfrost_choose_hierarchy_mask( + unsigned width, unsigned height, + unsigned vertex_count); + #endif |