diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-11-25 19:49:52 -0500 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2020-12-01 15:33:03 -0500 |
commit | 8ae3ad95ef3021d50be7778d3a879cd852980648 (patch) | |
tree | 683d87e66a1eab172eeceb082be3e97b9c42fc44 | |
parent | 623ea8153018e7874bb133921c5da7d9ce546a08 (diff) |
ac: enable late allocation on VanGogh to increase perf
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7721>
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index e07545deb97..8eab2c73029 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -930,8 +930,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info, info->num_physical_sgprs_per_simd = 128 * info->max_wave64_per_simd; info->min_sgpr_alloc = 128; info->sgpr_alloc_granularity = 128; - /* Don't use late alloc on small chips. */ - info->use_late_alloc = info->max_render_backends > 4; + info->use_late_alloc = true; /* APUs benefit too. */ } else if (info->chip_class >= GFX8) { info->num_physical_sgprs_per_simd = 800; info->min_sgpr_alloc = 16; |