summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_schedule.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 /tests/i915/gem_exec_schedule.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 'tests/i915/gem_exec_schedule.c')
-rw-r--r--tests/i915/gem_exec_schedule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 119ec2d4..cf7e4d4e 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -252,7 +252,7 @@ static void unplug_show_queue(int fd, struct igt_cork *c,
usleep(25000);
for (int n = 0; n < max; n++) {
- uint64_t ahnd = spin[n]->ahnd;
+ uint64_t ahnd = spin[n]->opts.ahnd;
igt_spin_free(fd, spin[n]);
put_ahnd(ahnd);
}
@@ -1042,7 +1042,7 @@ static void semaphore_codependency(int i915, const intel_ctx_t *ctx,
}
for (i = 0; i < ARRAY_SIZE(task); i++) {
- ahnd = task[i].rcs->ahnd;
+ ahnd = task[i].rcs->opts.ahnd;
igt_spin_free(i915, task[i].xcs);
igt_spin_free(i915, task[i].rcs);
put_ahnd(ahnd);
@@ -1994,7 +1994,7 @@ static void preemptive_hang(int fd, const intel_ctx_cfg_t *cfg,
* This is subject to change as the scheduler evolve. The test should
* be updated to reflect such changes.
*/
- ahnd_lo = spin[n]->ahnd;
+ ahnd_lo = spin[n]->opts.ahnd;
igt_assert(gem_bo_busy(fd, spin[n]->handle));
igt_spin_free(fd, spin[n]);
put_ahnd(ahnd_lo);