diff options
author | Nicolai Hähnle <[email protected]> | 2016-05-08 12:53:23 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-01 22:52:20 +0200 |
commit | c7877b9dab822a9f33aa351cff2ce849a3f2fa32 (patch) | |
tree | e39d34305fc225d3f32815e9ccf62b0b66e25c75 | |
parent | 6aff6377b125f5340f5febffb6f0def9e07c3e93 (diff) |
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 <[email protected]>
-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 6195de9bc3c..fefa5d6db53 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; |