summaryrefslogtreecommitdiff
path: root/tests/gem_concurrent_all.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-05 18:35:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-18 10:30:56 +0000
commit391b32c3822993a6dd5874d2898b0c16b8eb9d03 (patch)
tree630469f4b2578ef87f085fdab6dc1b75f6b69138 /tests/gem_concurrent_all.c
parente85c530eab9ef20b2708ff36bfc6f6fa3990e1f4 (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_concurrent_all.c')
-rw-r--r--tests/gem_concurrent_all.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c
index 74da42ca..5091b268 100644
--- a/tests/gem_concurrent_all.c
+++ b/tests/gem_concurrent_all.c
@@ -1489,6 +1489,16 @@ igt_main
}
igt_fixture {
+ num_buffers = gem_global_aperture_size(fd) / (1024 * 1024);
+ }
+
+ if (c->require()) {
+ snprintf(name, sizeof(name), "%s%s", c->name, "global");
+ for (i = 0; i < ARRAY_SIZE(access_modes); i++)
+ run_modes(name, &access_modes[i], CHECK_RAM);
+ }
+
+ igt_fixture {
num_buffers = gem_aperture_size(fd) / (1024 * 1024);
}