[igt-dev] [PATCH v3 1/2] lib/intel_chipset: Add AT_LEAST_DISPLAY for display version compare

Mohammed Thasleem mohammed.thasleem at intel.com
Fri Dec 1 10:07:24 UTC 2023


Added AT_LEAST_DISPLAY check for display version compare.

Cc: Swati Sharma <swati2.sharma at intel.com>
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
 lib/intel_chipset.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 1edc8e92c..3f2534519 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -208,6 +208,7 @@ void intel_check_pch(void);
 
 #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)
+#define AT_LEAST_DISPLAY(devid, x) (intel_get_device_info(devid)->display_ver >= x)
 
 #define IS_GEN2(devid)		IS_GEN(devid, 2)
 #define IS_GEN3(devid)		IS_GEN(devid, 3)
-- 
2.25.1



More information about the igt-dev mailing list