Module: Mesa
Branch: main
Commit: c81acd365ed2a965741a828504d4a1498eaa3d3a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c81acd365ed2a965741a828504d4a1498eaa3d3a

Author: Jordan Justen <[email protected]>
Date:   Thu Sep 16 15:39:11 2021 -0700

intel/dev: Add display_ver and set adl-p to 13

Cc: mesa-stable
Fixes: e435511b580 ("intel/dev: Add device info for ADL GT2")
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12908>

---

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

diff --git a/src/intel/dev/intel_device_info.c 
b/src/intel/dev/intel_device_info.c
index 9c56ac4803a..5e9e86ba8e0 100644
--- a/src/intel/dev/intel_device_info.c
+++ b/src/intel/dev/intel_device_info.c
@@ -993,6 +993,7 @@ static const struct intel_device_info 
intel_device_info_adl_gt1 = {
 static const struct intel_device_info intel_device_info_adl_gt2 = {
    GFX12_GT_FEATURES(2),
    .is_alderlake = true,
+   .display_ver = 13,
 };
 
 #define GFX12_DG1_SG1_FEATURES                  \
@@ -1322,6 +1323,9 @@ intel_get_device_info_from_pci_id(int pci_id,
    if (devinfo->verx10 == 0)
       devinfo->verx10 = devinfo->ver * 10;
 
+   if (devinfo->display_ver == 0)
+      devinfo->display_ver = devinfo->ver;
+
    update_cs_workgroup_threads(devinfo);
 
    devinfo->chipset_id = pci_id;
diff --git a/src/intel/dev/intel_device_info.h 
b/src/intel/dev/intel_device_info.h
index 0dc56a6e140..d6bce7d90b6 100644
--- a/src/intel/dev/intel_device_info.h
+++ b/src/intel/dev/intel_device_info.h
@@ -51,6 +51,7 @@ struct intel_device_info
    /* Driver internal numbers used to differentiate platforms. */
    int ver;
    int verx10;
+   int display_ver;
    int revision;
    int gt;
 

Reply via email to