[igt-dev] [PATCH i-g-t 85/93] igt/dummyload: Require an intel_ctx_t for POLL_RUN and !ALL_ENGINES
Dixit, Ashutosh
ashutosh.dixit at intel.com
Thu Jun 10 05:15:05 UTC 2021
On Wed, 09 Jun 2021 10:38:55 -0700, Jason Ekstrand wrote:
>
> diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
> index b0a7b361..25e49de4 100644
> --- a/lib/igt_dummyload.c
> +++ b/lib/igt_dummyload.c
> @@ -421,22 +421,12 @@ igt_spin_factory(int fd, const struct igt_spin_factory *opts)
> {
> igt_spin_t *spin;
>
> - if (opts->engine != ALL_ENGINES) {
> - struct intel_execution_engine2 e;
> - int class;
> -
> - if (opts->ctx) {
> - class = opts->ctx->cfg.engines[opts->engine].engine_class;
> - } else if (!gem_context_lookup_engine(fd, opts->engine,
> - opts->ctx_id, &e)) {
With this I believe the ctx_id field can also be deleted from 'struct
igt_spin_factory' (and also a couple of other statements still using
opts->ctx_id).
More information about the igt-dev
mailing list