From e2c9a023f2f76db04b94dae64e14ad37e0210b46 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 26 Jan 2016 09:03:46 +0000 Subject: [PATCH] igt/gem_exec_alignment: Reduce GTT usage if !full-ppgtt If we have to share the GTT with others, we cannot rely on being able to fill it and have to factor in some slack for others. Signed-off-by: Chris Wilson --- tests/gem_exec_alignment.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gem_exec_alignment.c b/tests/gem_exec_alignment.c index 1a9596d1..397b4413 100644 --- a/tests/gem_exec_alignment.c +++ b/tests/gem_exec_alignment.c @@ -79,6 +79,8 @@ static void many(int fd) uint64_t alignment, max_alignment, count, i; gtt_size = gem_aperture_size(fd); + if (!gem_uses_full_ppgtt(fd)) + gtt_size /= 2; /* We have to *share* our GTT! */ ram_size = intel_get_total_ram_mb(); ram_size *= 1024 * 1024; count = ram_size / 4096;