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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user