mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
58a2174f8e
commit
f96110363a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue