panfrost: Add AFBC packing support for RG formats

Only a matter of enabling it as packing itself works the same no
matter the number of components.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27471>
This commit is contained in:
Louis-Francis Ratté-Boulianne
2024-02-05 11:56:21 -05:00
committed by Marge Bot
parent c3244135fa
commit 439fce0c17
-4
View File
@@ -185,9 +185,5 @@ panfrost_afbc_can_pack(enum pipe_format format)
{
const struct util_format_description *desc = util_format_description(format);
if (desc->nr_channels != 1 && desc->nr_channels != 3 &&
desc->nr_channels != 4)
return false;
return desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB;
}