mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
radeonsi/gfx10: disable clear state
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
0dd57f0fc0
commit
dfa8e758c2
2 changed files with 5 additions and 8 deletions
|
|
@ -1082,10 +1082,11 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws,
|
|||
}
|
||||
|
||||
/* The mere presense of CLEAR_STATE in the IB causes random GPU hangs
|
||||
* on GFX6. Some CLEAR_STATE cause asic hang on radeon kernel, etc.
|
||||
* SPI_VS_OUT_CONFIG. So only enable GFX7 CLEAR_STATE on amdgpu kernel.*/
|
||||
sscreen->has_clear_state = sscreen->info.chip_class >= GFX7 &&
|
||||
sscreen->info.is_amdgpu;
|
||||
* on GFX6. Some CLEAR_STATE cause asic hang on radeon kernel, etc.
|
||||
* SPI_VS_OUT_CONFIG. So only enable GFX7 CLEAR_STATE on amdgpu kernel. */
|
||||
sscreen->has_clear_state = sscreen->info.chip_class >= GFX7 &&
|
||||
sscreen->info.chip_class <= GFX9 &&
|
||||
sscreen->info.is_amdgpu;
|
||||
|
||||
sscreen->has_distributed_tess =
|
||||
sscreen->info.chip_class >= GFX8 &&
|
||||
|
|
|
|||
|
|
@ -5391,10 +5391,6 @@ static void si_init_config(struct si_context *sctx)
|
|||
bool has_clear_state = sscreen->has_clear_state;
|
||||
struct si_pm4_state *pm4 = CALLOC_STRUCT(si_pm4_state);
|
||||
|
||||
/* GFX6, radeon kernel disabled CLEAR_STATE. */
|
||||
assert(has_clear_state || sscreen->info.chip_class == GFX6 ||
|
||||
!sscreen->info.is_amdgpu);
|
||||
|
||||
if (!pm4)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue