Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5069>
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 */