[PATCH i-g-t 05/20] tests/gem_ctx_ringsize: Adopt to use spinner
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Apr 22 14:16:22 UTC 2021
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/i915/gem_ctx_ringsize.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/i915/gem_ctx_ringsize.c b/tests/i915/gem_ctx_ringsize.c
index 60187b7c9..24e2293f9 100644
--- a/tests/i915/gem_ctx_ringsize.c
+++ b/tests/i915/gem_ctx_ringsize.c
@@ -36,6 +36,7 @@
#include "i915/gem_engine_topology.h"
#include "ioctl_wrappers.h" /* gem_wait()! */
#include "sw_sync.h"
+#include "intel_allocator.h"
static bool has_ringsize(int i915)
{
@@ -214,6 +215,7 @@ measure_inflight(int i915, unsigned int engine, int timeout, unsigned int flags)
igt_spin_t *spin;
int fence;
int err;
+ uint64_t ahnd = get_reloc_ahnd(i915);
fcntl(i915, F_SETFL, fcntl(i915, F_GETFL) | O_NONBLOCK);
signal(SIGALRM, sighandler);
@@ -221,6 +223,7 @@ measure_inflight(int i915, unsigned int engine, int timeout, unsigned int flags)
fence = igt_cork_plug(&cork, i915);
spin = igt_spin_new(i915,
+ .ahnd = ahnd,
.engine = engine,
.fence = fence,
.flags = (flags & PLUG) ? IGT_SPIN_FENCE_IN : 0);
--
2.26.0
More information about the Intel-gfx-trybot
mailing list