diff options
author | Marek Olšák <[email protected]> | 2019-07-30 21:39:03 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-06 17:08:59 -0400 |
commit | 37dd8ebcf740b98061293d5e7e7bcc6168581777 (patch) | |
tree | a0d83c0a7415bb70aa76d8f8d5ad8188eebcabaa /src | |
parent | c5a6ecf61a766ccb3e535df3580ffd07304e32ba (diff) |
radeonsi/gfx10: disable LATE_ALLOC_GS on Navi14
Reviewed-by: Samuel Pitoiset <[email protected]>
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 64ce81f989c..66f0ba8f201 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -5545,6 +5545,7 @@ static void si_init_config(struct si_context *sctx) late_alloc_limit = (num_cu_per_sh - 2) * 4; } + unsigned late_alloc_limit_gs = late_alloc_limit; unsigned cu_mask_vs = 0xffff; unsigned cu_mask_gs = 0xffff; @@ -5558,6 +5559,12 @@ 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) { + late_alloc_limit_gs = 0; + cu_mask_gs = 0xffff; + } + /* VS can't execute on one CU if the limit is > 2. */ si_pm4_set_reg(pm4, R_00B118_SPI_SHADER_PGM_RSRC3_VS, S_00B118_CU_EN(cu_mask_vs) | @@ -5571,7 +5578,7 @@ static void si_init_config(struct si_context *sctx) if (sctx->chip_class >= GFX10) { si_pm4_set_reg(pm4, R_00B204_SPI_SHADER_PGM_RSRC4_GS, S_00B204_CU_EN(0xffff) | - S_00B204_SPI_SHADER_LATE_ALLOC_GS_GFX10(late_alloc_limit)); + S_00B204_SPI_SHADER_LATE_ALLOC_GS_GFX10(late_alloc_limit_gs)); } si_pm4_set_reg(pm4, R_00B01C_SPI_SHADER_PGM_RSRC3_PS, |