intel/dev: Don't consider all TGL SKUs as GT1 only
authorSatyeshwar Singh <satyeshwar.singh@intel.com>
Thu, 28 May 2020 07:44:26 +0000 (00:44 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 31 May 2020 00:24:58 +0000 (17:24 -0700)
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@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5261>

src/intel/dev/gen_device_info.c

index 830612112875d466707531175dbee92727aa6904..8fd87b5d53dd15c2ae428c6f73f0ab6bcd1153d4 100644 (file)
@@ -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 = {