summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-08 20:24:36 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-08 20:25:26 +0100
commit7775fca2df815dfee18b181de6fe13df27bb9867 (patch)
treeb04ff8c971196a88f9a0c1c691144f88a46391f8 /tests
parent864d09ed4c11f89e1cd91b187a48c57b4c00b779 (diff)
tests/gem_ctx_exec: fix ram requirement fumble
We need to half available ram, not double it ... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72557 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_ctx_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c
index a2153dba..8a20181b 100644
--- a/tests/gem_ctx_exec.c
+++ b/tests/gem_ctx_exec.c
@@ -101,7 +101,8 @@ static void big_exec(int fd, uint32_t handle, int ring)
int num_buffers = gem_available_aperture_size(fd) / 4096;
int i;
- igt_require(intel_get_total_ram_mb() * 2 * 1024 > num_buffers * 4);
+ /* Make sure we only fill half of RAM with gem objects. */
+ igt_require(intel_get_total_ram_mb() * 1024 / 2 > num_buffers * 4);
gem_exec = calloc(num_buffers + 1, sizeof(*gem_exec));
igt_assert(gem_exec);