ac/gpu_info: always use distributed tessellation on gfx10
authorMarek Olšák <marek.olsak@amd.com>
Tue, 31 Dec 2019 02:27:02 +0000 (21:27 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 8 Jan 2020 20:48:32 +0000 (15:48 -0500)
This might fix a hang on Navi14.

Cc: 19.2 19.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/amd/common/ac_gpu_info.c

index 139cb51f95832b6ca831c33f7125c363a5e4e6de..82a6cfb825df09da09f1e78055ddae9017eee28a 100644 (file)
@@ -516,8 +516,8 @@ bool ac_query_gpu_info(int fd, void *dev_p,
         */
        info->has_clear_state = info->chip_class >= GFX7;
 
-       info->has_distributed_tess = info->chip_class >= GFX8 &&
-                                    info->max_se >= 2;
+       info->has_distributed_tess = info->chip_class >= GFX10 ||
+                                    (info->chip_class >= GFX8 && info->max_se >= 2);
 
        info->has_dcc_constant_encode = info->family == CHIP_RAVEN2 ||
                                        info->family == CHIP_RENOIR ||