[Libva] [Libva-intel-driver][PATCH 02/10] Add a flag for skylake in struct intel_device_info
Xiang, Haihao
haihao.xiang at intel.com
Wed May 4 02:58:57 UTC 2016
In addition, add IS_SKL() and IS_BXT() for later usage
Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley at intel.com>
---
src/i965_device_info.c | 2 ++
src/intel_driver.h | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/src/i965_device_info.c b/src/i965_device_info.c
index c777a0d..5303643 100644
--- a/src/i965_device_info.c
+++ b/src/i965_device_info.c
@@ -602,6 +602,8 @@ static const struct intel_device_info skl_device_info = {
.urb_size = 4096,
.max_wm_threads = 64, /* per PSD */
+
+ .is_skylake = 1,
};
static const struct intel_device_info bxt_device_info = {
diff --git a/src/intel_driver.h b/src/intel_driver.h
index 4b5afec..07a2274 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -136,6 +136,7 @@ struct intel_device_info
unsigned int is_baytrail : 1; /* gen7 */
unsigned int is_haswell : 1; /* gen7 */
unsigned int is_cherryview : 1; /* gen8 */
+ unsigned int is_skylake : 1; /* gen9 */
unsigned int is_broxton : 1; /* gen9 */
unsigned int is_kabylake : 1; /* gen9p5 */
};
@@ -199,6 +200,10 @@ struct intel_region
#define IS_GEN9(device_info) (device_info->gen == 9)
+#define IS_SKL(device_info) (device_info->is_skylake)
+
+#define IS_BXT(device_info) (device_info->is_broxton)
+
#define IS_KBL(device_info) (device_info->is_kabylake)
#endif /* _INTEL_DRIVER_H_ */
--
1.9.1
More information about the Libva
mailing list