mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
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:
parent
2fdbdc270b
commit
e48f2da7da
2 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue