summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2020-05-15 19:21:52 -0400
committerMarge Bot <eric+marge@anholt.net>2020-05-19 18:09:26 +0000
commit46624f277e4ba1ce92d9747041719134ba023824 (patch)
tree1884a622b29ffdd5282c8d602f76378f5d21236e
parent82792ef19fd757bcc5571db875098d2f272f1f86 (diff)
panfrost: Enable AFBC for Z24X8
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5069>
-rw-r--r--src/panfrost/encoder/pan_afbc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/panfrost/encoder/pan_afbc.c b/src/panfrost/encoder/pan_afbc.c
index cb429e4f8c0..26ba7489ec3 100644
--- a/src/panfrost/encoder/pan_afbc.c
+++ b/src/panfrost/encoder/pan_afbc.c
@@ -92,12 +92,9 @@ panfrost_format_supports_afbc(enum pipe_format format)
if (util_format_is_rgba8_variant(desc))
return true;
- /* Z32/Z16/S8 are all compressible as well, but they are implemented as
- * Z24S8 with wasted bits. So Z24S8 is the only format we actually need
- * to handle compressed, and we can make the gallium frontend deal with
- * the rest. */
+ /* Only Z24S8 variants are compressible as Z/S */
- if (format == PIPE_FORMAT_Z24_UNORM_S8_UINT)
+ if (panfrost_is_z24s8_variant(format))
return true;
/* TODO: AFBC of other formats */