radv/gfx10: disable CLEAR_STATE
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
committed by
Bas Nieuwenhuizen
parent
698f9e6fd3
commit
faf27ee9b3
@@ -354,7 +354,8 @@ radv_physical_device_init(struct radv_physical_device *device,
|
||||
/* The mere presence of CLEAR_STATE in the IB causes random GPU hangs
|
||||
* on GFX6.
|
||||
*/
|
||||
device->has_clear_state = device->rad_info.chip_class >= GFX7;
|
||||
device->has_clear_state = device->rad_info.chip_class >= GFX7 &&
|
||||
device->rad_info.chip_class <= GFX9;
|
||||
|
||||
device->cpdma_prefetch_writes_memory = device->rad_info.chip_class <= GFX8;
|
||||
|
||||
|
||||
@@ -161,10 +161,6 @@ si_emit_graphics(struct radv_physical_device *physical_device,
|
||||
{
|
||||
int i;
|
||||
|
||||
/* Only GFX6 can disable CLEAR_STATE for now. */
|
||||
assert(physical_device->has_clear_state ||
|
||||
physical_device->rad_info.chip_class == GFX6);
|
||||
|
||||
radeon_emit(cs, PKT3(PKT3_CONTEXT_CONTROL, 1, 0));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_LOAD_ENABLE(1));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_SHADOW_ENABLE(1));
|
||||
|
||||
Reference in New Issue
Block a user