diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-03 16:32:52 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-03 16:32:52 +0100 |
commit | aee0dcb1ec2075991d310dd6f3fb5e50160847d1 (patch) | |
tree | 18bc4959d72c0616621cb24704767bba878fc134 /tests | |
parent | 26b336f81128b6c51e2757381c19d8cdf0b2c369 (diff) |
test/gem_concurrent_blt
Limit working set size also with available ram.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72255
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_concurrent_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_concurrent_blit.c b/tests/gem_concurrent_blit.c index fb56c257..27bc795f 100644 --- a/tests/gem_concurrent_blit.c +++ b/tests/gem_concurrent_blit.c @@ -366,6 +366,10 @@ igt_main max = gem_aperture_size (fd) / (1024 * 1024) / 2; if (num_buffers > max) num_buffers = max; + + max = intel_get_total_ram_mb() * 3 / 4; + if (num_buffers > max) + num_buffers = max; } for (i = 0; i < ARRAY_SIZE(access_modes); i++) |