summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorAshutosh Dixit <ashutosh.dixit@intel.com>2022-02-24 14:02:29 -0800
committerAshutosh Dixit <ashutosh.dixit@intel.com>2022-02-28 08:45:36 -0800
commitc90e2633f9acfce3e03a5aa49ca71c2d574a72f9 (patch)
tree26252edfa693ce1467b58cdcf4334a52c186f75c /lib/igt_dummyload.c
parent57049558c452272b27eeb099fac07e55a924bbf9 (diff)
lib/igt_dummyload: Drop ahnd from igt_spin_t
In 4d9396e67930 we have started storing the opts with which the spin was created as part of igt_spin_t. The ahnd stored as part of igt_spin_t is therefore redundant. We can get ahnd from opts.ahnd. Cc: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com> Cc: Jasmine Newsome <jasmine.newsome@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index 0b2be154..dc1bd51e 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -128,7 +128,6 @@ emit_recursive_batch(igt_spin_t *spin,
addr += random() % addr / 2;
addr &= -4096;
} else {
- spin->ahnd = ahnd;
objflags |= EXEC_OBJECT_PINNED;
}
@@ -612,14 +611,14 @@ static void __igt_spin_free(int fd, igt_spin_t *spin)
if (spin->poll_handle) {
gem_close(fd, spin->poll_handle);
- if (spin->ahnd)
- intel_allocator_free(spin->ahnd, spin->poll_handle);
+ if (spin->opts.ahnd)
+ intel_allocator_free(spin->opts.ahnd, spin->poll_handle);
}
if (spin->handle) {
gem_close(fd, spin->handle);
- if (spin->ahnd)
- intel_allocator_free(spin->ahnd, spin->handle);
+ if (spin->opts.ahnd)
+ intel_allocator_free(spin->opts.ahnd, spin->handle);
}
if (spin->out_fence >= 0)