Mesa (master): radv/gfx10: enable all CUs if NGG is never used
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 15 08:23:44 UTC 2020
Module: Mesa
Branch: master
Commit: 53b50be35cd11dfa1209de63e997256404e51468
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53b50be35cd11dfa1209de63e997256404e51468
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon Jan 13 10:37:01 2020 +0100
radv/gfx10: enable all CUs if NGG is never used
Ported from RadeonSI.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3382>
---
src/amd/vulkan/si_cmd_buffer.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index 4ba86e31ebc..379d8d5fcd4 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -327,8 +327,11 @@ si_emit_graphics(struct radv_physical_device *physical_device,
}
}
- /* Don't use late alloc for NGG on Navi14 due to a hw bug. */
- if (physical_device->rad_info.family == CHIP_NAVI14) {
+ /* Don't use late alloc for NGG on Navi14 due to a hw bug.
+ * If NGG is never used, enable all CUs.
+ */
+ if (!physical_device->use_ngg ||
+ physical_device->rad_info.family == CHIP_NAVI14) {
late_alloc_limit_gs = 0;
cu_mask_gs = 0xffff;
}
More information about the mesa-commit
mailing list