diff options
-rw-r--r-- | src/panfrost/encoder/pan_afbc.c | 7 |
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 */ |