diff options
author | Marek Olšák <[email protected]> | 2019-07-30 23:20:03 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-06 17:09:03 -0400 |
commit | 1d8a71af5732ff3df4ae75639a1fd4076e44d30c (patch) | |
tree | 1f7bd523861f4fb9d10c767a73cfcf65d368c838 /src/gallium | |
parent | 91227a1e177a579adf0fd2d53b356618de374e9a (diff) |
radeonsi/gfx10: enable all CUs for GS if NGG is never used
Reviewed-by: Samuel Pitoiset <[email protected]>
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |