summaryrefslogtreecommitdiff
path: root/tests/i915/gem_tiled_fence_blits.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-12-12 09:38:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-12 15:09:14 +0000
commit5c4766f5c4ca896a4c7b61645ecca2b80546dc3b (patch)
treea410458b31a719f20ea536b75c33df0db75cbebd /tests/i915/gem_tiled_fence_blits.c
parentd14fcf9235c223c29449ef907579e97086b2d4e5 (diff)
lib: Pass device fd to gem_mmappable_aperture_size()
In order to find the correct aperture size for the test, we want to pass the test's device into the query. Reported-by: Bruce Chang <yu.bruce.chang@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Bruce Chang <yu.bruce.chang@intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_tiled_fence_blits.c')
-rw-r--r--tests/i915/gem_tiled_fence_blits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c
index 0a633d91..28beea89 100644
--- a/tests/i915/gem_tiled_fence_blits.c
+++ b/tests/i915/gem_tiled_fence_blits.c
@@ -225,7 +225,7 @@ igt_main
gem_require_blitter(fd);
gem_require_mappable_ggtt(fd);
- count = gem_mappable_aperture_size(); /* thrash fences! */
+ count = gem_mappable_aperture_size(fd); /* thrash fences! */
if (count >> 32)
count = MAX_32b;
count = 3 + count / (1024 * 1024);