mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
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>
This commit is contained in:
parent
bba62e047e
commit
b65b621062
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ pan_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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue