Mesa (master): intel/dev: flag the Elkhart Lake platform

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 15 13:15:04 UTC 2019


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

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Oct 30 10:59:35 2019 +0200

intel/dev: flag the Elkhart Lake platform

We'll use this for performance metrics which are different from ICL.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

---

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

diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index db9381611a6..1ad2eed5e10 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -66,6 +66,7 @@ gen_device_name_to_pci_device_id(const char *name)
       { "cml", 0x9b41 },
       { "cnl", 0x5a52 },
       { "icl", 0x8a52 },
+      { "ehl", 0x4500 },
       { "tgl", 0x9a49 },
    };
 
@@ -948,6 +949,7 @@ static const struct gen_device_info gen_device_info_icl_1x8 = {
 
 static const struct gen_device_info gen_device_info_ehl_4x8 = {
    GEN11_FEATURES(1, 1, subslices(4), 4),
+   .is_elkhartlake = true,
    .urb = {
       .size = 512,
       .min_entries = {
@@ -969,6 +971,7 @@ static const struct gen_device_info gen_device_info_ehl_4x8 = {
  */
 static const struct gen_device_info gen_device_info_ehl_4x4 = {
    GEN11_FEATURES(1, 1, subslices(4), 4),
+   .is_elkhartlake = true,
    .urb = {
       .size = 512,
       .min_entries = {
@@ -991,6 +994,7 @@ static const struct gen_device_info gen_device_info_ehl_4x4 = {
  */
 static const struct gen_device_info gen_device_info_ehl_2x4 = {
    GEN11_FEATURES(1, 1, subslices(2), 4),
+   .is_elkhartlake = true,
    .urb = {
       .size = 512,
       .min_entries = {
diff --git a/src/intel/dev/gen_device_info.h b/src/intel/dev/gen_device_info.h
index 4389b8e2931..65bef8f158e 100644
--- a/src/intel/dev/gen_device_info.h
+++ b/src/intel/dev/gen_device_info.h
@@ -62,6 +62,7 @@ struct gen_device_info
    bool is_geminilake;
    bool is_coffeelake;
    bool is_cannonlake;
+   bool is_elkhartlake;
 
    bool has_hiz_and_separate_stencil;
    bool must_use_separate_stencil;




More information about the mesa-commit mailing list