Mesa (master): intel/common: Add an is_kabylake field to gen_device_info

Jason Ekstrand jekstrand at kemper.freedesktop.org
Tue Nov 22 16:07:24 UTC 2016


Module: Mesa
Branch: master
Commit: 767b163e478475a3c56fc7319ed0b9f5733eb7c9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=767b163e478475a3c56fc7319ed0b9f5733eb7c9

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue Nov  8 13:21:38 2016 -0800

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 <jason at jlekstrand.net>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/intel/common/gen_device_info.c | 5 +++++
 src/intel/common/gen_device_info.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/intel/common/gen_device_info.c b/src/intel/common/gen_device_info.c
index 4267751..9bf3cd5 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 2c4faf4..f0e8750 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;




More information about the mesa-commit mailing list