radv/gfx10: enable all CUs if NGG is never used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jan 2020 09:37:01 +0000 (10:37 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jan 2020 07:45:29 +0000 (07:45 +0000)
Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3382>

src/amd/vulkan/si_cmd_buffer.c

index 4ba86e31ebc0a1febb4bdae4d7c5b8b56e79f76d..379d8d5fcd44edb7cb92bad38edf2ae83f2c6e9e 100644 (file)
@@ -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;
                }