From 391b32c3822993a6dd5874d2898b0c16b8eb9d03 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 5 Feb 2016 18:35:21 +0000 Subject: 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 --- tests/kms_rotation_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_rotation_crc.c') diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index f94f8f12..730371e8 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -418,7 +418,7 @@ static void test_plane_rotation_exhaust_fences(data_t *data, enum igt_plane plan * for creating (MAX_FENCES+1) framebuffers. */ total_fbs_size = size * (MAX_FENCES + 1); - total_aperture_size = gem_available_aperture_size(fd); + total_aperture_size = gem_global_aperture_size(fd); igt_require(total_fbs_size < total_aperture_size * 0.9); igt_plane_set_fb(plane, NULL); -- cgit v1.2.3