winsys/amdgpu: decay max_ib_size over time
So that memory use will eventually decrease again after a temporary peak. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
6aff6377b1
commit
c7877b9dab
|
@ -461,6 +461,8 @@ static bool amdgpu_get_new_ib(struct radeon_winsys *ws, struct amdgpu_cs *cs,
|
|||
amdgpu_ib_max_submit_dwords(ib_type)));
|
||||
}
|
||||
|
||||
ib->max_ib_size = ib->max_ib_size - ib->max_ib_size / 32;
|
||||
|
||||
ib->base.prev_dw = 0;
|
||||
ib->base.num_prev = 0;
|
||||
ib->base.current.cdw = 0;
|
||||
|
|
Loading…
Reference in New Issue