intel/dev: provide intel_device_info_is_adln helper

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25671>
This commit is contained in:
Tapani Pälli 2023-10-23 11:37:42 +03:00 committed by Marge Bot
parent ffa458ee8f
commit 3cf71ddfac
2 changed files with 9 additions and 0 deletions

View file

@ -1151,6 +1151,12 @@ static const struct intel_device_info intel_device_info_mtl_p = {
.platform = INTEL_PLATFORM_MTL_P,
};
bool
intel_device_info_is_adln(const struct intel_device_info *devinfo)
{
return devinfo == &intel_device_info_adl_n;
}
void
intel_device_info_topology_reset_masks(struct intel_device_info *devinfo)
{

View file

@ -101,6 +101,9 @@ enum intel_platform {
#define intel_device_info_is_mtl(devinfo) \
intel_platform_in_range((devinfo)->platform, MTL)
bool
intel_device_info_is_adln(const struct intel_device_info *devinfo);
struct intel_memory_class_instance {
/* Kernel backend specific class value, no translation needed yet */
uint16_t klass;