From c0f3bac8260d0f8f9dcc8a038edd64295a2f99a2 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 6 Jan 2025 14:51:58 +0100 Subject: [PATCH] panfrost: Move MAX_{MIP_LEVELS,IMAGE_PLANES} to pan_texture.h This is where those macros are used, and those are the last two definitions preventing us from dropping panfrost-job.h. Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/include/panfrost-job.h | 4 ---- src/panfrost/lib/pan_texture.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 3d8c5012e18..7e06879599d 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -32,8 +32,4 @@ #include #include -#define MAX_MIP_LEVELS (17) - -#define MAX_IMAGE_PLANES (3) - #endif /* __PANFROST_JOB_H__ */ diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h index 7138c1784cf..9715fa7197d 100644 --- a/src/panfrost/lib/pan_texture.h +++ b/src/panfrost/lib/pan_texture.h @@ -44,6 +44,9 @@ extern "C" { #endif +#define MAX_MIP_LEVELS 17 +#define MAX_IMAGE_PLANES 3 + #define PAN_MODIFIER_COUNT 14 extern uint64_t pan_best_modifiers[PAN_MODIFIER_COUNT];