Mesa (staging/19.3): ac/gpu_info: always use distributed tessellation on gfx10

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 9 18:53:41 UTC 2020


Module: Mesa
Branch: staging/19.3
Commit: 5657ca2fe7f9fcca0d700354d740cb2d20a78983
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5657ca2fe7f9fcca0d700354d740cb2d20a78983

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Dec 30 21:27:02 2019 -0500

ac/gpu_info: always use distributed tessellation on gfx10

This might fix a hang on Navi14.

Cc: 19.2 19.3 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
(cherry picked from commit 186335d17d69c4a6b0ad69b82fe0744e4910645e)

---

 src/amd/common/ac_gpu_info.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 9caa51cb8b9..06f09fce74e 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -506,8 +506,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 ||




More information about the mesa-commit mailing list