From: Marek Olšák Date: Wed, 31 Jul 2019 03:20:03 +0000 (-0400) Subject: radeonsi/gfx10: enable all CUs for GS if NGG is never used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d8a71af5732ff3df4ae75639a1fd4076e44d30c;p=mesa.git radeonsi/gfx10: enable all CUs for GS if NGG is never used Reviewed-by: Samuel Pitoiset Acked-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 66f0ba8f201..8087d0a8c66 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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; }