diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-05-08 12:53:23 -0500 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-05-17 15:34:09 -0500 |
commit | 8abdae5e660b66aba4f4f765d97ab94632007238 (patch) | |
tree | bf157f40fd6c5333614c8d00be1bd740679a16e8 | |
parent | 4230c1f31dbbc14fcc0186242e274980dc52c93c (diff) |
winsys/amdgpu: decay max_ib_size over timeibs
So that memory use will eventually decrease again after a temporary peak.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index eede2dc964..6d19598dc3 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -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; |