From 46624f277e4ba1ce92d9747041719134ba023824 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 15 May 2020 19:21:52 -0400 Subject: [PATCH] panfrost: Enable AFBC for Z24X8 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/encoder/pan_afbc.c | 7 ++----- 1 file 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 */ -- 2.30.2