Mesa (main): panfrost: Remove bpp check for tiling
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 16 14:13:59 UTC 2022
Module: Mesa
Branch: main
Commit: 3ee08270f3fe72baec72b06a1258d94ef0688e24
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ee08270f3fe72baec72b06a1258d94ef0688e24
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Thu Apr 7 14:02:53 2022 -0400
panfrost: Remove bpp check for tiling
All pixel formats are now tileable.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15803>
---
src/gallium/drivers/panfrost/pan_resource.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index baf9514d047..2f7a9bf5cc1 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -419,14 +419,7 @@ panfrost_should_tile(struct panfrost_device *dev,
PIPE_BIND_SCANOUT |
PIPE_BIND_SHARED;
- unsigned bpp = util_format_get_blocksizebits(fmt);
-
- bool is_sane_bpp =
- bpp == 8 || bpp == 16 || bpp == 24 || bpp == 32 ||
- bpp == 64 || bpp == 128;
-
bool can_tile = panfrost_is_2d(pres)
- && is_sane_bpp
&& ((pres->base.bind & ~valid_binding) == 0);
return can_tile && (pres->base.usage != PIPE_USAGE_STREAM);
More information about the mesa-commit
mailing list