diff options
author | Karolina Drobnik <karolina.drobnik@intel.com> | 2022-06-15 11:32:47 +0200 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-06-15 14:18:23 -0700 |
commit | d2df7e4ee648822ac0750aeb09f815ef449f4860 (patch) | |
tree | 38e421524dece09a1cbe911d81901ef94aff7cd6 | |
parent | b96bf5a0307fc0bdbf6c8e86872817306e102883 (diff) |
lib/i915: Fix ATS-M definitions
Instead of using a separate "is_ats_m" flag, reuse "is_dg2" in ATS-M
intel_device_info definition. Delete is_ats_m in intel_device_info struct
definition and IS_ATS_M() macro, as they are no longer needed.
Signed-off-by: Karolina Drobnik <karolina.drobnik@intel.com>
Acked-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r-- | lib/intel_chipset.h | 2 | ||||
-rw-r--r-- | lib/intel_device_info.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index de4749e1..06f73211 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -84,7 +84,6 @@ struct intel_device_info { bool is_raptorlake_s : 1; bool is_alderlake_p : 1; bool is_alderlake_n : 1; - bool is_ats_m : 1; const char *codename; }; @@ -191,7 +190,6 @@ void intel_check_pch(void); #define IS_RAPTORLAKE_S(devid) (intel_get_device_info(devid)->is_raptorlake_s) #define IS_ALDERLAKE_P(devid) (intel_get_device_info(devid)->is_alderlake_p) #define IS_ALDERLAKE_N(devid) (intel_get_device_info(devid)->is_alderlake_n) -#define IS_ATS_M(devid) (intel_get_device_info(devid)->is_ats_m) #define IS_GEN(devid, x) (intel_get_device_info(devid)->graphics_ver == x) #define AT_LEAST_GEN(devid, x) (intel_get_device_info(devid)->graphics_ver >= x) diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 5b1da33f..bfdd9fa5 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -430,7 +430,7 @@ static const struct intel_device_info intel_alderlake_n_info = { static const struct intel_device_info intel_ats_m_info = { .graphics_ver = 12, .display_ver = 0, /* no display support */ - .is_ats_m = true, + .is_dg2 = true, .has_4tile = true, .codename = "ats_m", .has_flatccs = true, |