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_mmap_gtt.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_mmap_gtt.c')
-rw-r--r-- | tests/gem_mmap_gtt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c index 292216ce..984ad723 100644 --- a/tests/gem_mmap_gtt.c +++ b/tests/gem_mmap_gtt.c @@ -317,14 +317,14 @@ test_huge_bo(int fd, int huge, int tiling) */ if (tiling && intel_gen(intel_get_drm_devid(fd)) < 4 && - size >= gem_aperture_size(fd) / 2) + size >= gem_global_aperture_size(fd) / 2) size /= 2; break; case 0: size = gem_mappable_aperture_size() + PAGE_SIZE; break; default: - size = gem_aperture_size(fd) + PAGE_SIZE; + size = gem_global_aperture_size(fd) + PAGE_SIZE; break; } intel_require_memory(1, size, CHECK_RAM); @@ -395,7 +395,7 @@ test_huge_copy(int fd, int huge, int tiling_a, int tiling_b) huge_object_size = gem_mappable_aperture_size() + PAGE_SIZE; break; default: - huge_object_size = gem_aperture_size(fd) + PAGE_SIZE; + huge_object_size = gem_global_aperture_size(fd) + PAGE_SIZE; break; } intel_require_memory(2, huge_object_size, CHECK_RAM); |