diff options
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2019-11-27 08:31:16 -0500 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2019-12-03 04:25:04 +0000 |
commit | 9fb0904712a5d64ecd012f65dfda4f36819716d9 (patch) | |
tree | abfd96c6e8f1ab5d60b6276e23647543755899f2 /src/panfrost/encoder/pan_encoder.h | |
parent | 63cd5b8198cab169f8ba9f6250281a5f705fa6bb (diff) |
panfrost: Implement pan_tiler for non-hierarchy GPUs
The algorithm is as described. Nothing fancy here, just need to add some
new code paths depending on which model we're running on.
Tomeu:
- Also disable tiling when !hierarchy and !vertex_count
- Avoid creating polygon lists smaller than the minimum when
vertex_count > 0 but tile size smaller than 16 byte
- Take into account tile size when calculating polygon list size for
!hierarchy
- Allow 0-sized tiles in a single dimension
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Diffstat (limited to 'src/panfrost/encoder/pan_encoder.h')
-rw-r--r-- | src/panfrost/encoder/pan_encoder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panfrost/encoder/pan_encoder.h b/src/panfrost/encoder/pan_encoder.h index 8aa2df7240b..ceff2e949de 100644 --- a/src/panfrost/encoder/pan_encoder.h +++ b/src/panfrost/encoder/pan_encoder.h @@ -56,14 +56,14 @@ panfrost_pack_work_groups_fused( /* Tiler structure size computation */ unsigned -panfrost_tiler_header_size(unsigned width, unsigned height, unsigned mask); +panfrost_tiler_header_size(unsigned width, unsigned height, unsigned mask, bool hierarchy); unsigned -panfrost_tiler_full_size(unsigned width, unsigned height, unsigned mask); +panfrost_tiler_full_size(unsigned width, unsigned height, unsigned mask, bool hierarchy); unsigned panfrost_choose_hierarchy_mask( unsigned width, unsigned height, - unsigned vertex_count); + unsigned vertex_count, bool hierarchy); #endif |