Mesa (master): intel/dev: Don't consider all TGL SKUs as GT1 only

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 31 00:50:47 UTC 2020


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

Author: Satyeshwar Singh <satyeshwar.singh at intel.com>
Date:   Thu May 28 00:44:26 2020 -0700

intel/dev: Don't consider all TGL SKUs as GT1 only

We should be passing _gt instead of 1 to GEN12_FEATURES or else all TGL
SKUs will be considered as gt1 only.

Fixes: 54996ad4927 ("intel/dev: Split .num_subslices out of GEN12_FEATURES macro")
Signed-off-by: Satyeshwar Singh <satyeshwar.singh at intel.com>
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5261>

---

 src/intel/dev/gen_device_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index 83061211287..8fd87b5d53d 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -1031,7 +1031,7 @@ static const struct gen_device_info gen_device_info_ehl_4 = {
    .num_subslices = dual_subslices(1)
 
 #define GEN12_GT_FEATURES(_gt)                                  \
-   GEN12_FEATURES(1, 1, _gt == 1 ? 4 : 8),                      \
+   GEN12_FEATURES(_gt, 1, _gt == 1 ? 4 : 8),                    \
    .num_subslices = dual_subslices(_gt == 1 ? 2 : 6)
 
 static const struct gen_device_info gen_device_info_tgl_gt1 = {



More information about the mesa-commit mailing list