panfrost: Allow tiling all texture targets

Now that tiled access to 3D textures works, we can enable tiling on all texture
targets. In particular, this adds tiling support for cube maps, arrays, and 3D
textures. Previously, these would usually fall back to linear, which is hard on
the caches.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15803>
This commit is contained in:
Alyssa Rosenzweig 2022-04-07 14:48:48 -04:00 committed by Marge Bot
parent 58a2174f8e
commit f96110363a

View file

@ -427,7 +427,7 @@ panfrost_should_tile(struct panfrost_device *dev,
if (MIN2(pres->base.width0, pres->base.height0) < 2)
return false;
bool can_tile = panfrost_is_2d(pres)
bool can_tile = (pres->base.target != PIPE_BUFFER)
&& ((pres->base.bind & ~valid_binding) == 0);
return can_tile && (pres->base.usage != PIPE_USAGE_STREAM);