igt: Report the global GTT size

For many tests, the relevant aperture is not the ppGTT but the internal
global GTT managed by the kernel. Use this limit appropriately.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2016-02-05 18:35:21 +00:00
parent e85c530eab
commit 391b32c382
9 changed files with 39 additions and 50 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ static void test_big_cpu(int fd, int scale)
uint64_t offset, size;
uint32_t handle;
size = scale * gem_aperture_size(fd) >> 2;
size = scale * gem_global_aperture_size(fd) >> 2;
intel_require_memory(1, size, CHECK_RAM);
igt_require(gem_mmap__has_wc(fd));
@@ -110,7 +110,7 @@ static void test_big_gtt(int fd, int scale)
uint64_t *ptr;
uint32_t handle;
size = scale * gem_aperture_size(fd) >> 2;
size = scale * gem_global_aperture_size(fd) >> 2;
intel_require_memory(1, size, CHECK_RAM);
igt_require(gem_mmap__has_wc(fd));