Mesa (master): panfrost: Filter compressed texture formats
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 13 16:19:59 UTC 2020
Module: Mesa
Branch: master
Commit: 6da405ca7773745cdb383b5bb43a6a1575eea4f3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6da405ca7773745cdb383b5bb43a6a1575eea4f3
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Fri Jul 10 17:18:00 2020 -0400
panfrost: Filter compressed texture formats
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5856>
---
src/gallium/drivers/panfrost/pan_screen.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 472529e52ad..1cb7fc3cbda 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -496,6 +496,14 @@ panfrost_is_format_supported( struct pipe_screen *screen,
| PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_SAMPLER_VIEW);
struct panfrost_format fmt = panfrost_pipe_format_table[format];
+
+ /* Also check that compressed texture formats are supported on this
+ * particular chip. They may not be depending on system integration
+ * differences. */
+
+ if (!panfrost_supports_compressed_format(dev, fmt.hw))
+ return false;
+
return fmt.hw && ((relevant_bind & ~fmt.bind) == 0);
}
More information about the mesa-commit
mailing list