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_ctx_exec.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_ctx_exec.c')
-rw-r--r-- | tests/gem_ctx_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 0ba10bd6..93f5b971 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -86,7 +86,7 @@ static void big_exec(int fd, uint32_t handle, int ring) struct drm_i915_gem_execbuffer2 execbuf; struct drm_i915_gem_exec_object2 *gem_exec; uint32_t ctx_id1, ctx_id2; - int num_buffers = gem_available_aperture_size(fd) / 4096; + int num_buffers = gem_global_aperture_size(fd) / 4096; int i; /* Make sure we only fill half of RAM with gem objects. */ |