intel/common: Add an is_kabylake field to gen_device_info
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Nov 2016 21:21:38 +0000 (13:21 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Nov 2016 16:06:33 +0000 (08:06 -0800)
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 <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/common/gen_device_info.c
src/intel/common/gen_device_info.h

index 42677516088b22584dcc0cea7db2cf8c3a01f5c9..9bf3cd5cc42ab7c72a7e4973214155b5ce7aedd1 100644 (file)
@@ -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,
 
    /*
index 2c4faf4d0d147c2f2ee901d8afe49ca1ff86e3bc..f0e8750d0eab24cdf1f37ba2b46ceecdeff1f6d4 100644 (file)
@@ -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;