pan/afrc: Reject AFRC(compressed)

This is not a valid combination.

Fixes: 2dae926850 ("panfrost: add utils for AFRC fixed-rate support")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35015>
(cherry picked from commit b65b621062)
This commit is contained in:
Boris Brezillon 2025-05-20 17:51:29 +02:00 committed by Eric Engestrom
parent 433a8626db
commit 9297d6e9a6
2 changed files with 5 additions and 1 deletions

View file

@ -6504,7 +6504,7 @@
"description": "pan/afrc: Reject AFRC(compressed)",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "2dae926850ee7a0920e18d773afc55b0c68eb534",
"notes": null

View file

@ -49,6 +49,10 @@ panfrost_afrc_get_format_info(enum pipe_format format)
const struct util_format_description *desc = util_format_description(format);
struct pan_afrc_format_info info = {0};
/* No AFRC(compressed) */
if (util_format_is_compressed(format))
return info;
/* No AFRC(ZS). */
if (desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS)
return info;