intel/dev: Add intel_device_info_is_mtl_or_arl()
MTL and ARL share many code paths, and this macro will make it easier to check for either of them. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27352>
This commit is contained in:
@@ -109,6 +109,9 @@ enum intel_platform {
|
||||
#define intel_device_info_is_arl(devinfo) \
|
||||
intel_platform_in_range((devinfo)->platform, ARL)
|
||||
|
||||
#define intel_device_info_is_mtl_or_arl(devinfo) \
|
||||
(intel_device_info_is_mtl(devinfo) || intel_device_info_is_arl(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