intel: Add and use isl_drm_modifier_get_plane_count
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 21 Jun 2023 17:59:50 +0000 (13:59 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 20:53:26 +0000 (20:53 +0000)
commit47565d31e1446ba872f4d6473feea2caa406db84
treea8708617f23f9ada21668cff964a9dfccbeaf5d2
parente50af52e3d9ad7a0a2bdeef5cfea19c973b25aa4
intel: Add and use isl_drm_modifier_get_plane_count

We're going to enable the DG2_RC_CCS modifier in anv. Add and use this
function to prepare for the new plane count that comes with that
modifier.

iris is left alone for now because it supports more modifiers than
isl_drm_modifier_get_score is aware of.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24120>
src/intel/isl/isl.h
src/intel/isl/isl_drm.c
src/intel/vulkan/anv_formats.c