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

Author: Mark Janes <[email protected]>
Date:   Tue Apr 18 12:20:07 2023 -0700

intel/dev: report stepping for TGL systems

Workaround 14010672564 requires a check for the TGL B0 stepping.

Reviewed-by: Rohan Garg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22458>

---

 src/intel/dev/intel_device_info.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/intel/dev/intel_device_info.c 
b/src/intel/dev/intel_device_info.c
index 0c35076eb48..0cc9bf5019c 100644
--- a/src/intel/dev/intel_device_info.c
+++ b/src/intel/dev/intel_device_info.c
@@ -1653,6 +1653,17 @@ intel_device_info_wa_stepping(struct intel_device_info 
*devinfo)
       if (devinfo->revision < 4)
          return INTEL_STEPPING_A0;
       return INTEL_STEPPING_B0;
+   } else if (devinfo->platform == INTEL_PLATFORM_TGL) {
+      switch (devinfo->revision) {
+      case 0:
+         return INTEL_STEPPING_A0;
+      case 1:
+         return INTEL_STEPPING_B0;
+      case 3:
+         return INTEL_STEPPING_C0;
+      default:
+         return INTEL_STEPPING_RELEASE;
+      }
    }
 
    /* all other platforms support only released steppings */

Reply via email to