radeonsi/gfx10: enable all CUs for GS if NGG is never used
authorMarek Olšák <marek.olsak@amd.com>
Wed, 31 Jul 2019 03:20:03 +0000 (23:20 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 6 Aug 2019 21:09:03 +0000 (17:09 -0400)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 66f0ba8f2019b2d5f12175894fdb9ed69594eeac..8087d0a8c66d462c7024a8a625c50c8084690422 100644 (file)
@@ -5559,8 +5559,10 @@ static void si_init_config(struct si_context *sctx)
                        }
                }
 
-               /* Don't use late alloc for NGG on Navi14 due to a hw bug. */
-               if (sctx->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 (!sscreen->use_ngg || sctx->family == CHIP_NAVI14) {
                        late_alloc_limit_gs = 0;
                        cu_mask_gs = 0xffff;
                }