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>
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;