mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +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> (cherry picked from commitb65b621062)
This commit is contained in:
parent
433a8626db
commit
9297d6e9a6
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue