summaryrefslogtreecommitdiff
path: root/tests/i915/gem_close.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-03-04 20:50:40 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-03-04 20:52:33 +0000
commit2be153507cdd652843f6ab44cc2a52a7f30206d9 (patch)
tree8f6b8cccc8c342fff5f0bdbe775c681d5fd09d89 /tests/i915/gem_close.c
parentd52794b426ae16630cc1e0354ae435ec98f6174b (diff)
i915/gem_close: Reduce negative overload of duplicate vma handles
Sigh, the kernel only accepts up to 511 duplicate handles before collapsing. Work within its limits, for the moment. References: 003d8b9143a6 ("drm/i915/gem: Only call eb_lookup_vma once during execbuf ioctl") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_close.c')
-rw-r--r--tests/i915/gem_close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_close.c b/tests/i915/gem_close.c
index 4f90d5f2..0e364514 100644
--- a/tests/i915/gem_close.c
+++ b/tests/i915/gem_close.c
@@ -33,7 +33,7 @@ static void test_many_handles(int fd)
uint32_t bbe = MI_BATCH_BUFFER_END;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj[2];
- uint32_t clones[1024];
+ uint32_t clones[128]; /* XXX try with 1024 */
uint32_t original;
original = gem_create(fd, 4096);