[PATCH i-g-t 16/29] tests/gem_wait: Adopt to use allocator
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon Jun 14 04:57:51 UTC 2021
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/i915/gem_wait.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/i915/gem_wait.c b/tests/i915/gem_wait.c
index 81ac25b59..da8ede21b 100644
--- a/tests/i915/gem_wait.c
+++ b/tests/i915/gem_wait.c
@@ -77,11 +77,13 @@ static void invalid_buf(int fd)
static void basic(int fd, unsigned engine, unsigned flags)
{
+ uint64_t ahnd = get_reloc_ahnd(fd, 0);
IGT_CORK_HANDLE(cork);
uint32_t plug =
flags & (WRITE | AWAIT) ? igt_cork_plug(&cork, fd) : 0;
igt_spin_t *spin =
igt_spin_new(fd,
+ .ahnd = ahnd,
.engine = engine,
.dependency = plug,
.flags = (flags & HANG) ? IGT_SPIN_NO_PREEMPTION : 0);
@@ -145,6 +147,7 @@ static void basic(int fd, unsigned engine, unsigned flags)
if (plug)
gem_close(fd, plug);
igt_spin_free(fd, spin);
+ put_ahnd(ahnd);
}
static void test_all_engines(const char *name, int i915, unsigned int test)
--
2.26.0
More information about the Intel-gfx-trybot
mailing list