panfrost: Move MALI_EXTRACT_INDEX to pan_format.h

Move MALI_EXTRACT_INDEX to pan_format.h where all format-related macros
live and kill the unused MALI_EXTRACT_TYPE and MALI_FORMAT_COMPRESSED
macros.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32899>
This commit is contained in:
Boris Brezillon 2025-01-06 14:49:33 +01:00 committed by Marge Bot
parent 2fdbdc270b
commit e48f2da7da
2 changed files with 2 additions and 4 deletions

View file

@ -32,10 +32,6 @@
#include <stdbool.h>
#include <stdint.h>
#define MALI_FORMAT_COMPRESSED (0 << 5)
#define MALI_EXTRACT_TYPE(fmt) ((fmt)&0xe0)
#define MALI_EXTRACT_INDEX(pixfmt) (((pixfmt) >> 12) & 0xFF)
#define MAX_MIP_LEVELS (17)
#define MAX_IMAGE_PLANES (3)

View file

@ -192,6 +192,8 @@ struct pan_decomposed_swizzle
#endif
#define MALI_EXTRACT_INDEX(pixfmt) (((pixfmt) >> 12) & 0xFF)
static inline bool panfrost_format_is_yuv(enum pipe_format f)
{
enum util_format_layout layout = util_format_description(f)->layout;