isl: Add a macro for number of maximum planes of modifiers

We will need it in multiple places in the following changes.

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36825>
This commit is contained in:
Jianxun Zhang
2025-10-26 20:14:40 -07:00
parent fa8f98138a
commit 33074e3ebe

View File

@@ -2596,6 +2596,9 @@ uint32_t
isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
uint64_t modifier);
/* The maximum number of planes of an Intel modifier in drm_fourcc.h. */
#define ISL_MODIFIER_MAX_PLANES 4
/* Return the number of planes used by an image with the given parameters. */
uint32_t
isl_drm_modifier_get_plane_count(const struct intel_device_info *devinfo,