panfrost: Enable more tiler levels if we can

Boosts glmark2 scores on Mali G52.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11733>
This commit is contained in:
Alyssa Rosenzweig 2021-06-16 13:29:53 -04:00 committed by Marge Bot
parent fc69635516
commit 8ac4156d19
1 changed files with 5 additions and 1 deletions

View File

@ -907,8 +907,12 @@ pan_emit_bifrost_tiler(const struct panfrost_device *dev,
mali_ptr heap,
void *out)
{
unsigned max_levels = dev->tiler_features.max_levels;
assert(max_levels >= 2);
pan_pack(out, BIFROST_TILER, tiler) {
tiler.hierarchy_mask = 0x28;
/* TODO: Select hierarchy mask more effectively */
tiler.hierarchy_mask = (max_levels >= 8) ? 0xFF : 0x28;
tiler.fb_width = fb_width;
tiler.fb_height = fb_height;
tiler.heap = heap;