diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-05 18:35:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-18 10:30:56 +0000 |
commit | 391b32c3822993a6dd5874d2898b0c16b8eb9d03 (patch) | |
tree | 630469f4b2578ef87f085fdab6dc1b75f6b69138 /tests/gem_pwrite.c | |
parent | e85c530eab9ef20b2708ff36bfc6f6fa3990e1f4 (diff) |
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>
Diffstat (limited to 'tests/gem_pwrite.c')
-rw-r--r-- | tests/gem_pwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c index cbb7b032..42206d7b 100644 --- a/tests/gem_pwrite.c +++ b/tests/gem_pwrite.c @@ -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)); |