diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-05-22 16:56:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-05-23 12:23:21 +0100 |
commit | 29cb27e662948b1d0710e9fdaceb5bb221746ff8 (patch) | |
tree | e2e3ec0e9534559d4f12a4467b2f655ccace9ddd /lib/igt_dummyload.c | |
parent | 34a2d27d5b681e6f75d8aa76f75c20e56c287671 (diff) |
i915/gem_exec_fence: Replace open-coded recursive batch with igt_spin_t
The only detail of note here was that we were creating a fence from the
recursive batch, now supported by igt_spin_t (thanks Tvrtko).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r-- | lib/igt_dummyload.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index e02e8817c..0e06276af 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -463,6 +463,16 @@ void igt_terminate_spins(void) pthread_mutex_unlock(&list_lock); } +void igt_unshare_spins(void) +{ + struct igt_spin *it, *n; + + /* Disable the automatic termination on inherited spinners */ + igt_list_for_each_safe(it, n, &spin_list, link) + igt_list_init(&it->link); + igt_list_init(&spin_list); +} + static uint32_t plug_vgem_handle(struct igt_cork *cork, int fd) { struct vgem_bo bo; |