[Mesa-dev] [PATCH 13/13] winsys/amdgpu: decay max_ib_size over time
Nicolai Hähnle
nhaehnle at gmail.com
Tue May 17 20:42:07 UTC 2016
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
So that memory use will eventually decrease again after a temporary peak.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index eede2dc..6d19598 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;
--
2.7.4
More information about the mesa-dev
mailing list