[igt-dev] [PATCH i-g-t 03/17] lib/intel_device_info: Add a flag to indicate tiling 4 support
Jeevan B
jeevan.b at intel.com
Mon Feb 7 18:21:38 UTC 2022
From: Mika Kahola <mika.kahola at intel.com>
Add tiling 4 support flag for DG2 platform. This is similar that
we have defined in kernel i915_pci.c intel_device_info() for DG2.
Signed-off-by: Jeevan B <jeevan.b at intel.com>
Signed-off-by: Mika Kahola <mika.kahola at intel.com>
Signed-off-by: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
---
lib/intel_chipset.h | 3 +++
lib/intel_device_info.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 9c2f1b31..32066439 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -40,6 +40,7 @@ struct intel_device_info {
unsigned graphics_ver;
unsigned display_ver;
unsigned gt; /* 0 if unknown */
+ bool has_4tile : 1;
bool is_mobile : 1;
bool is_whitney : 1;
bool is_almador : 1;
@@ -215,4 +216,6 @@ void intel_check_pch(void);
IS_CHERRYVIEW(devid) || \
IS_BROXTON(devid)))
+#define HAS_4TILE(devid) (intel_get_device_info(devid)->has_4tile)
+
#endif /* _INTEL_CHIPSET_H */
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 05ba2d98..7b1535fd 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -420,6 +420,7 @@ static const struct intel_device_info intel_alderlake_n_info = {
static const struct intel_device_info intel_dg2_info = {
.graphics_ver = 12,
.display_ver = 13,
+ .has_4tile = true,
.is_dg2 = true,
.codename = "dg2"
};
--
2.17.1
More information about the igt-dev
mailing list