diff options
author | Samuel Pitoiset <[email protected]> | 2019-08-02 12:13:20 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-08-27 08:04:11 +0200 |
commit | c08401f0353e941691a5f40945cbdd04030a94c7 (patch) | |
tree | 8b2d2aecae0494fb53671abc34f97c0a35e14641 /src/amd/common/ac_gpu_info.c | |
parent | d62d2840c42d0eb3433c6c0c8bfe8d506c0475b9 (diff) |
ac: add has_distributed_tess to ac_gpu_info
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.c')
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index ed6e273c598..a3f1afe1f04 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -447,6 +447,9 @@ 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; + /* Get the number of good compute units. */ info->num_good_compute_units = 0; for (i = 0; i < info->max_se; i++) |