From: Jason Ekstrand Date: Tue, 8 Nov 2016 21:21:38 +0000 (-0800) Subject: intel/common: Add an is_kabylake field to gen_device_info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=767b163e478475a3c56fc7319ed0b9f5733eb7c9;p=mesa.git intel/common: Add an is_kabylake field to gen_device_info Most of the 3-D engine Kaby Lake is identical to Sky Lake. However, there are a few small differences that we need to be able to detect. Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/intel/common/gen_device_info.c b/src/intel/common/gen_device_info.c index 42677516088..9bf3cd5cc42 100644 --- a/src/intel/common/gen_device_info.c +++ b/src/intel/common/gen_device_info.c @@ -489,6 +489,7 @@ static const struct gen_device_info gen_device_info_bxt_2x6 = { static const struct gen_device_info gen_device_info_kbl_gt1 = { GEN9_FEATURES, + .is_kabylake = true, .gt = 1, .max_cs_threads = 7 * 6, @@ -498,6 +499,7 @@ static const struct gen_device_info gen_device_info_kbl_gt1 = { static const struct gen_device_info gen_device_info_kbl_gt1_5 = { GEN9_FEATURES, + .is_kabylake = true, .gt = 1, .max_cs_threads = 7 * 6, @@ -506,6 +508,7 @@ static const struct gen_device_info gen_device_info_kbl_gt1_5 = { static const struct gen_device_info gen_device_info_kbl_gt2 = { GEN9_FEATURES, + .is_kabylake = true, .gt = 2, .num_slices = 1, @@ -513,6 +516,7 @@ static const struct gen_device_info gen_device_info_kbl_gt2 = { static const struct gen_device_info gen_device_info_kbl_gt3 = { GEN9_FEATURES, + .is_kabylake = true, .gt = 3, .num_slices = 2, @@ -520,6 +524,7 @@ static const struct gen_device_info gen_device_info_kbl_gt3 = { static const struct gen_device_info gen_device_info_kbl_gt4 = { GEN9_FEATURES, + .is_kabylake = true, .gt = 4, /* diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h index 2c4faf4d0d1..f0e8750d0ea 100644 --- a/src/intel/common/gen_device_info.h +++ b/src/intel/common/gen_device_info.h @@ -41,6 +41,7 @@ struct gen_device_info bool is_haswell; bool is_cherryview; bool is_broxton; + bool is_kabylake; bool has_hiz_and_separate_stencil; bool must_use_separate_stencil;